Skip to main content
Version: 8.1

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

TypeParameterDescription
DoublehSpecific Enthalpy (J/kg)
DoublepAbsolute Pressure (Pa)
DoublesSpecific Entropy (J/(kg·K))
DoubletTemperature (K)
DoublexVapor 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