Contents - Index


MODE = PQ (27)

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 molar quality
     In1 = Pressure in kPa
     In2 = Quality (0 for saturated liquid, 1 for saturated vapor)
             Note: Quality is input on a molar basis unless the /mass flag in the $CONVERTEESREFPROPUNITS directive is provided, in which case quality is input on a mass basis.
     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: 
PQ=27              "mode for flash calculation, given pressure and molar quality"
mf=0.3               "mole fraction"
Call ees_refprop('R32+R134a', PQ, 1000 [kPa], 0, mf : T,P,rho,v,h,s,Q,Cv,Cp,w,Qm,x_R32,x_R134a,y_R32,y_R134a)

{Solution:
Cp=132.3 [kJ/kmol-K]
Cv=80.19 [kJ/kmol-K]
h=20864 [kJ/kmol]
mf=0.3 
P=1000 [kPa]
PQ=27 
Q=0 
Qm=0 
rho=13.16 [kmol/m^3]
s=104 [kJ/kmol-K]
T=299.7 [K]
v=0.07597 [m^3/kmol]
w=502.8 [m/s]
x_R134a=0.7 
x_R32=0.3 
y_R134a=0.5289 
y_R32=0.4711 
}


Example 2:
$UnitSystem SI C kPa mass
$ConvertEESREFPROPUnits /mass 
PQ=17                "mode for flash calculation, given temperature and specific volume"
Fluid$='R134a'
P=100 [kPa]
$varInfo T_f units=C
$varInfo T_g units=C
$varInfo P_f units=kPa
$varInfo P_g units=kPa
$varInfo rho_f units=kg/m^3
$varinfo rho_g units=kg/m^3
$varinfo v_f units=m^3/kg
$varinfo v_g units=m^3/kg
$varinfo h_f units=kJ/kg
$varinfo h_g units=kJ/kg
$varinfo s_f units=kJ/kg-K
$varinfo s_g units=kJ/kg-K
Call ees_refprop(Fluid$, PQ, P, 0 : T_f, P_f, rho_f, v_f ,h_f, s_f, Q_f)
Call ees_refprop(Fluid$, PQ, P, 1 : T_g, P_g, rho_g, v_g ,h_g, s_g, Q_g)

{Solution:
Fluid$='R134a'
h_f=373.3 [kJ/kg]
h_g=407.7 [kJ/kg]
P=100 [kPa]
PQ=17 
P_f=3972 [kPa]
P_g=3972 [kPa]
Q_f=0 
Q_g=1 
rho_f=651.2 [kg/m^3]
rho_g=373 [kg/m^3]
s_f=1.519 [kJ/kg-K]
s_g=1.611 [kJ/kg-K]
T_f=100 [C]
T_g=100 [C]
v_f=0.001536 [m^3/kg]
v_g=0.002681 [m^3/kg]

}

Return