LiquidCmp

It returns the liquid phase composition, given 2 input thermodynamic variables as defined by the InputSpec argument.

 

Default unit: mole fractions

 

Because the output is an array, the general syntax for a programming language like Fortran is:

call LiquidCmp( FluidObj, InputSpec, Value1, Value2, x, ErrorMsg)

The syntax for object oriented programming languages like VB, C++ and Matlab is:

x = FluidObj.LiquidCmp( InputSpec, Value1, Value2, ErrorMsg)

The general syntax for Excel is:

x = LiquidCmp( FluidObj, InputSpec, Value1, Value2)

 

Arguments:

FluidObj:

In Excel it is the variable returned by SetFluid, in other programs or programming environments it is an object variable created at runtime.

InputSpec:

String

Value1:

Double

Value2:

Double

ErrorMsg:

String

 

Excel Example:

 

x = LiquidCmp( A1, "PT", 1, 125)

 

Notes: A1 is a cell containing the value returned by SetFluid.

The error message is not in the arguments list; in case an error occurs during the calculation, the value returned by the function is a string containing the error description.

The possible input specifications are listed in the table of available Thermodynamic State definitions.