modelSystem4
Extends from Buildings.Examples.Tutorial.CDL.BaseClasses.PartialOpenLoop.
Information
In this step, we added the controller for the boiler on/off control.
Implementation
This model was built as follows:
-
First, we copied the controller Buildings.Examples.Tutorial.CDL.Controls.OpenLoopEquipmentOnOff to create the block Buildings.Examples.Tutorial.CDL.Controls.EquipmentOnOff.
-
In this new block, we used a hysteresis block Buildings.Controls.OBC.CDL.Reals.Hysteresis to switch the boiler, and negated its output because the boiler needs to be off if the temperature exceeds the value
uHighof this hysteresis. We also used an instance of Buildings.Controls.OBC.CDL.Logical.And to switch the boiler on only if the system control signal is on. Otherwise, the boiler would be kept warm in summer. (Note that in the simulations, the boiler has no heat loss to the ambient and, hence, if the boiler and its circulation pump are switched off, its temperature remains constant. To model heat losses to the ambient, the heat portboi.heatPortwould need to be connected to a model that simulates heat conduction to ambient conditions.) -
We also implemented the open loop validation Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff to ensure that the controller is implemented correctly.
Exercise
Create a model, such as this model. To do so,
-
Implement the controller for the equipment on/off control.
Make a small unit test to verify that the controller is implemented correctly.
-
Use this new controller instead of the open loop controller
conEquSta.
Simulate the system to verify that the valve is controlled to maintain a return water temperature of at least 60°C, and that the boiler is switched off when the temperature exceeds 90°C and switched on again if it reaches 70°C as shown below.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Controls.BoilerReturn | conBoiRet | Controller for boiler return water temperature | |
| Controls.OpenLoopSystemOnOff | conSysSta | Controller that switches the system on and off | |
| Controls.OpenLoopRadiatorSupply | conRadSup | Controller for the mixing valve for the radiator supply water | |
| Controls.EquipmentOnOff | conEquSta | Controller that switches the equipment on and off | |
| Buildings.Controls.OBC.CDL.Conversions.BooleanToReal | radPumCon | Type conversion for radiator pump signal | |
| Buildings.Controls.OBC.CDL.Conversions.BooleanToReal | boiPumCon | Type conversion for boiler pump signal | |
| Buildings.Controls.OBC.CDL.Conversions.BooleanToReal | boiSigCon | Type conversion for boiler signal |
Revisions
-
February 18, 2020, by Michael Wetter:
First implementation.