AllProps

It returns all available thermophysical properties, given 2 input thermodynamic variables as defined by the InputSpec argument (see Thermodynamic State definitions).

The properties that are calculated and the default units are listed in the table of available Thermodynamic and Transport Properties.

 

The general syntax for procedural programming languages like Fortran is:

call AllProps( FluidObj, InputSpec, Value1, Value2, P, T, v, d, h, s, u, q, x, y, cv, cp, c, alpha, beta, chi, fi, ksi, psi, zeta, theta, kappa, gamma, eta, lambda, ErrorMsg)

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

FluidObj.AllProps( InputSpec, Value1, Value2, P, T, v, d, h, s, u, q, x, y, cv, cp, c, alpha, beta, chi, fi, ksi, psi, zeta, theta, kappa, gamma, eta, lambda, ErrorMsg)

The general syntax for Excel is:

AllProps( 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 (input)

Value2:

Double (input)

P, T, v, d,

h, s, u, q:

Double (output)

x, y:

1-dimensional double array (output)

cv, cp, c,

alpha, beta,

chi, fi, ksi,

psi, zeta, theta,

kappa, gamma,

eta, lambda:

Double (output)

ErrorMsg:

String (output)

 

Excel Example:

 

AllProps( A1, "Ts", 50, 0.1)

 

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.

The function returns an array with 23 elements, namely P, T, v, d, h, s, u, q, cv, cp, c, alpha, beta, chi, fi, ksi, psi, zeta, theta, kappa, gamma, eta, lambda