Contents - Index


MODE = PD (23)

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 density
     In1 = Pressure in kPa
     In2 = Density in kmol/m3
     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: 
PD=23              "mode for flash calculation, given pressure and density"
mf=0.3               "mole fraction"
Call ees_refprop('R32+R134a', PD ,500 [kPa],13.1 [kmol/m^3], 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=17929 [kJ/kmol]
mf=0.3 
P=500 [kPa]
PD=23 
Q=0.001402 
Qm=0.001234 
rho=13.1 [kmol/m^3]
s=93.91 [kJ/kmol-K]
T=276.6 [K]
v=0.07634 [m^3/kmol]
w=-1.000E+07 [m/s]
x_R134a=0.7003 
x_R32=0.2997 
y_R134a=0.4914 
y_R32=0.5086 
}


Example 2:
$UnitSystem SI C kPa mass
$ConvertEESREFPROPUnits /mass 
PD=23                "mode for flash calculation, given temperature and density"
Fluid$='R134a'
P_in=100 [kPa]
rho_in=450 [kg/m^3]
$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$, PD, P_in, rho_in : T, P, rho, v , h, s, Q)

{Solution:
Fluid$='R134a'
h=167.1 [kJ/kg]
P=100 [kPa]
PD=23 
P_in=100 [kPa]
Q=0.0078 
rho=450 [kg/m^3]
rho_in=450 [kg/m^3]
s=0.8744 [kJ/kg-K]
T=-26.36 [C]
v=0.002222 [m^3/kg]
}


Return