MODE = TP (12)
Description: Calculate thermodynamic properties for given temperature and pressure
In1 = Temperature in K
In2 = Pressure in Pa
In3 = mole fraction of first component (skip for pure fluid)
...
InN = mole fraction of next to last component
Out1 = Temperature in K (same as In1)
Out2 = Pressure in Pa (same as In2)
Out3 = Density in gmol/m3
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. See also modes BUBT and DEWT
Viscosity, thermal conductivity and soundspeed are only evaluated for quality equal to 0 or 1. Otherwise these variables are set to -999.
Example:
TP=12 "mode for given temperature and pressure - this is not needed if the $INCLUDE EES_COOLPROP.txt directive is used"
Tin=350 [K] "temperature"
Pin=1000 [kPa]*Convert(kPa,Pa)
F$='R32+R134a'
mf=0.3 "mole fraction"
$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$, mf, TP, Tin, Pin : T, P, rho, v, h, s, Q, Cv, Cp, w, visc,cond)
{Solution:
cond=0.01836 [W/m-K]
Cp=89.81 [J/K-gmol]
Cv=75.58 [J/K-gmol]
F$='R32+R134a'
h=42077 [J/gmol]
mf=0.3
P=1.000E+06 [Pa]
Pin=1000000 [Pa]
Q=100
rho=383.1 [gmol/m3]
s=173.1 [J/K-gmol]
T=350 [K]
Tin=350 [K]
TP=12
v=0.00261 [m3/gmol]
visc=0.00001444 [Pa-s]
w=178 [m/s]
}