MODE = PD (23)
Description: Calculate thermodynamic properties for given temperature and density
In1 = Pressure in Pa
In2 = Density in gmol/m3
In3 = mole fraction of first component (skip for pure fluid)
...
InN = mole fraction of next to last component
Out1 = Temperature in K
Out2 = Pressure in Pa (same as In1)
Out3 = Density in gmol/m3 (same as In2)
Out4 = Specific volume in m3/gmol
Out5 = Specific enthalpy in J/gmol
Out6 = Specific entropy in J/K-gmol
Out7 = Quality (molar basis) (<0 for subcooled liquid, >1 for superheated vapor)
Out8 = Specific heat at constant volume (Cv) in J/K-gmol
Out9 = Specific heat at constant pressure (Cp) in J/K-gmol
Out10 = Speed of sound in m/sec
Out11 = Viscosity in Pa-s
Out12 = Conductivity in W/m-K
Notes: It is not necessary to provide for all outputs. For example, if only the first 6 outputs are needed, just skip the rest. If you want to skip output 7, but keep the following outputs, provide a space but maintain the comma.
This mode is only applicable for pure substances.
Example:
PD=23 "mode for given pressure and density - this is not needed if the $INCLUDE EES_COOLPROP.txt directive is used"
Pin=3200 [kPa]*Convert(kPa,Pa) "pressure"
rhoin=13.1 [kmol/m^3]*Convert(kmol/m^3,gmol/m^3) "density"
F$='R134a'
$VarInfo T units=K
$VarInfo P units=Pa
$Varinfo rho units=gmol/m3
$VarInfo h units=J/gmol
$Varinfo v units=m3/gmol
$VarInfo s, Cv, Cp units=J/K-gmol
$VarInfo w units=m/s
$VarInfo visc units=Pa-s
$VarInfo cond units=W/m-K
CALL EES_COOLPROP(F$, PD, Pin, rhoin : T, P, rho, v, h, s, Q, Cv, Cp, w, visc,cond)
{Solution:
cond=0.09811 [W/m-K]
Cp=133 [J/K-gmol]
Cv=88.45 [J/K-gmol]
F$='R134a'
h=19152 [J/gmol]
P=3.200E+06 [Pa]
PD=23
Pin=3.200E+06 [Pa]
Q=-100
rho=13100 [gmol/m3]
rhoin=13100 [gmol/m^3]
s=96.51 [J/K-gmol]
T=263.3 [K]
v=0.00007634 [m3/gmol]
visc=0.0003147 [Pa-s]
w=689.4 [m/s]
}