modelLightsControl

Example model with one actuator that controls the lights in EnergyPlus

Extends from Buildings.ThermalZones.EnergyPlus_24_2_0.Examples.SingleFamilyHouse.Unconditioned.

Information

Example of a building that uses an EMS actuator to assign the lighting power in EnergyPlus. The lights are on 30 minutes before sunset, and remain on until 22:00.

Components

TypeNameDefaultDescription
Buildings.ThermalZones.EnergyPlus_24_2_0.ActuatoractLigActuator for lights
Buildings.ThermalZones.EnergyPlus_24_2_0.OutputVariableligPowBlock that reads the lighting power consumption from EnergyPlus
Buildings.Controls.OBC.CDL.Utilities.SunRiseSetsunRiseSetBlock that computes sunrise and sunset
Buildings.Controls.OBC.CDL.Reals.Modulomod1Output time of day
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantdayOutputs one day
Buildings.Controls.OBC.CDL.Reals.Sources.CivilTimemodTimModel time
Buildings.Controls.OBC.CDL.Reals.LessThresholdlesEquThrCheck whether time is earlier than 22:00
Buildings.Controls.OBC.CDL.Reals.SubtracttimToSunSetTime to next sunset
Buildings.Controls.OBC.CDL.Reals.LessThresholdlesEquThr1Block that outputs true if sun sets in less than 30 minutes
Buildings.Controls.OBC.CDL.Logical.Oror2Output true if the lights should be on based on sun position
Buildings.Controls.OBC.CDL.Logical.Andand2Output true if the lights should be on
Buildings.Controls.OBC.CDL.Conversions.BooleanToRealPLigLighting power
Buildings.Controls.OBC.CDL.Logical.Notnot1Output true if the sun is down
Buildings.Controls.OBC.CDL.Reals.GreaterThresholdgreEquThrOutput true after noon
Buildings.Controls.OBC.CDL.Logical.Andand1Output true if time of day allows lights to be on

Revisions

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