Buildings.Controls.OBC.Shade
Shading control sequences
Information
This package contains shade control sequences.
Package Content
| Name | Description |
|---|---|
| Shade controller with solar irradiation as input | |
| Shade controller with temperature as input | |
| Collection of validation models |
Buildings.Controls.OBC.Shade.Shade_H
Shade controller with solar irradiation as input
Information
Block that outputs a shade control signal y ∈ {0, 1} as follows:
- When
y=0and the inputHbecomes greater than the parameterHHigh, the output switches toy=1. - When
y=1and the inputHbecomes less than the parameterHLow, the output switches toy=0.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Irradiance | HHigh | if y=0 and H>=HHigh, switch to y=1 [W/m2] | |
| Irradiance | HLow | if y=1 and H<=HLow, switch to y=0 [W/m2] |
Connectors
| Type | Name | Description |
|---|---|---|
| input RealInput | H | Measured irradiation [W/m2] |
| output RealOutput | y | Control signal [1] |
Modelica definition
block Shade_H "Shade controller with solar irradiation as input"
parameter Modelica.SIunits.Irradiance HHigh
"if y=0 and H>=HHigh, switch to y=1";
parameter Modelica.SIunits.Irradiance HLow
"if y=1 and H<=HLow, switch to y=0";
CDL.Interfaces.RealInput H(final unit = "W/m2")
"Measured irradiation";
CDL.Interfaces.RealOutput y(
final min = 0,
final max = 1,
unit="1")
"Control signal";
protected
CDL.Continuous.Hysteresis hys(
final uLow=HLow,
final uHigh=HHigh)
"Hysteresis block";
CDL.Conversions.BooleanToReal booToRea "Boolean to real converter";
equation
connect(H, hys.u);
connect(hys.y, booToRea.u);
connect(booToRea.y, y);
end Shade_H;
Buildings.Controls.OBC.Shade.Shade_T
Shade controller with temperature as input
Information
Block that outputs a shade control signal y ∈ {0, 1} as follows:
- When
y=0and the inputTbecomes greater than the parameterTHigh, the output switches toy=1. - When
y=1and the inputTbecomes less than the parameterTLow, the output switches toy=0.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Temperature | THigh | if y=0 and T>=THigh, switch to y=1 [K] | |
| Temperature | TLow | if y=1 and T<=TLow, switch to y=0 [K] |
Connectors
| Type | Name | Description |
|---|---|---|
| input RealInput | T | Measured temperature [K] |
| output RealOutput | y | Control signal [1] |
Modelica definition
block Shade_T "Shade controller with temperature as input"
parameter Modelica.SIunits.Temperature THigh
"if y=0 and T>=THigh, switch to y=1";
parameter Modelica.SIunits.Temperature TLow
"if y=1 and T<=TLow, switch to y=0";
CDL.Interfaces.RealInput T(final unit = "K")
"Measured temperature";
CDL.Interfaces.RealOutput y(
final min = 0,
final max = 1,
unit="1")
"Control signal";
protected
CDL.Continuous.Hysteresis hys(
final uLow=TLow,
final uHigh=THigh)
"Temperature hysteresis";
CDL.Conversions.BooleanToReal booToRea "Boolean to real converter";
equation
connect(T, hys.u);
connect(hys.y, booToRea.u);
connect(booToRea.y, y);
end Shade_T;