Buildings.Examples.Tutorial.CDL.Controls
Package with the controllers used in the tutorial
Information
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Package Content
Name | Description |
---|---|
BoilerReturn | Control for boiler return |
EquipmentOnOff | Controller for equipment on/off control |
OpenLoopBoilerReturn | Open loop controller for boiler return |
OpenLoopEquipmentOnOff | Open loop controller for equipment on/off control |
OpenLoopRadiatorSupply | Open loop controller for mixing valve in radiator loop |
OpenLoopSystemOnOff | Open loop controller for system on/off |
RadiatorSupply | Controller for mixing valve in radiator loop |
SystemOnOff | Controller for system on/off |
Validation |
Buildings.Examples.Tutorial.CDL.Controls.BoilerReturn
Control for boiler return
Information
Controller that takes as an input the boiler return water temperature TRet
and outputs the valve control signal yVal
.
The valve control signal is computed using a PI-controller that tracks a constant
set point of TSet
.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | TSet | 333.15 | Set point for boiler temperature [K] |
Real | k | 0.1 | Gain of controller |
Time | Ti | 120 | Time constant of integrator block [s] |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TRet | Return water temperature to boiler [K] |
output RealOutput | yVal | Valve control signal [1] |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.EquipmentOnOff
Controller for equipment on/off control
Information
Controller that takes as an input the boiler water temperature TBoi
and the system on command onSys
, and outputs
the on command for the pumps onPum
and the boiler onBoi
.
The pump on command is the same as the system on command.
The boiler is switched on if the boiler temperature TBoi
falls below
70°C and if onSys=true
, and it switches off
if either TBoi
exceeds 90°C or if onSys=false
.
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TBoi | Boiler temperature [K] |
input BooleanInput | onSys | System on command |
output BooleanOutput | onPum | Pump on command |
output BooleanOutput | onBoi | Boiler on command |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.OpenLoopBoilerReturn
Open loop controller for boiler return
Information
Open loop controller that outputs a constant control signal for the valve of the boiler return.
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TRet | Return water temperature to boiler [K] |
output RealOutput | yVal | Valve control signal [1] |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.OpenLoopEquipmentOnOff
Open loop controller for equipment on/off control
Information
Open loop controller that outputs a constant control signal for the system on command.
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TBoi | Boiler temperature [K] |
input BooleanInput | onSys | System on command |
output BooleanOutput | onPum | Pump on command |
output BooleanOutput | onBoi | Boiler on command |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.OpenLoopRadiatorSupply
Open loop controller for mixing valve in radiator loop
Information
Open loop controller that outputs a constant control signal for the mixing valve of the radiator loop.
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TRoo | Room air temperature [K] |
input RealInput | TSup | Measured supply water temperature [K] |
output RealOutput | yVal | Valve control signal [1] |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.OpenLoopSystemOnOff
Open loop controller for system on/off
Information
Open loop controller that outputs a constant control signal for the system on command.
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TOut | Outdoor air temperature [K] |
input RealInput | TRoo | Room air temperature [K] |
output BooleanOutput | onSys | System on command |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.RadiatorSupply
Controller for mixing valve in radiator loop
Information
Controller that takes as an input the room air temperature TRoo
and
the supply water temperature TSup
,
and outputs the commanded mixing valve position yVal
.
Based on the room air temperature TRoo
, and the user adjustable parameters
for the minimum supply water temperature TSupMin
,
the maximum supply water temperature TSupMax
and the room air temperature TRooMin
at which the supply water temperature is at TSupMax
,
the controller computes a set point for the supply water temperature.
This set point is then used with the measured supply water temperature TSup
as an input to a PI-controller that computes the commanded valve position yVal
.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | TSupMin | 294.15 | Minimum supply water temperature [K] |
Real | TSupMax | 323.15 | Maximum supply water temperature [K] |
Real | TRooMin | 292.15 | Room air temperature at which supply water temperature is at TSupMax [K] |
Real | k | 0.1 | Gain of controller |
Time | Ti | 120 | Time constant of integrator block [s] |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TRoo | Room air temperature [K] |
input RealInput | TSup | Measured supply water temperature [K] |
output RealOutput | yVal | Valve control signal [1] |
Modelica definition
Buildings.Examples.Tutorial.CDL.Controls.SystemOnOff
Controller for system on/off
Information
Controller that takes as an input the outside air temperature TOut
and
the room air temperature TRoo
,
and outputs the system on command onSys
.
The system on command is true
if both conditions are satisfied:
The outside air temperature is below a limit of TOutLow
(=16°C, adjustable)
and the room air temperature is below TRooSet-dTRoo/2
,
where TRooSet
is the room air temperature setpoint (=20.5°C, adjustable)
and dTRoo
is the deadband (=1 Kelvin, adjustable).
Otherwise, the system on command is false
.
Parameters
Type | Name | Default | Description |
---|---|---|---|
Real | TRooSet | 293.65 | Room air temperature set point [K] |
Real | dTRoo | 1 | Room air temperature dead band [K] |
Real | TOutLow | 289.15 | Outdoor temperature below which system is allowed to switch on [K] |
Connectors
Type | Name | Description |
---|---|---|
input RealInput | TOut | Outdoor air temperature [K] |
input RealInput | TRoo | Room air temperature [K] |
output BooleanOutput | onSys | System on command |