modelShadeControl

Example model with one actuator that controls a shade in EnergyPlus

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

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

TypeNameDefaultDescription
Modelica.Units.SI.MassFlowRate[:]m_flow_nominal0.3*1.2/3600*{113.3, 113.3, 169.9}Design mass flow rate

Connectors

TypeNameDefaultDescription
Buildings.BoundaryConditions.WeatherData.BusweaBusWeather data bus

Components

TypeNameDefaultDescription
BuildingbuildingBuilding model
Modelica.Blocks.Sources.Constant[3]qIntGaiInternal heat gains
Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZonezonWesWest zone
Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZonezonEasEast zone
Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZonezonNorNorth zone
Buildings.ThermalZones.EnergyPlus_24_2_0.ActuatoractShaActuator for window shade
Buildings.ThermalZones.EnergyPlus_24_2_0.OutputVariableincBeaSouBlock that reads incident beam solar radiation on south window from EnergyPlus
Buildings.Controls.OBC.Shade.Shade_TshaTShade control signal based on room air temperature
Buildings.Controls.OBC.Shade.Shade_HshaHShade control decision based on direct solar irradiation
Buildings.Controls.OBC.CDL.Logical.Andand2
Buildings.Controls.OBC.CDL.Reals.GreaterThresholdgreEquTOutput conversion
Buildings.Controls.OBC.CDL.Reals.GreaterThresholdgreEquHOutput conversion
Buildings.Controls.OBC.CDL.Conversions.BooleanToRealbooToReaType conversion (6 meaning shade is deployed)
Buildings.Fluid.Sources.MassFlowSource_WeatherData[3]bouInfiltration, used to avoid that the absolute humidity is continuously increasing
Buildings.Fluid.Sources.OutsideoutOutside condition
Buildings.Fluid.FixedResistances.PressureDropres
Buildings.Fluid.FixedResistances.PressureDrop[3]res1Small flow resistance for inlet
CoolingcooNorIdealized cooling system
CoolingcooWesIdealized cooling system
CoolingcooEasIdealized cooling system

Contents

NameDescription
MediumMedium model
Coolingprotected

Revisions

  • June 11, 2020, by Michael Wetter:
    First implementation.