Michelsen FlashGeneral Flash Method
Performs a general flash calculation for the specified pair of thermodynamic specifications (T, P, H, S, or vapor fraction).
Definition
Namespace: DWSIM.Thermodynamics.PropertyPackages
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 10.0.0.0
Array containing the calculated temperature, pressure, and phase split results.
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 10.0.0.0
C#
public Object GeneralFlash(
FlashSpec spec1,
FlashSpec spec2,
double val1,
double val2,
Array Vz,
Object VKij,
Array VTc,
Array VPc,
Array Vw,
double FirstEstimate = 0,
Object otherargs = null
)VB
Public Function GeneralFlash (
spec1 As FlashSpec,
spec2 As FlashSpec,
val1 As Double,
val2 As Double,
Vz As Array,
VKij As Object,
VTc As Array,
VPc As Array,
Vw As Array,
Optional FirstEstimate As Double = 0,
Optional otherargs As Object = Nothing
) As ObjectParameters
- spec1 FlashSpec
- First flash specification (e.g., FlashSpec.T or FlashSpec.P).
- spec2 FlashSpec
- Second flash specification (e.g., FlashSpec.P, FlashSpec.H, FlashSpec.S, or FlashSpec.VAP).
- val1 Double
- Value for the first specification (in SI units).
- val2 Double
- Value for the second specification (in SI units).
- Vz Array
- Array of overall mole fractions.
- VKij Object
- Binary interaction parameter matrix.
- VTc Array
- Array of critical temperatures (K).
- VPc Array
- Array of critical pressures (Pa).
- Vw Array
- Array of acentric factors.
- FirstEstimate Double (Optional)
- Optional first estimate for the unknown variable (0 for automatic).
- otherargs Object (Optional)
- Optional additional arguments passed to the EOS.
Return Value
ObjectArray containing the calculated temperature, pressure, and phase split results.