function gasConstant_X extends Modelica.Icons.Function; input Modelica.SIunits.MassFraction X[:]; output Real R(final unit = "J/(kg.K)"); end gasConstant_X;