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

TypeNameDefaultDescription
RealstartTime0The start time of the simulation in reference to 1st of Jan. 0:00 o'clock

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputSOYsecond of the year
Modelica.Blocks.Interfaces.RealOutputHpassed hours
Modelica.Blocks.Interfaces.RealOutputDpassed days
Modelica.Blocks.Interfaces.RealOutputSODsecond of the day
Modelica.Blocks.Interfaces.RealOutputHODhour of the day

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.ContinuousClockclock