Contents - Index


MODE = DS (36)

 

MODE = PH (25)

 

Description: Calculate thermodynamic properties for given density and specific entropy

     In1 =Density in gmol/m3

     In2 = Specific entropy in J/gmol-K

     In3 = mole fraction of first component (skip for pure fluid)

     ...

     InN  = mole fraction of next to last component

     Out1 = Temperature in K

     Out2 = Pressure in Pa  

     Out3 = Density in gmol/m3 (same as In1)

     Out4 = Specific volume in m3/gmol

     Out5 = Specific enthalpy in J/gmol

     Out6 = Specific entropy in J/K-gmol  (same as in2)

     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.

Viscosity, thermal conductivity and soundspeed are not evaluated if the state is in the vapor dome with quality >0 and <1.  In this case, these variables are set to -999.

 

Example: 

DS=36      "mode for given density and specific enthalpy - this is not needed if the $INCLUDE EES_COOLPROP.txt directive is used"

rhoin=220 [gmole/m^3]  "density"

sin=167 [J/gmol-K] "specific entropy"

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, DS,rhoin, sin : T, P, rho, v, h, s, Q, Cv, Cp, w, visc,cond)

 

{Solution:

cond=0.0138 [W/m-K]

Cp=82.53 [J/K-gmol]

Cv=68.77 [J/K-gmol]

DS=36 

F$='R32+R134a'

h=38389 [J/gmol]

mf=0.3 

P=495527 [Pa]

Q=100 

rho=220 [gmol/m3]

rhoin=220 [gmole/m^3]

s=167 [J/K-gmol]

sin=167 [J/gmol-K]

T=298.4 [K]

v=0.004545 [m3/gmol]

visc=0.00001221 [Pa-s]

w=167.2 [m/s]

}

 

Return