UnitOperationWrapperCalculate Method

Executes the necessary calculations involved in the unit operation model.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
public virtual void Calculate()

Implements

ICapeUnitCalculate

Remarks

The Flowsheet Unit performs its calculation, that is, computes the variables that are missing at this stage in the complete description of the input and output streams and computes any public parameter value that needs to be displayed. Calculate will be able to do progress monitoring and checks for interrupts as required using the simulation context. At present, there are no standards agreed for this.

It is recommended that Flowsheet Units perform a suitable flash calculation on all output streams. In some cases a Simulation Executive will be able to perform a flash calculation but the writer of a Flowsheet Unit is in the best position to decide the correct flash to use.

Before performing the calculation, this method should perform any final validation tests that are required. For example, at this point the validity of Material Objects connected to ports can be checked.

There are no input or output arguments for this method.

Exceptions

ECapeUnknownThe error to be raised when other error(s), specified for this operation, are not suitable.
ECapeBadInvOrderECapeBadInvOrder
ECapeOutOfResourcesECapeOutOfResources
ECapeTimeOutECapeTimeOut
ECapeSolvingErrorECapeSolvingError
ECapeLicenceErrorECapeLicenceError

See Also