CapeCalculationCode 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)
[SerializableAttribute]
public enum CapeCalculationCode

Remarks

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 TypeEnumeration ValueNumerical Value
no calculationCAPE_NO_CALCULATION0
log fugacity coefficientsCAPE_LOG_FUGACITY_COEFFICIENTS1
T-derivativeCAPE_T_DERIVATIVE2
P-derivativeCAPE_P_DERIVATIVE4
mole number derivativesCAPE_MOLE_NUMBERS_DERIVATIVES8

If CalcAndGetLnPhi is called with fFlags set to CAPE_NO_CALCULATION no property values are returned.

Members

CAPE_NO_CALCULATION0Do not calulate any proeprty values.
CAPE_LOG_FUGACITY_COEFFICIENTS1Calculate the value of the log of the fugacity coefficient.
CAPE_T_DERIVATIVE2Calculate the value of the temperature derivates.
CAPE_P_DERIVATIVE4Calculate the value of the pressure derivates.
CAPE_MOLE_NUMBERS_DERIVATIVES8Calculate the value of the mole number derivates.

See Also