From 79895615ca39447e25996f0b8dfecfd8e214a8e7 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Tue, 3 Dec 2024 15:15:50 -0500 Subject: [PATCH] renamed species --- src/hisp/festim_models/mb_model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hisp/festim_models/mb_model.py b/src/hisp/festim_models/mb_model.py index 97cb296f..d79eeabf 100644 --- a/src/hisp/festim_models/mb_model.py +++ b/src/hisp/festim_models/mb_model.py @@ -350,8 +350,8 @@ def make_B_mb_model( trap2_T = F.Species("trap2_T", mobile=False) trap3_D = F.Species("trap3_D", mobile=False) trap3_T = F.Species("trap3_T", mobile=False) - trap4_D = F.Species("trap3_T", mobile=False) - trap4_T = F.Species("trap3_T", mobile=False) + trap4_D = F.Species("trap4_D", mobile=False) + trap4_T = F.Species("trap4_T", mobile=False) # traps empty_trap1 = F.ImplicitSpecies( # implicit trap 1 @@ -855,7 +855,9 @@ def T_function(x: NDArray, t: float) -> NDArray: value = np.full_like(x[0], T_bake) else: heat_flux = plasma_data_handling.get_heat(pulse, bin, t_rel) - if bin.material == "W" or bin.material == "SS": #FIXME: update ss temp when gven data: + if ( + bin.material == "W" or bin.material == "SS" + ): # FIXME: update ss temp when gven data: value = calculate_temperature_W( x[0], heat_flux, coolant_temp, bin.thickness )