Specification of pressure and volume (PV flash)
Compute the properties of a given fluid, at a fixed pressure and volume.
Function signature
Function parameters
The function takes the following arguments:
- Fluid: TEXT
The name of the fluid. The list of available fluids can be found here.
- P: NUMBER
The pressure at which the properties are to be computed. The pressure unit depends on the units specified in the
in-units
parameter. The default unit isPa
.- V: NUMBER
The volume at which the properties are to be computed. The volume unit depends on the units specified in the
in-units
parameter. The default unit is㎥/kg
.- 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 pressure and volume.
Example usage
The following examples demonstrate the usage of the XLT.REF.FLASH.PV
function.
Calculating the enthalpy of water at 101325 Pa and 0.001003 ㎥/kg

Calculating the enthalpy, entropy, and density of water at 101325 Pa and 0.001003 ㎥/kg
