GetFluidNames

It returns a string vector containing the names of the fluids available in the specified library. Both the long and short name formats can be specified.

 

The general syntax is:

GetFluidNames( Type, Library, nFluids, FluidSet, ErrorMsg)

 

The syntax for Excel is:

GetFluidNames( Type, Library)

 

Arguments:

Type:

a string containing either "short", "s", "long" or "l", which indicates the wanted format for the names (input)

Library:

a string containing the library name; if Library is blank (" ") or "all" then all names of all fluids available are returned (input)

nFluids:

number of fluids in the library (output)

FluidSet:

set of fluids in the library (output)

ErrorMsg:

String (output)

 

 

Excel Examples:

 

GetFluidNames("s", "all")

GetFluidNames("s", "GasMix")

GetFluidNames("l", "RefProp")

GetFluidNames("short", "StanMix")

GetFluidNames("Long", "TPSI")

 

Note: in case an error occurs during execution, the value returned by the function is a string containing the error description.