ICape Thermo Material ObjectCalc 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#
[DispIdAttribute(5)]
void CalcProp(
Object props,
Object phases,
string calcType
)VB
<DispIdAttribute(5)>
Sub CalcProp (
props As Object,
phases As Object,
calcType As String
)Parameters
- props Object
- The List of Properties to be calculated. A System.Object containing a String array.
- phases Object
- List of phases for which the properties are to be calculated. A System.Object containing a String array.
- 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 property calculations and delegating
these calculations to the associated thermo system. This method is further
defined in the descriptions of the CAPE-OPEN Calling Pattern and the User
Guide Section. See Notes for a more detailed explanation of the arguments and
CalcProp description in the notes for a general discussion of the method.
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. |
| ECapeSolvingError | ECapeSolvingError |
| ECapeOutOfBounds | ECapeOutOfBounds |
| ECapeLicenceError | ECapeLicenceError |