Skip to content

Commit

Permalink
Change energy balance in Delay 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 6d285ac commit 445281c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Annex60/Fluid/Delays/Examples/Delay.mo
@@ -1,6 +1,6 @@
within Annex60.Fluid.Delays.Examples;
model Delay
extends Modelica.Icons.Example;
extends Modelica.Icons.Example;
// We set X_default to a small enough value to avoid saturation at the medium temperature
// that is used in this model.
package Medium = Annex60.Media.Air(X_default={0.001, 0.999});
Expand Down Expand Up @@ -39,8 +39,9 @@ model Delay
rotation=0)));
Annex60.Fluid.Delays.DelayFirstOrder del( m_flow_nominal=5, redeclare
package Medium = Medium,
T_start=283.15,
nPorts=2)
nPorts=2,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
T_start=283.15)
annotation (Placement(transformation(extent={{-2,6},{18,26}}, rotation=0)));
inner Modelica.Fluid.System system
annotation (Placement(transformation(extent={{-100,-100},{-80,-80}})));
Expand Down Expand Up @@ -69,5 +70,6 @@ equation
-100},{100,100}}),
graphics),
experiment(StopTime=300),
__Dymola_Commands(file="modelica://Annex60/Resources/Scripts/Dymola/Fluid/Delays/Examples/Delay.mos" "Simulate and plot"));
__Dymola_Commands(file="modelica://Annex60/Resources/Scripts/Dymola/Fluid/Delays/Examples/Delay.mos"
"Simulate and plot"));
end Delay;

0 comments on commit 445281c

Please sign in to comment.