PropertyPackageCalcEquilibrium2 Method |
Method responsible for calculating phase equilibria.
Namespace: DWSIM.Thermodynamics.PropertyPackagesAssembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax public virtual void CalcEquilibrium2(
Object materialObject,
string flashType,
Object props
)
Public Overridable Sub CalcEquilibrium2 (
materialObject As Object,
flashType As String,
props As Object
)
Request Example
View SourceParameters
- 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
ICapeThermoEquilibriumServer.CalcEquilibrium(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.
See Also