Procedure Turbine2_CL provides a model of a turbine with a specified isentropic or polytropic efficiency.  The model operates both within and outside of vapor dome.



h_in:  inlet enthalpy (J/kg, kJ/kg, or Btu/lbm)

P_in:  inlet pressure (bar, atm, Pa, kPa, MPa)

P_out:  outlet pressure (bar, atm, Pa, kPa, MPa)

m_dot:  mass flow rate (kg/s or lb_m/hr)

F$:  fluid string identifier

eta:  if eta>0 then it is interpreted as the isentropic efficiency

 if eta<0 then abs(eta) is interpreted as the polytropic efficiency



h_out:  outlet enthalpy (J/kg, kJ/kg, or Btu/lbm)

W_dot:  power (W, kW or Btu/hr)

eta_s:  isentropic efficiency (this is useful if polytropic efficiency is an input)



$Load Component LIbrary

$UnitSystem SI Mass J K Pa

$VarInfo h_in units =J/kg

$VarInfo h_out units =J/kg

$VarInfo W_dot units =W



P_in=8e6 [Pa]

h_in=enthalpy(F$,P=P_in,T=800 [K])

P_out=7e5 [Pa]

m_dot=0.08 [kg/s]

eta= -0.9 [-]

Call turbine2_cl(h_in, P_in, P_out, m_dot, F$, eta: h_out, W_dot, eta_s)



h_out = 234180 J/kg

W_dot = 22073 W

eta_s = 0.9178}