blockDayHour
Conversion of fractional days to hours
Extends from Modelica.Blocks.Interfaces.SISO (Single Input Single Output continuous control block).
Information
This auxiliary block converts fractional days to hours of the day.The input variable is the simulation clock (in hours) divided by 24. This is the day of the year, whereby the fraction indirectly contains the information about the hour of the day. The fraction is extracted and converted back to hours.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u (from SISO) | Connector of Real input signal | |
| RealOutput | y (from SISO) | Connector of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | day | day of the year | |
| Real | hour | hour of the day |