CapeThermoMaterialWrapper Class

A wrapper class for the ICapeThermoMaterial interface.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[ComVisibleAttribute(false)]
public class CapeThermoMaterialWrapper
Inheritance
Object    CapeThermoMaterialWrapper

Remarks

This class provides access to the Material Object, whhich is a container of information that describes a Material stream. Calculations of thermophysical and thermodynamic properties are performed by a Property Package using information stored in a Material Object. Results of such calculations may be stored in the Material Object for further usage. The ICapeThermoMaterial interface provides the methods to gather information and perform checks in preparation for a calculation, to request a calculation and to retrieve results and information stored in the Material Object.

Constructors

CapeThermoMaterialWrapper Creates an instance of the CapeThermoMaterialWrapper class for the material specificed.

Methods

CalcAndGetLnPhiThis method is used to calculate the natural logarithm of the fugacity coefficients (and optionally their derivatives) in a single Phase mixture. The values of temperature, pressure and composition are specified in the argument list and the results are also returned through the argument list.
CalcEquilibrium CalcEquilibrium is used to calculate the amounts and compositions of Phases at equilibrium. CalcEquilibrium will calculate temperature and/or pressure if these are not among the two specifications that are mandatory for each Equilibrium Calculation considered.
CalcSinglePhasePropCalcSinglePhaseProp is used to calculate properties and property derivatives of a mixture in a single Phase at the current values of temperature, pressure and composition set in the Material Object. CalcSinglePhaseProp does not perform phase Equilibrium Calculations.
CalcTwoPhasePropCalcTwoPhaseProp is used to calculate mixture properties and property derivatives that depend on two Phases at the current values of temperature, pressure and composition set in the Material Object. It does not perform Equilibrium Calculations.
CheckEquilibriumSpecChecks whether the Property Package can support a particular type of Equilibrium Calculation.
CheckSinglePhasePropSpecChecks whether it is possible to calculate a property with the CalcSinglePhaseProp method for a given Phase.
CheckTwoPhasePropSpecChecks whether it is possible to calculate a property with the CalcTwoPhaseProp method for a given set of Phases.
ClearAllProps Remove all stored Physical Property values.
CopyFromMaterial Copies all the stored non-constant Physical Properties (which have been set using the SetSinglePhaseProp, SetTwoPhaseProp or SetOverallProp) from the source Material Object to the current instance of the Material Object.
CreateMaterial Creates a Material Object with the same configuration as the current Material Object.
Dispose 
GetCompoundConstantReturns the values of constant Physical Properties for the specified Compounds.
GetCompoundListReturns the list of all Compounds. This includes the Compound identifiers recognised and extra information that can be used to further identify the Compounds.
GetConstPropList Returns the list of supported constant Physical Properties.
GetNumCompoundsReturns the number of Compounds supported.
GetNumPhasesReturns the number of Phases.
GetOverallProp Retrieves non-constant Physical Property values for the overall mixture.
GetOverallTPFraction Retrieves temperature, pressure and composition for the overall mixture.
GetPDependentPropertyReturns the values of pressure-dependent Physical Properties for the specified pure Compounds.
GetPDependentPropListReturns the list of supported pressure-dependent properties.
GetPhaseInfoReturns information on an attribute associated with a Phase for the purpose of understanding what lies behind a Phase label.
GetPhaseList Returns Phase labels and other important descriptive information for all the Phases supported.
GetPresentPhases Returns Phase labels for the Phases that are currently present in the Material Object.
GetSinglePhaseProp Retrieves single-phase non-constant Physical Property values for a mixture.
GetSinglePhasePropListReturns the list of supported non-constant single-phase Physical Properties.
GetTDependentPropertyReturns the values of temperature-dependent Physical Properties for the specified pure Compounds.
GetTDependentPropListReturns the list of supported temperature-dependent Physical Properties.
GetTPFraction Retrieves temperature, pressure and composition for a Phase.
GetTwoPhaseProp Retrieves two-phase non-constant Physical Property values for a mixture.
GetTwoPhasePropListReturns the list of supported non-constant two-phase properties.
GetUniversalConstantRetrieves the value of a Universal Constant.
GetUniversalConstantListReturns the identifiers of the supported Universal Constants.
SetOverallProp Sets non-constant property values for the overall mixture.
SetPresentPhases Allows the PME or the Property Package to specify the list of Phases that are currently present.
SetSinglePhaseProp Sets single-phase non-constant property values for a mixture.
SetTwoPhaseProp Sets two-phase non-constant property values for a mixture.

Fields

Extension Methods

GetEnumNames
(Defined by General)
IsValidDouble
(Defined by General)

See Also