ICapeThermoUniversalConstantGetUniversalConstant Method

Retrieves the value of a Universal Constant.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[DispIdAttribute(1)]
Object GetUniversalConstant(
	string constantId
)

Parameters

constantId  String
Identifier of Universal Constant. The list of constants supported should be obtained by using the GetUniversalConstList method.

Return Value

Object
Value of Universal Constant. This could be a numeric or a string value. For numeric values the units of measurement are specified in section 7.5.1.

Remarks

Universal Constants (often called fundamental constants) are quantities like the gas constant, or the Avogadro constant.

Exceptions

ECapeNoImplThe operation GetUniversalConstant 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.
ECapeInvalidArgumentFor example, UNDEFINED for constantId argument is used, or value for constantId argument does not belong to the list of recognised values.
ECapeUnknownThe error to be raised when other error(s), specified for the GetUniversalConstant operation, are not suitable.

See Also