Contents - Index


MODE = FUG (80)

Note that the inputs and outputs will be automatically converted from and to the unit system defined in EES if the $ConvertEESREFPROPUnits directive is used in the EES program.  The units shown for the inputs and outputs in the description below apply when the $ConvertEESREFPROPUnits directive is not used.

Description: Calculate fugacity for given temperature and density
     In1 = Temperature in K
     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..OutN: fugacity of each fluid in kPa

Example: 
FUG=80                       "mode for calculation of fugacity"
T=350 [K]                     "temperature"
rho=13.1 [kmol/m^3]      "density"
mf=0.3                         "mole fraction"
Call EES_REFPROP('R32+R134a',FUG, T,  rho, mf :f_32,f_134a)

{Solution:
FUG=80 
f_134a=3209 [kPa]
f_32=1898 [kPa]
mf=0.3 
rho=13.1 [kmol/m^3]
T=350 [K]
}

Return