From 0f203da79402801b4ad5e1017c6588fbbb971ba9 Mon Sep 17 00:00:00 2001 From: Michael Wetter Date: Thu, 16 Nov 2017 23:20:00 -0800 Subject: [PATCH] Connected new input --- .../DualFanDualDuct/Controls/Examples/RoomMixingBox.mo | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Buildings/Examples/DualFanDualDuct/Controls/Examples/RoomMixingBox.mo b/Buildings/Examples/DualFanDualDuct/Controls/Examples/RoomMixingBox.mo index 767ab246764..de3225102b4 100644 --- a/Buildings/Examples/DualFanDualDuct/Controls/Examples/RoomMixingBox.mo +++ b/Buildings/Examples/DualFanDualDuct/Controls/Examples/RoomMixingBox.mo @@ -1,5 +1,6 @@ within Buildings.Examples.DualFanDualDuct.Controls.Examples; model RoomMixingBox "Test model for room mixing box" + import Buildings; extends Modelica.Icons.Example; Buildings.Examples.DualFanDualDuct.Controls.RoomMixingBox conMix(m_flow_min=1) "Controller for mixing box" @@ -24,7 +25,10 @@ extends Modelica.Icons.Example; amplitude=2, offset=0, startTime=3600) "Mass flow rate" - annotation (Placement(transformation(extent={{-80,-40},{-60,-20}}))); + annotation (Placement(transformation(extent={{-80,-30},{-60,-10}}))); + Buildings.Controls.OBC.CDL.Logical.Sources.Constant yFan(k=true) + "Fan control signal" + annotation (Placement(transformation(extent={{-80,-60},{-60,-40}}))); equation connect(TH.y, conMix.TRooSetHea) annotation (Line( @@ -40,9 +44,11 @@ equation color={0,0,127}, smooth=Smooth.None)); connect(m_flow.y, conMix.mAir_flow) annotation (Line( - points={{-59,-30},{-40,-30},{-40,4},{-22,4}}, + points={{-59,-20},{-40,-20},{-40,6},{-22,6}}, color={0,0,127}, smooth=Smooth.None)); + connect(yFan.y, conMix.yFan) annotation (Line(points={{-59,-50},{-32,-50},{ + -32,2},{-22,2}}, color={255,0,255})); annotation ( __Dymola_Commands(file="modelica://Buildings/Resources/Scripts/Dymola/Examples/DualFanDualDuct/Controls/Examples/RoomMixingBox.mos" "Simulate and plot"),