Buildings.Examples.Tutorial.CDL.Controls.Validation

Information

This package contains models that validate the controls models. The examples plot various outputs, which have been verified against analytical solutions or by inspecting their change due to parametric changes. These model outputs are stored as reference data to allow continuous validation whenever models in the library change.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn BoilerReturn Validation model for the return temperature controller of the boiler
Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff EquipmentOnOff Validation model for the equipment on/off controller
Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply RadiatorSupply Validation model for the valve of the radiator supply
Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff SystemOnOff Validation model for the system on/off controller

Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn

Validation model for the return temperature controller of the boiler

Buildings.Examples.Tutorial.CDL.Controls.Validation.BoilerReturn

Information

Validation model for the boiler return water temperature controller. The input to the controller is a ramp signal of increasing measured return water temperature. The validation shows that as the temperature crosses the set point, the valve opens.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model BoilerReturn "Validation model for the return temperature controller of the boiler" extends Modelica.Icons.Example; Buildings.Examples.Tutorial.CDL.Controls.BoilerReturn conBoiRet "Controller for boiler return water temperature"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp TRet( height=50, duration=3600, offset=293.15) "Return water temperature"; equation connect(TRet.y, conBoiRet.TRet); end BoilerReturn;

Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff

Validation model for the equipment on/off controller

Buildings.Examples.Tutorial.CDL.Controls.Validation.EquipmentOnOff

Information

Validation model for the equipment on/off controller. The input to the controller is a ramp signal of increasing measured boiler water temperature, and a on/off signal for the overall system. The validation shows that the pumps are on/off based on the overall system, and the boiler is also on/off based on this system unless the return water temperature exceeds 90°C.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model EquipmentOnOff "Validation model for the equipment on/off controller" extends Modelica.Icons.Example; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp TBoi( height=40, duration=3600, offset=333.15) "Boiler temperature"; Buildings.Examples.Tutorial.CDL.Controls.EquipmentOnOff conEquSta "Controller for equipment on/off"; Buildings.Controls.OBC.CDL.Logical.Sources.Pulse onSys( period=600) "System on signal"; equation connect(TBoi.y, conEquSta.TBoi); connect(onSys.y, conEquSta.onSys); end EquipmentOnOff;

Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply

Validation model for the valve of the radiator supply

Buildings.Examples.Tutorial.CDL.Controls.Validation.RadiatorSupply

Information

Validation model for the boiler return water temperature controller. The input to the controller is a ramp signal of increasing measured return water temperature. The validation shows that as the temperature crosses the set point, the valve opens.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model RadiatorSupply "Validation model for the valve of the radiator supply" extends Modelica.Icons.Example; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp TRoo( height=-4, duration=3600, offset=297.15) "Room air temperature"; Buildings.Examples.Tutorial.CDL.Controls.RadiatorSupply conRadSup "Controller for radiator supply water temperature"; Buildings.Controls.OBC.CDL.Continuous.Sources.Sine TSup( amplitude=20, freqHz=1/720, offset=303.15) "Measured supply water temperature"; equation connect(TRoo.y, conRadSup.TRoo); connect(conRadSup.TSup, TSup.y); end RadiatorSupply;

Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff

Validation model for the system on/off controller

Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff

Information

Validation model for the system on/off controller. The input to the controller are time varying signals for the outdoor air temperature and the room air temperature. The validation shows that the system is commanded on (onSys=true) if the outdoor air temperature and the room air temperature are both low.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model SystemOnOff "Validation model for the system on/off controller" extends Modelica.Icons.Example; Buildings.Examples.Tutorial.CDL.Controls.SystemOnOff conSysSta "Controller for system on/off"; Buildings.Controls.OBC.CDL.Continuous.Sources.Sine TOut( amplitude=5, freqHz=1/720, offset=290.15) "Outside air temperature"; Buildings.Controls.OBC.CDL.Continuous.Sources.Sine TRoo( amplitude=4, freqHz=1/720, phase=1.5707963267949, offset=293.15) "Room air temperature"; equation connect(TOut.y, conSysSta.TOut); connect(TRoo.y, conSysSta.TRoo); end SystemOnOff;