Skip to main content
Version: 8.1

system.thermo.if97.vaporFraction

Calculates vapor fraction.

Syntax

system.thermo.if97.vaporFraction(h, s) # Enthalpy and Entropy
system.thermo.if97.vaporFraction(p, h) # Pressure and Enthalpy
system.thermo.if97.vaporFraction(p, s) # Pressure and Entropy
system.thermo.if97.vaporFraction(t, s) # Temperature and Entropy
info

This function must be called with named parameters.

Parameters

TypeParameterDescription
DoublehSpecific Enthalpy (J/kg)
DoublesSpecific Entropy (J/(kg·K))
DoublepAbsolute Pressure (Pa)
DoubletTemperature (K)

Returns

Double - Vapor Fraction (Quality) (0 to 1)

The fraction of the substance in the vapor phase

Scope

Gateway, Designer, Client, Perspective Session

Example

Enthalpy and Entropy

h = 2000000
s = 5000
result = system.thermo.if97.vaporFraction(h=h, s=s)
print result
Result
0.636101614663