From 445281cca673e26ba9d9bafee5da44feed1cc3e2 Mon Sep 17 00:00:00 2001 From: marcusfuchs Date: Thu, 12 Jun 2014 17:05:44 +0200 Subject: [PATCH] Change energy balance in Delay example To avoid the use of default start values, the energy balance has been set to fixed initial. #31 --- Annex60/Fluid/Delays/Examples/Delay.mo | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Annex60/Fluid/Delays/Examples/Delay.mo b/Annex60/Fluid/Delays/Examples/Delay.mo index e8dce492b1..c2418518c2 100644 --- a/Annex60/Fluid/Delays/Examples/Delay.mo +++ b/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}); @@ -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}}))); @@ -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;