def ShahCondensation_Average(x_min,x_max,Ref,G,D,p,TsatL,TsatV):
# ********************************
# Necessary Properties
# Calculated outside the quadrature integration for speed
# ********************************
mu_f = PropsSI('V', 'T', TsatL, 'Q', 0, Ref) #kg/m-s
cp_f = PropsSI('C', 'T', TsatL, 'Q', 0, Ref)#*1000 #J/kg-K
k_f = PropsSI('L', 'T', TsatV, 'Q', 0, Ref)#*1000 #W/m-K
Pr_f = cp_f * mu_f / k_f #[-]
Pstar = p / PropsSI(Ref,'pcrit')
h_L = 0.023 * (G*D/mu_f)**(0.8) * Pr_f**(0.4) * k_f / D #[W/m^2-K]
def ShahCondensation(x,Ref,G,D,p):
return h_L * ((1 - x)**(0.8) + (3.8 * x**(0.76) * (1 - x)**(0.04)) / (Pstar**(0.38)) )
if not x_min==x_max:
#A proper range is given
return quad(ShahCondensation,x_min,x_max,args=(Ref,G,D,p))[0]/(x_max-x_min)
else:
#A single value is given
return ShahCondensation(x_min,Ref,G,D,p)
评论列表
文章目录