MODE = DEWP (4)
Description: Dew point calculation for a given pressure
In1 = pressure in Pa
In2 = mole fraction of first component in saturated vapor (skip for pure fluid)
...
InN = mole fraction of next to last component
Out1 = Temperature in K
Out2 = Pressure of saturated vapor in Pa (same as In1)
Out3 = Density of saturated vapor in gmol/m3
Out4..OutN = Mole fractions of each component in the liquid phase at equilibrium with the liquid
Notes: This Mode is intended for use with mixtures. There will not be any mole fractions in the outputs for a pure fluid.
Example:
DEWP=4 "mode for dew point calculation at a given pressure - this is not needed if the $INCLUDE EES_COOLPROP.txt directive is used"
Pin=100 [kPa]*Convert(kPa,Pa)
mf=0.3 "mole fraction"
$VarInfo TV units=K
$VarInfo PV units=Pa
$Varinfo DV units=gmol/m3
F$='R32+R134a'
CALL EES_COOLPROP(F$, mf, DEWP, Pin: TV, PV, DV, x_32, x_134a)
{Solution:
DEWP=4
DV=51.89 [gmol/m3]
F$='R32+R134a'
mf=0.3
Pin=100000 [Pa]
PV=100000 [Pa]
TV=241.6 [K]
x_134a=0.8833
x_32=0.1167
}