Skip to content

Commit

Permalink
Merge pull request #4390 from casella/fix-partial-medium
Browse files Browse the repository at this point in the history
Fix dimension errors in functions of Modelica.Media.Interfaces.PartialSimpleMedium
  • Loading branch information
hubertus65 authored May 22, 2024
2 parents 777973c + 9e9cd91 commit f5f4008
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Modelica/Media/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand All @@ -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(
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand All @@ -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(
Expand Down

0 comments on commit f5f4008

Please sign in to comment.