Skip to content

Commit

Permalink
Fixes #1530 in trunk
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@8035 7ce873d0-865f-4ce7-a662-4bb36ea78beb
  • Loading branch information
hubertus committed Jan 6, 2015
1 parent b51ab53 commit cc794ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Modelica/Media/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6687,7 +6687,7 @@ quantities are assumed to be constant.
"Return specific internal energy"
extends Modelica.Icons.Function;
algorithm
u := (cp_const - R_gas)*(state.T - T0);
u := cp_const*(T - T0) - R*T;
end specificInternalEnergy;

redeclare function extends specificEntropy "Return specific entropy"
Expand All @@ -6708,7 +6708,7 @@ quantities are assumed to be constant.
"Return specific Helmholtz energy"
extends Modelica.Icons.Function;
algorithm
f := (cp_const - R_gas)*(state.T - T0) - state.T*specificEntropy(state);
f := specificInternalEnergy(state) - state.T*specificEntropy(state);
end specificHelmholtzEnergy;

redeclare function extends dynamicViscosity "Return dynamic viscosity"
Expand Down Expand Up @@ -8063,7 +8063,8 @@ public

record IF97BaseTwoPhase "Intermediate property data record for IF 97"
extends Modelica.Icons.Record;
Integer phase(start=0) "Phase: 2 for two-phase, 1 for one phase, 0 if unknown";
Integer phase(start=0)
"Phase: 2 for two-phase, 1 for one phase, 0 if unknown";
Integer region(min=1, max=5) "IF 97 region";
SI.Pressure p "Pressure";
SI.Temperature T "Temperature";
Expand Down

0 comments on commit cc794ba

Please sign in to comment.