Skip to content

Commit

Permalink
Change energy balance in MassFraction example
Browse files Browse the repository at this point in the history
To avoid the use of default start values, the energy balance has been set
to fixed initial. #31
  • Loading branch information
marcusfuchs committed Jun 12, 2014
1 parent 3fa3b5a commit 597fb50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Annex60/Fluid/Sensors/Examples/MassFraction.mo
Expand Up @@ -2,8 +2,7 @@ within Annex60.Fluid.Sensors.Examples;
model MassFraction "Test model for the mass fraction sensor"
extends Modelica.Icons.Example;

package Medium = Annex60.Media.Air
"Medium model";
package Medium = Annex60.Media.Air "Medium model";

Annex60.Fluid.Sources.Boundary_pT sin(
redeclare package Medium = Medium,
Expand All @@ -27,7 +26,8 @@ model MassFraction "Test model for the mass fraction sensor"
redeclare package Medium = Medium,
V=1,
nPorts=3,
m_flow_nominal=10) "Volume"
m_flow_nominal=10,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial) "Volume"
annotation (Placement(transformation(extent={{0,10},{20,30}})));
Annex60.Fluid.FixedResistances.FixedResistanceDpM dp(
redeclare package Medium = Medium,
Expand Down

0 comments on commit 597fb50

Please sign in to comment.