modelLightsControl

Example model with one actuator that controls the lights in EnergyPlus

Extends from Buildings.ThermalZones.EnergyPlus_24_2_0.Examples.SingleFamilyHouse.Unconditioned (Example model with one unconditoned zone simulated in Modelica, and the other two unconditioned zones simulated in EnergyPlus).

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.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.VolumeVRoo (from Unconditioned)453.1Room volume
Modelica.Units.SI.MassFlowRatem_flow_nominal (from Unconditioned)VRoo*1.2*0.3/3600Nominal mass flow rate

Components

TypeNameDefaultDescription
Buildings.ThermalZones.EnergyPlus_24_2_0.Buildingbuilding (from Unconditioned)Building model
Buildings.ThermalZones.EnergyPlus_24_2_0.ThermalZonezon (from Unconditioned)Thermal zone
Buildings.Fluid.FixedResistances.PressureDropduc (from Unconditioned)Duct resistance (to decouple room and outside pressure)
Buildings.Fluid.Sources.MassFlowSource_WeatherDatabou (from Unconditioned)Boundary condition
Buildings.Fluid.Sources.Boundary_pTfreshAir (from Unconditioned)Boundary condition
Modelica.Blocks.Sources.Constant[3]qIntGai (from Unconditioned)Internal heat gains, set to zero because these are modeled in EnergyPlus
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.