Material Object WrapperCalc 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#
public void CalcProp(
string[] props,
string[] phases,
string calcType
)VB
Public Sub CalcProp (
props As String(),
phases As String(),
calcType As String
)Parameters
- props String
- The List of Properties to be calculated.
- phases String
- List of phases for which the properties are to be calculated.
- 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 |