Cape Thermo Material WrapperGet Overall TPFraction Method
Retrieves temperature, pressure and composition for the overall mixture.
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 GetOverallTPFraction(
ref double temperature,
ref double pressure,
ref double[] composition
)VB
Public Sub GetOverallTPFraction (
ByRef temperature As Double,
ByRef pressure As Double,
ByRef composition As Double()
)Parameters
Remarks
This method is provided to make it easier for developers to make efficient use of the CAPEOPEN interfaces. It returns the most frequently requested information from a Material Object in a single call.
There is no choice of basis in this method. The composition is always returned as mole fractions.
Exceptions
| ECapeNoImpl | The operation GetOverallProp is “not” implemented even if this method can be called for reasons of compatibility with the CAPE-OPEN standards. That is to say that the operation exists but it is not supported by the current implementation. |
| ECapeThrmPropertyNotAvailable | The Physical Property required is not available from the Material Object, possibly for the basis requested. This exception is raised when a Physical Property value has not been set following a call to the CreateMaterial or ClearAllProps methods. |
| ECapeFailedInitialisation | The pre-requisites are not valid. The necessary initialisation has not been performed or has failed. |
| ECapeUnknown | The error to be raised when other error(s), specified for this operation, are not suitable. |