blockPartialConvertTime

Converts the simulation time to calendar time in scale of 1 year (365 days), or a multiple of a year

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

This component converts the simulation time to calendar time in a scale of 1 year (365 days), or a multiple of it, if this is the length of the weather file.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimeweaDatStaTim0Start time of weather data
Modelica.Units.SI.TimeweaDatEndTim31536000End time of weather data

Components

TypeNameDefaultDescription
Modelica.Units.SI.TimemodTimAuxModel time
Modelica.Units.SI.TimecalTimAuxCalendar time

Revisions

  • February 18, 2026, by Jianjun Hu:
    Improved ill-posed integer rounding.
    This is for Buildings #4480 and IBPSA #2088.
  • March 27, 2023, by Ettore Zanetti:
    Added partial class for conversion from simulation time to calendar time, to be used by solar models that require calendar time for calculations.
    This is for IBPSA #1716.