MODE = MWC (100)
Description: Calculate molar mass and critical properties
In1 = mole fraction of first component (skip for pure fluid)
...
InN = mole fraction of next to last component
Out1 = molar mass in g/gmol
Out2 = Critical temperature in K
Out3 = Critical pressure in Pa
Out3 = Critical density in gmol/m3
Note that the critical properties of a mixture can be defined in different ways. The values returned by this call refer to the properties at the maximum pressure that the liquid and vapor phases can coexist.
Example:
MWC=100 "mode for calculation of molar mass and critical properties"
R$='R32+R134a'
mf=0.3 "mole fraction"
$VarInfo MW units=g/gmol
$VarInfo Tc units=K
$VarInfo Pc units=Pa
$VarInfo rhoc units=gmol/m3
CALL ees_CoolProp(R$, mf, MWC : MW, Tc, Pc, rhoc)
{Solution:
mf=0.3
MW=87.03 [g/gmol]
MWC=100
Pc=4.592E+06 [Pa]
R$='R32+R134a'
rhoc=5465 [gmol/m3]
Tc=368.2 [K]
}