Repository navigation
Temperature Models
The temperature field fed to FESTIM is a callable T(x, t) returning temperature in K as a function of position and time. It is constructed by make_temperature_function() in hisp/src/hisp/festim_models/new_mb_model.py.
The appropriate model is selected automatically from bin.material.name.
Analytic slab model: linear temperature profile from plasma-facing surface to rear surface.
With copper heat-sink (cu_thickness > 0, from input_table.csv column Cu thickness (m)):
Uses the tungsten_slab_temperature() function (based on T. Wauters):
T_rear = T_cool + q / h_Cu_water + q × D_Cu / k_Cu
T_surface = T_rear + q × D_W / k_W
T(x) = T_surface + (T_rear - T_surface) × x / D_W
Constants used: k_W = 170 W/(m·K), k_Cu = 400 W/(m·K), h_Cu_water = 10 000 W/(m²·K).
Without copper heat-sink:
Correlation from Delaporte-Mathurin et al. Sci Rep 10, 17798 (2020):
T_surface = 1.1e-4 × q + T_cool
T_rear = slope_T_rear × q + T_cool (linear fit to Hodille et al. 2021 data)
T(x) = T_surface + (T_rear - T_surface) × x / D_W
Assumed thermally thin — homogeneous temperature equal to the W surface temperature plus a thermal contact resistance term:
T_B = R_c × q + T_surface_W
R_c = 5e-4 m²·K/W (calibrated from JET-ILW JPN#98297)
T_surface_W = 1.1e-4 × q + T_cool
Linear profile scaled from calibration points at q = 0.35 MW/m² (PFS at 250 °C, rear at 175 °C, coolant at 70 °C):
T_surface = q / 3.5e5 × (250 − 70) + T_cool
T_rear = q / 3.5e5 × (175 − 70) + T_cool
T(x) = T_surface + (T_rear − T_surface) × x / D_SS
During baking, the temperature follows the same trapezoidal pulse shape as the flux (using periodic_pulse_function), ramping between coolant_temp and scenario.baking_temp:
T(t) = periodic_pulse_function(t, pulse, value=baking_temp, value_off=coolant_temp)
The spatial profile is spatially uniform (same temperature everywhere in the bin) during BAKE.
- All analytic models assume steady-state thermal equilibrium at every timestep (no thermal transients).
- The W model uses a single fixed thermal conductivity; temperature-dependent
k_Wis not implemented. - The B model assumes the boron layer is thermally thin and ignores its own thermal resistance.
- No model currently accounts for neutron heating.
Place a temperature_models.py file in your input folder to override the default model for one or more materials.
The file must expose either:
TEMPERATURE_MODELS = {"MATERIAL_NAME": callable, ...}or:
def get_temperature_models() -> dict:
return {"MATERIAL_NAME": callable, ...}Material keys are matched case-insensitively.
The callable receives any subset of these keyword arguments (inspection-based dispatch):
| Argument | Type | Description |
|---|---|---|
x |
float or NDArray | Position within the material (m) |
heat_flux |
float | Heat flux from the plasma data table (W/m²) |
coolant_temp |
float | Coolant temperature from input_table.csv (K) |
thickness |
float | Bin thickness (m) |
copper_thickness |
float or None | Cu layer thickness (m) |
bin |
Bin |
The full Bin object |
pulse |
Pulse |
The current Pulse object |
t |
float | Relative time within the current pulse (s) |
scenario |
Scenario |
The full Scenario object |
plasma_data_handling |
PlasmaDataHandling |
Plasma data object |
The callable must return a temperature in K with the same shape as x.
# temperature_models.py
import numpy as np
SS_HEAT_TEMP_TRIADS = [
(0.0, 343.0, 343.0),
(3.5e5, 523.15, 448.15),
(1.0e6, 700.0, 600.0),
]
def ss_temperature_model(x, heat_flux, thickness, **kwargs):
data = np.asarray(SS_HEAT_TEMP_TRIADS)
t_surf = float(np.interp(heat_flux, data[:, 0], data[:, 1]))
t_rear = float(np.interp(heat_flux, data[:, 0], data[:, 2]))
return t_surf + (t_rear - t_surf) * (np.asarray(x) / thickness)
TEMPERATURE_MODELS = {"SS": ss_temperature_model}See input_files_example/temperature_models.py for a complete example.