gasConstant_X

Return ideal gas constant as a function from composition X

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

The ideal gas constant for moist air is computed from the gas phase composition. The first entry in composition vector X is the steam mass fraction of the gas phase.

Syntax

R = gasConstant_X(X)

Inputs (1)

X

Type: MassFraction[:]

Description: Gas phase composition

Outputs (1)

R

Type: SpecificHeatCapacity (J/(kg·K))

Description: Ideal gas constant