@@ -462,22 +462,6 @@ def get_v_g0(Eo, Mo, mu_l, rho_l, d_b) -> float: # TODO move inside class ?
462462 return v_g0
463463
464464
465- def get_eps_g (T , P_g , ndot_g , area , v_g ) -> float :
466- gamma = ndot_g * const_R * T / (P_g * area * v_g )
467-
468- eps_g = gamma / (1 + gamma )
469-
470- if np .max (eps_g ) > 1 * ureg ("dimensionless" ) or np .min (eps_g ) < 0 * ureg (
471- "dimensionless"
472- ):
473- warnings .warn (f"Warning: unphysical gas fraction: { eps_g } " )
474- elif np .max (eps_g ) > 0.1 * ureg ("dimensionless" ):
475- warnings .warn (
476- f"Warning: high gas fraction: { eps_g } , model assumptions may not hold"
477- )
478- return eps_g
479-
480-
481465def get_h_higbie (D_l : float , v_g : float , d_b : float ) -> float :
482466 """
483467 Higbie penetration model average mass transfer coefficient [m/s]-> suited for large mobile interfaces
@@ -530,19 +514,12 @@ def get_h_briggs(Re: float, Sc: float, D_l: float, d_b: float) -> float:
530514)
531515all_correlations .append (d_b )
532516
517+
533518eps_g = Profile (
534519 identifier = "eps_g" ,
535- function = lambda temperature , P_g , ndot_g0 , area , v_g0 : (
536- lambda z : get_eps_g (
537- T = temperature ,
538- P_g = P_g (z ),
539- ndot_g = ndot_g0 ,
540- area = area ,
541- v_g = v_g0 ,
542- )
543- ),
520+ function = lambda u_g , v_g0 : lambda z : u_g (z ) / v_g0 ,
544521 corr_type = CorrelationType .GAS_VOID_FRACTION ,
545- input_units = ["kelvin" , PROFILE , "mol/s" , "m^2" , "m/s" ],
522+ input_units = [PROFILE , "m/s" ],
546523 output_units = "dimensionless" ,
547524 description = "gas void fraction profile (local P and d_b)" ,
548525)
0 commit comments