Contents - Index


MODE = PH (25)

Note: If the $ConvertEESREFPROPUnits directive is used in the EES program, inputs should be provided in the unit system defined in EES and outputs will be automatically converted to the unit system defined in EES.  The units shown for inputs and outputs in the following description apply when the $CONVERTEESREFPROPUNITS directive is not used.


Description: Calculate thermodynamic properties for given pressure and specific enthalpy
     In1 = Pressure in kPa
     In2 = Specific enthalpy in kJ/kmol
     In3 = mole fraction of first component (skip for pure fluid)
     ...
     InN  = mole fraction of next to last component
            Note: If the /mass flag is provided with the $CONVERTEESREFPROPUNITS directive, mass fractions should be provided instead of mole fractions.
     Out1 = Temperature in K
     Out2 = Pressure in kPa
     Out3 = Density in kmol/m3
     Out4 = Specific volume in m3/kmol
     Out5 = Specific enthalpy in kJ/kmol
     Out6 = Specific entropy in kJ/K-kmol
     Out7 = Quality (<0 for subcooled liquid, >1 for superheated vapor)
     Out8= Specific heat at constant volume (Cv) in kJ/K-kmol
     Out9 = Specific heat at constant pressure (Cp) in kJ/K-kmol
     Out10 = Speed of sound in m/sec (not applicable for two-phase state)
     Out11 = Quality (mass basis) (<0 for subcooled liquid, >1 for superheated vapor)
     Out12..12+N = mole fractions of the liquid phase for the N components in the mixture
               Note: Mass fractions (in place of mole fractions) are output if the /mass flag is provided with the $CONVERTEESREFPROPUNITS directive
      Out12+N+1..Out12+2N = mole fractions of the vapor phase for the N components in the mixture
               Note: Mass fractions (in place of mole fractions) are output if the /mass flag is provided with the $CONVERTEESREFPROPUNITS directive
 
Example 1: 
PH=25              "mode for flash calculation, given pressure and specific enthalpy"
mf=0.3               "mole fraction"
Call ees_refprop('R32+R134a', PH, 1000 [kPa], 24200 [kJ/kmol], mf : T,P,rho,v,h,s,Q,Cv,Cp,w,Qm,x_R32,x_R134a,y_R32,y_R134a)

{Solution:
Cp=-1.000E+07 [kJ/kmol-K]
Cv=-1.000E+07 [kJ/kmol-K]
h=24200 [kJ/kmol]
mf=0.3 
P=1000 [kPa]
PH=25 
Q=0.1959 
Qm=0.1811 
rho=2.165 [kmol/m^3]
s=115.1 [kJ/kmol-K]
T=300.9 [K]
v=0.4619 [m^3/kmol]
w=-1.000E+07 [m/s]
x_R134a=0.732 
x_R32=0.268 
y_R134a=0.5685 
y_R32=0.4315 
}


Example 2: 
$UnitSystem SI C kPa mass
$ConvertEESREFPROPUnits /mass 
PH=25                "mode for flash calculation, given density and specific enthalpy"
Fluid$='R134a'
P_in=100 [kPa]
h_in=200 [kJ/kg]
$varInfo T units=C
$varInfo P units=kPa
$varInfo rho units=kg/m^3
$varinfo v units=m^3/kg
$varinfo h units=kJ/kg
$varinfo s units=kJ/kg-K
Call ees_refprop(Fluid$, PH, P_in, h_in : T, P, rho, v , h, s, Q)


{Solution:
Fluid$='R134a'
h=200 [kJ/kg]
h_in=200 [kJ/kg]
P=100 [kPa]
PH=25 
P_in=100 [kPa]
Q=0.1591 
rho=32 [kg/m^3]
s=1.008 [kJ/kg-K]
T=-26.36 [C]
v=0.03125 [m^3/kg]
}


Return