Contents - Index


MODE = TV (14)

Note: If the $ConvertEESREFPROPUnits directive is used in the EES program, inputs should be provided in the unit system defined in EES and outputs will be automatically converted to the unit system defined in EES.  The units shown for inputs and outputs in the following description apply when the $CONVERTEESREFPROPUNITS directive is not used.


Description: Calculate thermodynamic properties for given temperature and specific volume
     In1 = Temperature in K
     In2 = Specific volume in m3/kmol
     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 = Temperature in K
     Out2 = Pressure in kPa
     Out3 = Density in kmol/m3
     Out4 = Specific volume in m3/kmol
     Out5 = Specific enthalpy in kJ/kmol
     Out6 = Specific entropy in kJ/K-kmol
     Out7 = Quality (<0 for subcooled liquid, >1 for superheated vapor)
     Out8= Specific heat at constant volume (Cv) in kJ/K-kmol
     Out9 = Specific heat at constant pressure (Cp) in kJ/K-kmol
     Out10 = Speed of sound in m/sec (not applicable for two-phase state)    
     Out11 = Quality (mass basis) (<0 for subcooled liquid, >1 for superheated vapor)
     Out12..12+N = mole fractions of the liquid phase for the N components in the mixture
               Note: Mass fractions (in place of mole fractions) are output if the /mass flag is provided with the $CONVERTEESREFPROPUNITS directive
      Out12+N+1..Out12+2N = mole fractions of the vapor phase for the N components in the mixture
               Note: Mass fractions (in place of mole fractions) are output if the /mass flag is provided with the $CONVERTEESREFPROPUNITS directive
 

Example 1: 
TV=14                "mode for flash calculation, given temperature and specific volume"
mf=0.3                "mole fraction"
Call ees_refprop('R32+R134a',TV ,300 [K], 0.095 [m^3/kmol], mf  :T ,P, rho, v, h, s, Q, {Cv}, {Cp}, {w}, Qm, x_R32, x_R134a, y_R32,y_R134a)

{Solution:
h=21056 [kJ/kmol]
mf=0.3 
P=1006 [kPa]
Q=0.009708 
Qm=0.008767 
rho=10.53 [kmol/m^3]
s=104.6 [kJ/kmol-K]
T=300 [K]
TV=14 
v=0.095 [m^3/kmol]
x_R134a=0.7017 
x_R32=0.2983 
y_R134a=0.5312 
y_R32=0.4688 
}


Example 2:
$UnitSystem SI C kPa mass
$ConvertEESREFPROPUnits /mass 
TV=14                 "mode for flash calculation, given temperature and specific volume"
Fluid$='R460A'
TC=-20 [C]
v_in=0.25 [m^3/kg]
Call ees_refprop(Fluid$, TV, TC, v_in :T, P, rho, v ,h, s, Q)

{Solution:
Fluid$='R460A'
h=369.2 [kJ/kg]
P=81.65 [kPa]
Q=2.753 
rho=4 [kg/m^3]
s=1.866 [kJ/kg-K]
T=-20 [C]
TC=-20 [C]
TV=14 
v=0.25 [m^3/kg]
v_in=0.25 [m^3/kg]
}

Return