Skip to content

Commit

Permalink
Added state.p/reference_p for #193
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Mar 21, 2015
1 parent e883804 commit 5dc383f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Annex60/Media/Air.mo
Expand Up @@ -265,7 +265,7 @@ algorithm
s := specificHeatCapacityCp(state) * Modelica.Math.log(state.T/reference_T)
- Modelica.Constants.R *
sum(state.X[i]/MMX[i]*
Modelica.Math.log(max(Y[i], Modelica.Constants.eps)) for i in 1:2);
Modelica.Math.log(max(Y[i], Modelica.Constants.eps)*state.p/reference_p) for i in 1:2);
annotation (
Inline=false,
Documentation(info="<html>
Expand Down Expand Up @@ -306,7 +306,7 @@ expansion process. Hence,
</p>
<p align=\"center\" style=\"font-style:italic;\">
s<sub>m</sub> = -R &sum;<sub>i</sub>( X<sub>i</sub> &frasl; M<sub>i</sub>
ln(Y<sub>i</sub>)),
ln(Y<sub>i</sub> p/p<sub>0</sub>)),
</p>
<p>
where <i>R</i> is the gas constant,
Expand Down Expand Up @@ -841,6 +841,12 @@ if <i>T=0</i> &deg;C and no water vapor is present.
</html>", revisions="<html>
<ul>
<li>
March 20, 2015, by Michael Wetter:<br/>
Added missing term <code>state.p/reference_p</code> in function
<code>specificEntropy</code>.
<a href=\"https://github.com/iea-annex60/modelica-annex60/issues/193\">#193</a>.
</li>
<li>
February 3, 2015, by Michael Wetter:<br/>
Removed <code>stateSelect.prefer</code> for temperature.
This is for
Expand Down

0 comments on commit 5dc383f

Please sign in to comment.