ICapeThermoCalculationRoutineCalcProp Method

Calculate some properties

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
void CalcProp(
	Object materialObject,
	Object props,
	Object phases,
	string calcType
)

Parameters

materialObject  Object
The MaterialObject for the Calculation.
props  Object
The List of Properties to be calculated. A reference to a System.Object containing a String array marshalled as a COM Object.
phases  Object
List of phases for which the properties are to be calculated. A reference to a System.Object containing a String array marshalled as a COM Object.
calcType  String
Type of calculation: Mixture Property or Pure Component Property. For partial property, such as fugacity coefficients of components in a mixture, use “Mixture” CalcType. For pure component fugacity coefficients, use “Pure” CalcType.

Remarks

This method is responsible for doing all calculations on behalf of the calculation routine component. This method is further defined in the descriptions of the CAPE-OPEN Calling Pattern and the User Guide Section.

Exceptions

ECapeUnknownThe error to be raised when other error(s), specified for this operation, are not suitable.
ECapeInvalidArgumentTo be used when an invalid argument value is passed, for example, an unrecognised Compound identifier or UNDEFINED for the props argument.
ECapeBadInvOrderECapeBadInvOrder
ECapeSolvingErrorECapeSolvingError
ECapeOutOfBoundsECapeOutOfBounds

See Also