Contents - Index


MODE = TP (12)

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 temperature and pressure  (flash with temperature and pressure specified)
     In1 = Temperature in K
     In2 = Pressure in kPa
     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 (molar basis) (<0 for subcooled liquid, >1 for superheated vapor)
     Out8= Specific heat at constant volume (Cv) in kJ/K-kmol  (not applicable for two-phase state)
     Out9 = Specific heat at constant pressure (Cp) in kJ/K-kmol (not applicable for two-phase state)
     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: 
TP=12                 "mode for flash calculation, given temperature and pressure"
mf=0.3                 "mole fraction"
CALL EES_REFPROP('R32+R134a',TP,350 [K],1000 [kPa], mf :T, P,rho,v,h,s,Q,Cv,Cp,w,Qm,x_R32,x_R134a,y_R32,y_R134a)

{Solution:
Cp=89.82 [kJ/kmol-K]
Cv=75.58 [kJ/kmol-K]
h=42076 [kJ/kmol]
mf=0.3 
P=1000 [kPa]
Q=1.41 
Qm=1.41 
rho=0.3831 [kmol/m^3]
s=173.1 [kJ/K-kmol]
T=350 [K]
TP=12 
v=2.61 [m^3/kmol]
w=178 [m/s]
x_R134a=0.7 
x_R32=0.3 
y_R134a=0.7 
y_R32=0.3 
}


Example 2:
$UnitSystem SI C MPa mass
$ConvertEESREFPROPUnits /mass 
TP=12                 "mode for flash calculation, given temperature and pressure"
mf=0.3                 "mole fraction"
TC=converttemp(K,C,350[K])
Call ees_refprop('R32+R134a',TP,TC, 1 [MPa], mf :T, P, rho, v ,h, s, Q, Cv, Cp, w, Qm, x_R32, x_R134a, y_R32, y_R134a)

{Solution:
Cp=1.029 [kJ/kg-K]
Cv=0.8572 [kJ/kg-K]
h=499.7 [kJ/kg]
mf=0.3 
P=1 [MPa]
Q=998 
Qm=998 
rho=30.06 [kg/m^3]
s=2.068 [kJ/kg-K]
T=76.85 [C]
TC=76.85 [C]
TP=12 
v=0.03326 [m^3/kg]
w=189.5 [m/s]
x_R134a=0.7 
x_R32=0.3 
y_R134a=0.7 
y_R32=0.3}



Return