It returns the pressure, given 2 input thermodynamic variables as defined by the InputSpec argument.
Default unit: bar
The general syntax for programs like Excel and programming languages like Fortran is:
P = Pressure( FluidObj, InputSpec, Value1, Value2, ErrorMsg)
The syntax for object oriented programming languages like VB, C++ and Matlab is:
P = FluidObj.Pressure( InputSpec, Value1, Value2, ErrorMsg)
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 |
Value2: |
Double |
ErrorMsg: |
String |
Excel Example:
P = Pressure( 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.