Skip to content

Commit

Permalink
setState_dTX from PartialSimpleMedium will result in an assert return…
Browse files Browse the repository at this point in the history
…ing false always (i.e. Medium is incompressible )

git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@385 7ce873d0-865f-4ce7-a662-4bb36ea78beb
  • Loading branch information
Hubertus authored and Hubertus committed Mar 24, 2006
1 parent 52ac2de commit 6bda2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Media/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5284,7 +5284,7 @@ quantities are assumed to be constant.
input MassFraction X[:] = fill(0,0) "Mass fractions";
output ThermodynamicState state;
algorithm
state := ThermodynamicState(p=d*R_gas*T,T=T);
assert(false,"pressure can not be computed from temperature and density for an incompressible fluid!");
end setState_dTX;

redeclare function extends dynamicViscosity "Return dynamic viscosity"
Expand Down

0 comments on commit 6bda2ee

Please sign in to comment.