Property PackageCalc Equilibrium 2 Method
Method responsible for calculating phase equilibria.
Definition
Namespace: DWSIM.Thermodynamics.PropertyPackages
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 10.0.0.0
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 10.0.0.0
C#
public virtual void CalcEquilibrium2(
Object materialObject,
string flashType,
Object props
)VB
Public Overridable Sub CalcEquilibrium2 (
materialObject As Object,
flashType As String,
props As Object
)Parameters
- materialObject Object
- Material Object of the calculation
- flashType String
- Flash calculation type.
- props Object
- Properties to be calculated at equilibrium. UNDEFINED for no properties. If a list, then the property values should be set for each phase present at equilibrium. (not including the overall phase).
Implements
ICapeThermoEquilibriumServerCalcEquilibrium(Object, String, Object)Remarks
The CalcEquilibrium method must set on the Material Object the amounts (phaseFraction) and compositions
(fraction) for all phases present at equilibrium, as well as the temperature and pressure for the overall
mixture, if not set as part of the calculation specifications. The CalcEquilibrium method must not set on the
Material Object any other value - in particular it must not set any values for phases that do not exist. See
5.2.1 for more information.
The available list of flashes is given in section 5.6.1.
It is advised not to combine a flash calculation with a property calculation. By the returned error one cannot
see which has failed, plus the additional arguments to CalcProp (such as calculation type) cannot be
specified. Advice is to perform a CalcEquilibrium, get the phaseIDs and perform a CalcProp for those
phases.