Cape Calculation Code Enumeration
A flag that indicates the desired calculations for the ICapeThermoPropertyRoutine.CalcAndGetLnPhi method.
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#
[SerializableAttribute]
public enum CapeCalculationCodeVB
<SerializableAttribute>
Public Enumeration CapeCalculationCodeRemarks
The quantities actually calculated and returned by this method are controlled by an integer code fFlags. The code is formed by summing contributions for the property and each derivative required using the enumerated constants CapeCalculationCode (defined in the Thermo version 1.1 IDL) shown in the following table. For example, to calculate log fugacity coefficients and their T-derivatives the fFlags argument would be set to CAPE_LOG_FUGACITY_COEFFICIENTS + CAPE_T_DERIVATIVE.
| Calculation Type | Enumeration Value | Numerical Value |
|---|---|---|
| no calculation | CAPE_NO_CALCULATION | 0 |
| log fugacity coefficients | CAPE_LOG_FUGACITY_COEFFICIENTS | 1 |
| T-derivative | CAPE_T_DERIVATIVE | 2 |
| P-derivative | CAPE_P_DERIVATIVE | 4 |
| mole number derivatives | CAPE_MOLE_NUMBERS_DERIVATIVES | 8 |
If CalcAndGetLnPhi is called with fFlags set to CAPE_NO_CALCULATION no property values are returned.
Members
| CAPE_NO_CALCULATION | 0 | Do not calulate any proeprty values. |
| CAPE_LOG_FUGACITY_COEFFICIENTS | 1 | Calculate the value of the log of the fugacity coefficient. |
| CAPE_T_DERIVATIVE | 2 | Calculate the value of the temperature derivates. |
| CAPE_P_DERIVATIVE | 4 | Calculate the value of the pressure derivates. |
| CAPE_MOLE_NUMBERS_DERIVATIVES | 8 | Calculate the value of the mole number derivates. |