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
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.ThermalZones.EnergyPlus_24_2_0.Actuator | actLig | Actuator for lights | |
| Buildings.ThermalZones.EnergyPlus_24_2_0.OutputVariable | ligPow | Block that reads the lighting power consumption from EnergyPlus | |
| Buildings.Controls.OBC.CDL.Utilities.SunRiseSet | sunRiseSet | Block that computes sunrise and sunset | |
| Buildings.Controls.OBC.CDL.Reals.Modulo | mod1 | Output time of day | |
| Buildings.Controls.OBC.CDL.Reals.Sources.Constant | day | Outputs one day | |
| Buildings.Controls.OBC.CDL.Reals.Sources.CivilTime | modTim | Model time | |
| Buildings.Controls.OBC.CDL.Reals.LessThreshold | lesEquThr | Check whether time is earlier than 22:00 | |
| Buildings.Controls.OBC.CDL.Reals.Subtract | timToSunSet | Time to next sunset | |
| Buildings.Controls.OBC.CDL.Reals.LessThreshold | lesEquThr1 | Block that outputs true if sun sets in less than 30 minutes | |
| Buildings.Controls.OBC.CDL.Logical.Or | or2 | Output true if the lights should be on based on sun position | |
| Buildings.Controls.OBC.CDL.Logical.And | and2 | Output true if the lights should be on | |
| Buildings.Controls.OBC.CDL.Conversions.BooleanToReal | PLig | Lighting power | |
| Buildings.Controls.OBC.CDL.Logical.Not | not1 | Output true if the sun is down | |
| Buildings.Controls.OBC.CDL.Reals.GreaterThreshold | greEquThr | Output true after noon | |
| Buildings.Controls.OBC.CDL.Logical.And | and1 | Output true if time of day allows lights to be on |
Revisions
-
June 25, 2020, by Michael Wetter:
First implementation.