@@ -32,7 +32,7 @@ class CorrelationType(enum.Enum): # TODO do we really use it ?
3232 BUBBLE_VELOCITY = "v_g0"
3333 GAS_PHASE_DISPERSION = "E_g"
3434 LIQUID_PHASE_DISPERSION = "E_l"
35- FLOW_RATE = "flow_g_mol "
35+ FLOW_RATE = "ndot_g0 "
3636 INTERFACIAL_AREA = "a"
3737 TRITIUM_SOURCE = "source_T"
3838 LIQUID_PRESSURE_PROFILE = "P_l"
@@ -235,8 +235,8 @@ def get_list(self, corr_type: CorrelationType) -> list[Correlation]:
235235
236236d_b0 = Correlation (
237237 identifier = "d_b0" ,
238- function = lambda flow_g_vol , nozzle_diameter , nb_nozzle : get_d_b0 (
239- flow_g_vol = flow_g_vol , nozzle_diameter = nozzle_diameter , nb_nozzle = nb_nozzle
238+ function = lambda Vdot_g0 , nozzle_diameter , nb_nozzle : get_d_b0 (
239+ Vdot_g0 = Vdot_g0 , nozzle_diameter = nozzle_diameter , nb_nozzle = nb_nozzle
240240 ), # mean bubble diameter, Kanai 2017
241241 corr_type = CorrelationType .BUBBLE_DIAMETER ,
242242 input_units = ["m**3/s" , "m" , "dimensionless" ],
@@ -311,7 +311,7 @@ def get_list(self, corr_type: CorrelationType) -> list[Correlation]:
311311# superficial gas velocity at the inlet
312312u_g0 = Correlation (
313313 identifier = "u_g0" ,
314- function = lambda flow_g_vol , area : (flow_g_vol / area ).to ("m/s" ),
314+ function = lambda Vdot_g0 , area : (Vdot_g0 / area ).to ("m/s" ),
315315 corr_type = CorrelationType .SUPERFICIAL_GAS_VELOCITY ,
316316 input_units = ["m^3/s" , "m^2" ],
317317 output_units = "m/s" ,
@@ -412,17 +412,17 @@ def get_list(self, corr_type: CorrelationType) -> list[Correlation]:
412412all_correlations .append (rho_g )
413413
414414
415- flow_g_vol = Correlation (
416- identifier = "flow_g_vol " ,
417- function = lambda flow_g_mol , temperature , P_l : (
418- flow_g_mol * const_R * temperature / P_l (0 * ureg .m )
415+ Vdot_g0 = Correlation (
416+ identifier = "Vdot_g0 " ,
417+ function = lambda ndot_g0 , temperature , P_l : (
418+ ndot_g0 * const_R * temperature / P_l (0 * ureg .m )
419419 ), # convert molar flow rate to volumetric flow rate using ideal gas law
420420 corr_type = CorrelationType .FLOW_RATE ,
421421 description = "volumetric flow rate of gas phase calculated from molar flow rate using ideal gas law" ,
422422 input_units = ["mol/s" , "kelvin" , PROFILE ],
423423 output_units = "m**3/s" ,
424424)
425- all_correlations .append (flow_g_vol )
425+ all_correlations .append (Vdot_g0 )
426426
427427
428428source_T_integral = Correlation (
@@ -438,12 +438,12 @@ def get_list(self, corr_type: CorrelationType) -> list[Correlation]:
438438
439439
440440def get_d_b0 (
441- flow_g_vol : pint .Quantity , nozzle_diameter : pint .Quantity , nb_nozzle : pint .Quantity
441+ Vdot_g0 : pint .Quantity , nozzle_diameter : pint .Quantity , nb_nozzle : pint .Quantity
442442) -> float :
443443 """
444444 mean bubble diameter [m], Kanai 2017 (reported by Evans 2026)
445445 """
446- nozzle_flow = flow_g_vol / nb_nozzle # volumetric flow per nozzle [m3/s]
446+ nozzle_flow = Vdot_g0 / nb_nozzle # volumetric flow per nozzle [m3/s]
447447 if nozzle_flow < ureg ("3 cm**3/s" ) or nozzle_flow > ureg ("10 cm**3/s" ):
448448 warnings .warn (
449449 f"nozzle flow { nozzle_flow .to ('cm**3/s' )} is out of the validated range for the Kanai 2017 correlation (3-10 cm3/s)"
@@ -560,11 +560,11 @@ def get_h_briggs(Re: float, Sc: float, D_l: float, d_b: float) -> float:
560560
561561eps_g = Profile (
562562 identifier = "eps_g" ,
563- function = lambda temperature , P_g , flow_g_mol , area , v_g0 : (
563+ function = lambda temperature , P_g , ndot_g0 , area , v_g0 : (
564564 lambda z : get_eps_g (
565565 T = temperature ,
566566 P_g = P_g (z ),
567- n_g_dot = flow_g_mol ,
567+ n_g_dot = ndot_g0 ,
568568 area = area ,
569569 v_g = v_g0 ,
570570 )
0 commit comments