Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dimension errors in functions of Modelica.Media.Interfaces.PartialSimpleMedium #4453

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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