From b94b49a7dcedf906ff97a9fbd9ac15b272b6bb39 Mon Sep 17 00:00:00 2001 From: Francesco Casella Date: Tue, 16 Apr 2024 19:12:08 +0200 Subject: [PATCH] Fixes #4389 --- Modelica/Media/package.mo | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Modelica/Media/package.mo b/Modelica/Media/package.mo index 0b4c320d43..1d6b93d575 100644 --- a/Modelica/Media/package.mo +++ b/Modelica/Media/package.mo @@ -6082,7 +6082,7 @@ Note that the (small) influence of the pressure term p/d is neglected. extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input Temperature T "Temperature"; - input MassFraction X[nX] "Mass fractions"; + input MassFraction X[:] "Mass fractions"; output SpecificEnthalpy h "Specific enthalpy"; algorithm h := cp_const*(T - T0); @@ -6098,7 +6098,7 @@ This function computes the specific enthalpy of the fluid, but neglects the (sma extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; - input MassFraction X[nX] "Mass fractions"; + input MassFraction X[:] "Mass fractions"; output Temperature T "Temperature"; algorithm T := T0 + h/cp_const; @@ -6108,7 +6108,7 @@ This function computes the specific enthalpy of the fluid, but neglects the (sma extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; - input MassFraction X[nX] "Mass fractions"; + input MassFraction X[:] "Mass fractions"; output Density d "Density"; algorithm d := density(setState_phX( @@ -6403,7 +6403,7 @@ quantities are assumed to be constant. extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input Temperature T "Temperature"; - input MassFraction X[nX] "Mass fractions"; + input MassFraction X[:] "Mass fractions"; output SpecificEnthalpy h "Specific enthalpy at p, T, X"; algorithm h := cp_const*(T - T0); @@ -6414,7 +6414,7 @@ quantities are assumed to be constant. extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; - input MassFraction X[nX] "Mass fractions"; + input MassFraction X[:] "Mass fractions"; output Temperature T "Temperature"; algorithm T := h/cp_const + T0; @@ -6424,7 +6424,7 @@ quantities are assumed to be constant. extends Modelica.Icons.Function; input AbsolutePressure p "Pressure"; input SpecificEnthalpy h "Specific enthalpy"; - input MassFraction X[nX] "Mass fractions"; + input MassFraction X[:] "Mass fractions"; output Density d "Density"; algorithm d := density(setState_phX(