Skip to content

Commit

Permalink
Set nominal and start values in media.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Oct 3, 2014
1 parent cd57491 commit 206d9b9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions Buildings/Media/IdealGases/SimpleAir.mo
@@ -1,14 +1,26 @@
within Buildings.Media.IdealGases;
package SimpleAir "Air: Simple dry air model (-50..100 degC)"
extends Modelica.Media.Air.SimpleAir(
T_min=Modelica.SIunits.Conversions.from_degC(-50));
T_min=Modelica.SIunits.Conversions.from_degC(-50),
BaseProperties(
T(start=T_default),
p(nominal=p_default,
start=p_default),
state(T(start=T_default),
p(start=p_default,
nominal=p_default))));

replaceable function enthalpyOfCondensingGas
redeclare record extends ThermodynamicState(
p(start=p_default, nominal=p_default),
T(start=T_default))
end ThermodynamicState;

replaceable function enthalpyOfCondensingGas
"Enthalpy of steam per unit mass of steam"
extends Modelica.Icons.Function;
input Temperature T "temperature";
output SpecificEnthalpy h "steam enthalpy";
algorithm
algorithm
h := 0;
annotation (Documentation(info="<html>
<p>
Expand All @@ -22,7 +34,7 @@ First implementation to allow using the room model with a medium that does not c
</li>
</ul>
</html>"));
end enthalpyOfCondensingGas;
end enthalpyOfCondensingGas;

replaceable function saturationPressure
"Return saturation pressure of condensing fluid"
Expand Down

0 comments on commit 206d9b9

Please sign in to comment.