Material Object WrapperCalc Equilibrium Method
Calculate some equilibrium values
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public void CalcEquilibrium(
string flashType,
string[] props
)VB
Public Sub CalcEquilibrium (
flashType As String,
props As String()
)Parameters
Remarks
This method is responsible for delegating flash calculations to the
associated Property Package or Equilibrium Server. It must set the amounts,
compositions, temperature and pressure 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. See CalcProp and CalcEquilibrium
for more information.
Exceptions
| ECapeUnknown | The error to be raised when other error(s), specified for this operation, are not suitable. |
| ECapeInvalidArgument | To be used when an invalid argument value is passed, for example, an unrecognised Compound identifier or UNDEFINED for the props argument. |
| ECapeBadInvOrder | ECapeBadInvOrder |
| ECapeSolvingError | ECapeSolvingError |
| ECapeOutOfBounds | ECapeOutOfBounds |
| ECapeLicenceError | ECapeLicenceError |