modelShadeControl
Extends from Modelica.Icons.Example.
Information
Example of a building that uses an EMS actuator.
The building has three thermal zones that are simulated in EnergyPlus.
In the EnergyPlus model, the west-facing thermal zone has
a window blind that is open if its control signal is 0 or closed if it is 6.
The control sequence obtains
the room air temperature of the west-facing zone
from the Modelica instance zonWes,
and connects it to a hysteresis block that switches its output to
true if the zone temperature is above 24°C,
and to false if it drops below 23°C.
The instance incBeaSou obtains from EnergyPlus the
incident solar beam radiation on the outside of the window, and feeds it
into a hysteresis block that outputs true if its input exceeds
200 W/m2, and switches to false if it drops
below 10 W/m2.
The instance actSha connects to the EMS actuator in EnergyPlus
that activates this shade.
If both outputs of the hysteresis blocks
are true, then the EnergyPlus shade actuator is deployed by
setting the input of actSha to 6.
Otherwise, the input is set to 0.
To the right of the model, there are three idealized cooling systems that keep the room air temperature below 25°C in each of the three zones. Also, each zone is connected to a constant, unconditioned outside air supply.
The internal heat gains are set to zero in Modelica because these are specified in the EnergyPlus model.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFlowRate[:] | m_flow_nominal | 0.3*1.2/3600*{113.3, 113.3, 169.9} | Design mass flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Building | building | Building model | |
| Modelica.Blocks.Sources.Constant[3] | qIntGai | Internal heat gains | |
| Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZone | zonWes | West zone | |
| Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZone | zonEas | East zone | |
| Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZone | zonNor | North zone | |
| Buildings.ThermalZones.EnergyPlus_24_2_0.Actuator | actSha | Actuator for window shade | |
| Buildings.ThermalZones.EnergyPlus_24_2_0.OutputVariable | incBeaSou | Block that reads incident beam solar radiation on south window from EnergyPlus | |
| Buildings.Controls.OBC.Shade.Shade_T | shaT | Shade control signal based on room air temperature | |
| Buildings.Controls.OBC.Shade.Shade_H | shaH | Shade control decision based on direct solar irradiation | |
| Buildings.Controls.OBC.CDL.Logical.And | and2 | ||
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold | greEquT | Output conversion | |
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold | greEquH | Output conversion | |
| Buildings.Controls.OBC.CDL.Conversions.BooleanToReal | booToRea | Type conversion (6 meaning shade is deployed) | |
| Buildings.Fluid.Sources.MassFlowSource_WeatherData[3] | bou | Infiltration, used to avoid that the absolute humidity is continuously increasing | |
| Buildings.Fluid.Sources.Outside | out | Outside condition | |
| Buildings.Fluid.FixedResistances.PressureDrop | res | ||
| Buildings.Fluid.FixedResistances.PressureDrop[3] | res1 | Small flow resistance for inlet | |
| Buildings.BoundaryConditions.WeatherData.Bus | weaBus | Weather data bus | |
| Cooling | cooNor | Idealized cooling system | |
| Cooling | cooWes | Idealized cooling system | |
| Cooling | cooEas | Idealized cooling system |
Contents
| Name | Description |
|---|---|
| Medium | Medium model |
| Coolingprotected |
Revisions
-
June 11, 2020, by Michael Wetter:
First implementation.