This procedure checks if the compressibility factor is within the allowable region for the specified phase.
If not, it generates a pseudo-root cabable of generate properties for the specified phase in order to keep
the flash convergence process going forward.
Namespace: DWSIM.Thermodynamics.PropertyPackages.ThermoPlugsAssembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax public static double[] CheckRoot(
double Z,
double a,
double b,
double P,
double T,
string phaselabel
)
Public Shared Function CheckRoot (
Z As Double,
a As Double,
b As Double,
P As Double,
T As Double,
phaselabel As String
) As Double()
Request Example
View SourceParameters
- Z Double
- The calculated compressibility factor, coming from the EOS
- a Double
- EOS 'a' mixture parameter
- b Double
- EOS 'b' mixture parameter
- P Double
- Pressure in Pa
- T Double
- Temperature in K
- phaselabel String
- 'L' for Liquid, 'V' for Vapor.
Return Value
DoubleA vector containing the calculated compressibility factor and pressure, if required.
If the given compressibility factor is within the allowable range, it is returned together with
the specified pressure (no pseudoroot calculation is required).
Remarks This procedure is based on the paper:
Mathias, P. M., Boston, J. F. and Watanasiri, S. (1984),
Effective utilization of equations of state for thermodynamic properties in process simulation.
AIChE J., 30: 182–186. doi: 10.1002/aic.690300203
See Also