blockEquationOfTime

Equation of time

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

Information

This component computes the difference between solar noon and noon of local civil time.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.TimeweaDatStaTim (from PartialConvertTime)0Start time of weather data
Modelica.Units.SI.TimeweaDatEndTim (from PartialConvertTime)31536000End time of weather data

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputnDayZero-based day number in seconds (January 1=0, January 2=86400)
Modelica.Blocks.Interfaces.RealOutputeqnTimEquation of time

Components

TypeNameDefaultDescription
Modelica.Units.SI.TimemodTimAux (from PartialConvertTime)Model time
Modelica.Units.SI.TimecalTimAux (from PartialConvertTime)Calendar time

Revisions

  • March 27, 2023, by Ettore Zanetti:
    Updated to use partial class for conversion from simulation time to calendar time.
    This is for IBPSA #1716.
  • May 13, 2010, by Wangda Zuo:
    First implementation.