From 6d285acf53adaf29ad62ac3d3d78865d79610c39 Mon Sep 17 00:00:00 2001 From: marcusfuchs Date: Thu, 12 Jun 2014 17:01:53 +0200 Subject: [PATCH] Change energy balances in ReverseFlowHumidifier To avoid the use of default start values, the energy balances in this example have been set to fixed initial. #31 --- .../Interfaces/Examples/ReverseFlowHumidifier.mo | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Annex60/Fluid/Interfaces/Examples/ReverseFlowHumidifier.mo b/Annex60/Fluid/Interfaces/Examples/ReverseFlowHumidifier.mo index 19211957e2..669a68af2b 100644 --- a/Annex60/Fluid/Interfaces/Examples/ReverseFlowHumidifier.mo +++ b/Annex60/Fluid/Interfaces/Examples/ReverseFlowHumidifier.mo @@ -17,16 +17,18 @@ package Medium = Annex60.Media.Air; dp_nominal=0, m_flow(start=1), m_flow_nominal=1, - T=283.15, - mWat_flow_nominal=0.1) "Humidifier with backward flow" + mWat_flow_nominal=0.1, + energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, + T=283.15) "Humidifier with backward flow" annotation (Placement(transformation(extent={{-32,-16},{-52,4}}))); Annex60.Fluid.MassExchangers.HumidifierPrescribed humFor( redeclare package Medium = Medium, dp_nominal=0, m_flow(start=1), m_flow_nominal=1, - T=283.15, - mWat_flow_nominal=0.1) "Humidifier with forward flow" + mWat_flow_nominal=0.1, + energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, + T=283.15) "Humidifier with forward flow" annotation (Placement(transformation(extent={{-50,20},{-30,40}}))); Modelica.Blocks.Sources.Constant u2(k=0.01) "Control input" annotation (Placement(transformation(extent={{-92,54},{-80,66}}))); @@ -140,7 +142,7 @@ equation color={0,127,255}, smooth=Smooth.None)); connect(humBac.port_a, res2.port_a) annotation (Line( - points={{-32,-6},{-26.5,-6},{-26.5,-6},{-21,-6},{-21,-6},{-10,-6}}, + points={{-32,-6},{-10,-6}}, color={0,127,255}, smooth=Smooth.None)); connect(res2.port_b, sink1.ports[2]) annotation (Line(