CapeThermoMaterialWrapperGetPhaseList Method

Returns Phase labels and other important descriptive information for all the Phases supported.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
private void GetPhaseList(
	ref string[] phaseLabels,
	ref string[] stateOfAggregation,
	ref string[] keyCompoundId
)

Parameters

phaseLabels  String
The list of Phase labels for the Phases supported. A Phase label can be any string but each Phase must have a unique label. If, for some reason, no Phases are supported an UNDEFINED value should be returned for the phaseLabels. The number of Phase labels must also be equal to the number of Phases returned by the GetNumPhases method.
stateOfAggregation  String
The physical State of Aggregation associated with each of the Phases. This must be one of the following strings: ”Vapor”, “Liquid”, “Solid” or “Unknown”. Each Phase must have a single State of Aggregation. The value must not be left undefined, but may be set to “Unknown”.
keyCompoundId  String
The key Compound for the Phase. This must be the Compound identifier (as returned by GetCompoundList), or it may be undefined in which case a UNDEFINED value is returned. The key Compound is an indication of the Compound that is expected to be present in high concentration in the Phase, e.g. water for an aqueous liquid phase. Each Phase can have a single key Compound.

Remarks

The Phase label allows the phase to be uniquely identified in methods of the ICapeThermoPhases interface and other CAPE-OPEN interfaces. The State of Aggregation and key Compound provide a way for the PME, or other client, to interpret the meaning of a Phase label in terms of the physical characteristics of the Phase.

All arrays returned by this method must be of the same length, i.e. equal to the number of Phase labels.

To get further information about a Phase, use the GetPhaseInfo method.

Exceptions

ECapeNoImplThe operation 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.
ECapeUnknownThe error to be raised when other error(s), specified for this operation, are not suitable.

See Also