XLThermo Documentation Help

Specification of temperature and vapor fraction (TX flash)

Compute the properties of a given fluid, at a fixed temperature and vapor fraction.

Function signature

XLT.REF.FLASH.TX(Fluid, T, X, Properties, [in-units], [out-units])

Function parameters

The function takes the following arguments:

Fluid: TEXT

The name of the fluid. The list of available fluids can be found here.

T: NUMBER

The temperature at which the properties are to be computed. The temperature unit depends on the units specified in the in-units parameter. The default unit is K.

X: NUMBER

The vapor fraction at which the properties are to be computed. The value must be between 0 and 1.

Properties: TEXT or TEXT array

The list of properties to be computed. The list of available properties can be found here.

in-units: TEXT [optional]

A string specifying the units of the temperature and pressure. The default unit is SI. The list of available units can be found here.

out-units: TEXT [optional]

A string specifying the units of the properties. The default unit is SI. The list of available units can be found here.

Function results

Returns a value, or an array of values, corresponding to the list of properties of the fluid at the given temperature and vapor fraction.

Example usage

The following examples demonstrate the usage of the XLT.REF.FLASH.TX function.

Calculating the enthalpy of water at 373.15 K and a vapor fraction of 0.5

=XLT.REF.FLASH.PX("WATER",373.15,0.5,"H")
Water PT H

Calculating the enthalpy, pressure, and entropy of water at 373.15 K and a vapor fraction of 0.5

=XLT.REF.FLASH.TX("WATER",373.15,0.5,{"H";"P";"S"})
Water PT H
Last modified: 17 March 2025