system.thermo.if97.density
Calculates density. This is a convenience method which simply calls 1.0 / specificVolume.
Syntax
system.thermo.if97.density(h, s) # Enthalpy and Entropy
system.thermo.if97.density(p, h) # Pressure and Enthalpy
system.thermo.if97.density(p, s) # Pressure and Entropy
system.thermo.if97.density(p, t) # Pressure and Temperature
system.thermo.if97.density(p, x) # Pressure and Vapor Fraction
system.thermo.if97.density(t, x) # Temperature and Vapor Fraction
info
This function must be called with named parameters.
Parameters
Type | Parameter | Description |
---|---|---|
Double | h | Specific Enthalpy (J/kg) |
Double | p | Absolute Pressure (Pa) |
Double | s | Specific Entropy (J/(kg·K)) |
Double | t | Temperature (K) |
Double | x | Vapor Fraction (quality) |
Returns
Double - Density (kg/m³)
The mass of a substance per unit volume.
Scope
Gateway, Designer, Client, Perspective Session
Example
Pressure and Temperature
p = 101325
t = 373.15
result = system.thermo.if97.density(p=p, t=t) # Call with pressure and temperature
print result
Result
0.597578562374