Click or drag to resize

PR78CheckRoot Method

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.ThermoPlugs
Assembly: 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
)
Request Example View Source

Parameters

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

Double
A 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