Skip to content

Commit

Permalink
Merge pull request #2378 from HansOlsson/MolarMass
Browse files Browse the repository at this point in the history
InvertMolar
  • Loading branch information
hubertus65 committed Jan 21, 2018
2 parents 0295d32 + 51d5b72 commit d7a158f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modelica/Media/Air/MoistAir.mo
Expand Up @@ -1276,7 +1276,7 @@ end thermalConductivity;

redeclare function extends molarMass
algorithm
MM := Modelica.Media.Air.MoistAir.gasConstant(state)/Modelica.Constants.R;
MM := Modelica.Constants.R/Modelica.Media.Air.MoistAir.gasConstant(state);
annotation (Documentation(revisions="<html>
<p>2012-01-12 Stefan Wischhusen: Initial Release.</p>
</html>"));
Expand Down
2 changes: 1 addition & 1 deletion Modelica/Media/Air/ReferenceMoistAir.mo
Expand Up @@ -620,7 +620,7 @@ package ReferenceMoistAir

redeclare function extends molarMass "Return the molar mass of the medium"
algorithm
MM := 1/(state.X[1]*steam.MM + state.X[2]*dryair.MM);
MM := 1/(state.X[1]/steam.MM + state.X[2]/dryair.MM);
end molarMass;

redeclare function extends dynamicViscosity
Expand Down

0 comments on commit d7a158f

Please sign in to comment.