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
Type | Parameter | Description |
---|---|---|
Double | h | Specific Enthalpy (J/kg) |
Double | s | Specific Entropy (J/(kg·K)) |
Double | p | Absolute Pressure (Pa) |
Double | t | Temperature (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