SetRefState

It defines the reference state in case both the state definitions and the calculated properties must be non-dimensional.

 

The syntax for programming languages like Fortran is:

SetRefState ( FluidObj, T_ref, P_ref, ErrorMsg)

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

FluidObj.SetRefState( T_ref, P_ref, ErrorMsg)

 

Notes

In order to use the SetRefState method, an object variable must have been created. The reference state defined by the SetRefState method applies to all object variables that are used in the current application.

This method is not available in Excel.

 

Arguments

FluidObj: An object variable created at runtime.

T_ref: Reference temperature, double, unit: °C

P_ref: Reference pressure, double, unit: bar

ErrorMsg: Error message if reference state cannot be set, string

 

Example

To define the reference state to be T = 50 °C and P = 2 bar:

SetRefState( 50, 2, ErrorMsg)