modelHourOfDay
Computes the hour of day taking the second of year as input
Information
Overview
Additional to passed simulation seconds (SOY), hours (HOY) and days (DOY) this model provides the passed seconds of a day and the passed hours of a day. That can be used for a controller that will act depending on the time of the day for example.
Example Results
AixLib.Utilities.Examples.TimeUtilities_test
-
April 11, 2013 by Ole Odendahl:
Formatted documentation appropriately - by Peter Matthes:
Implemented.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | startTime | 0 | The start time of the simulation in reference to 1st of Jan. 0:00 o'clock |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | SOY | second of the year | |
| Modelica.Blocks.Interfaces.RealOutput | H | passed hours | |
| Modelica.Blocks.Interfaces.RealOutput | D | passed days | |
| Modelica.Blocks.Interfaces.RealOutput | SOD | second of the day | |
| Modelica.Blocks.Interfaces.RealOutput | HOD | hour of the day |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.ContinuousClock | clock |