CreateObject

It creates an empty FluidProp object for a certain library.

This method need not to be used if the SetFluid method is employed, because SetFluid itself calls the CreateObject method internally.

The CreateObject method can also be used to test if a certain thermodynamic library is available. For example, suppose that the RefProp library is not installed, then CreateObject( &ldots;, "RefProp", ErrorMsg) yields ErrorMsg = "Error in FluidProp: library RefProp not available.".

 

The general syntax for programming languages like Fortran is:

CreateObject(FluidObj, Library, ErrorMsg)

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

FluidObj.CreateObject (Library, ErrorMsg)

 

Arguments:

FluidObj:

The object that is created

Library:

String, library name (possible values: TPSI, RefProp, StanMix, GasMix, IF97)

ErrorMsg:

String

 

Note: this method is not available in Excel.