Buildings.Controls.OBC.OutdoorLights (original) (raw)

Package with controllers for outdoor lights

Information

This package contains outdoor lighting controllers.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

Name Description
Buildings.Controls.OBC.OutdoorLights.DaylightControlled DaylightControlled Controlling the outdoor lighting based on whether the sun is up
Buildings.Controls.OBC.OutdoorLights.Validation Validation Collection of models that validate the outdoor lighting controllers

Buildings.Controls.OBC.OutdoorLights.DaylightControlled Buildings.Controls.OBC.OutdoorLights.DaylightControlled

Controlling the outdoor lighting based on whether the sun is up

Buildings.Controls.OBC.OutdoorLights.DaylightControlled

Information

This block outputs on/off control signals for outdoor lighting devices based on daylight time. The outdoor lights will be automatically turned off during daylight hours, and turned on when there is no daylight.

Validation

A validation can be found atBuildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.

Parameters

Type Name Default Description
Real lat Latitude [rad]
Real lon Longitude [rad]
Real timZon Time zone of location [s]

Connectors

Type Name Description
output RealOutput y Output true if lights should be on [1]

Modelica definition

block DaylightControlledparameter Real lat(final quantity="Angle",final unit="rad", displayUnit="deg") ;parameter Real lon(final quantity="Angle",final unit="rad", displayUnit="deg") ;parameter Real timZon(final quantity="Time",final unit="s", displayUnit="h") ;CDL.Interfaces.RealOutput y(final min=0,final max=1, unit="1") ;protected CDL.Utilities.SunRiseSet sunRiseSet(final lat=lat,final lon=lon,final timZon=timZon) ;CDL.Logical.Not not1 ;CDL.Conversions.BooleanToReal booToRea ;equation connect(sunRiseSet.sunUp,not1.u);connect(not1.y,booToRea.u);connect(booToRea.y,y);end DaylightControlled;