Click or drag to resize

MaterialStreamCalcEquilibrium Method

This method is responsible for calculating a flash or delegating flash calculations to the associated Property Package or Equilibrium Server.

Namespace: DWSIM.Thermodynamics.Streams
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax
public void CalcEquilibrium(
	string flashType,
	Object props
)
Request Example View Source

Parameters

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

ICapeThermoMaterialObject.CalcEquilibrium(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. Although 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 on the existing phases. The Material Object may or may not delegate this call to a Property Package.
See Also