Buildings.Examples.DualFanDualDuct.Controls.Examples
Example models to test the components
Information
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name | Description |
---|---|
PreHeatCoil | Test model for preheat coil controller |
RoomMixingBox | Test model for room mixing box |
Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil
Test model for preheat coil controller
Information
Test model for the preheat coil controller.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model PreHeatCoil "Test model for preheat coil controller"
extends Modelica.Icons.Example;
Modelica.Blocks.Sources.Constant TSupSet(k=273.15 + 16)
"Set point for supply air temperature";
Modelica.Blocks.Sources.Constant TAirSup(k=273.15 + 15)
"Supply air temperature";
Modelica.Blocks.Sources.Trapezoid TMix(
amplitude=15,
rising=900,
width=900,
falling=900,
period=3600,
offset=273.15 + 5) "Mixed air temperature";
Buildings.Examples.DualFanDualDuct.Controls.PreHeatCoil preHeatCoil;
equation
connect(TMix.y, preHeatCoil.TMix);
connect(preHeatCoil.TSupSetHea, TSupSet.y);
connect(preHeatCoil.TAirSup, TAirSup.y);
end PreHeatCoil;
Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox
Test model for room mixing box
Information
Extends from Modelica.Icons.Example (Icon for runnable examples).
Modelica definition
model RoomMixingBox "Test model for room mixing box"
extends Modelica.Icons.Example;
Buildings.Examples.DualFanDualDuct.Controls.RoomMixingBox conMix(m_flow_min=1)
"Controller for mixing box";
Modelica.Blocks.Sources.Constant TH(k=273.15 + 20);
Modelica.Blocks.Sources.Constant TC(k=273.15 + 26);
Modelica.Blocks.Sources.Trapezoid TRoo(
amplitude=15,
rising=900,
width=900,
falling=900,
period=3600,
offset=273.15 + 15) "Room temperature";
Modelica.Blocks.Sources.Trapezoid m_flow(
rising=900,
width=900,
falling=900,
period=3600,
amplitude=2,
offset=0,
startTime=3600) "Mass flow rate";
Buildings.Controls.OBC.CDL.Logical.Sources.Constant yFan(k=true)
"Fan control signal";
equation
connect(TH.y, conMix.TRooSetHea);
connect(TC.y, conMix.TRooSetCoo);
connect(TRoo.y, conMix.TRoo);
connect(m_flow.y, conMix.mAir_flow);
connect(yFan.y, conMix.yFan);
end RoomMixingBox;