It returns all available thermophysical properties and some saturation properties as function of pressure P, given 2 input thermodynamic variables as defined by the InputSpec argument (see Thermodynamic State definitions).
The thermophysical properties that are calculated and the default units are listed in the table of available Thermodynamic and Transport Properties. The following saturation properties are calculated (default units):
d_liq |
saturated liquid density |
[kg/m3] |
d_vap |
saturated vapor density |
[kg/m3] |
h_liq |
saturated liquid enthalpy |
[kJ/kg] |
h_vap |
saturated vapor enthalpy |
[kJ/kg] |
T_sat |
saturation temperature |
[°C] |
dd_liq_dP |
first-order partial derivative of the saturated liquid density with respect to the pressure |
[kg/m3.bar] |
dd_vap_dP |
first-order partial derivative of the saturated vapor density with respect to the pressure |
[kg/m3.bar] |
dh_liq_dP |
first-order partial derivative of the saturated liquid enthalpy with respect to the pressure |
[kJ/kg.bar] |
dh_vap_dP |
first-order partial derivative of the saturated vapor enthalpy with respect to the pressure |
[kJ/kg.bar] |
dT_sat_dP |
first-order derivative of the saturation temperature with respect to the pressure |
[K/bar] |
The general syntax for procedural programming languages like Fortran is:
call AllPropsSat( 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, d_liq, d_vap, h_liq, h_vap, T_sat, dd_liq_dP, dd_vap_dP, dh_liq_dP, dh_vap_dP, dT_sat_dT, ErrorMsg)
The syntax for object oriented programming languages like VB, C++ and Matlab is:
FluidObj.AllPropsSat( 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, d_liq, d_vap, h_liq, h_vap, T_sat, dd_liq_dP, dd_vap_dP, dh_liq_dP, dh_vap_dP, dT_sat_dT, ErrorMsg)
The general syntax for Excel is:
AllPropsSat( 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) |
x, y: |
1-dimensional double array (output) |
ErrorMsg: |
String (output) |
The remaining arguments are all type Double (output):
P, T, v, d, h, s, u, q, cv, cp, c,alpha, beta, chi, fi, ksi, psi, zeta, theta, kappa, gamma, eta, lambda, d_liq, d_vap, h_liq, h_vap, T_sat, dd_liq_dP, dd_vap_dP, dh_liq_dP, dh_vap_dP, dT_sat_dT
Excel Example:
AllPropsSat( 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 33 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, d_liq, d_vap, h_liq, h_vap, T_sat, dd_liq_dP, dd_vap_dP, dh_liq_dP, dh_vap_dP, dT_sat_dT
The saturation properties are calculated at pressure P, which in turn is calculated given the two input thermodynamic variables as defined by the InputSpec argument.