ICape Thermo Calculation RoutineCalc Prop Method
Calculate some properties
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#
void CalcProp(
Object materialObject,
Object props,
Object phases,
string calcType
)VB
Sub CalcProp (
materialObject As Object,
props As Object,
phases As Object,
calcType As String
)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
| 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 |