modelSolarTime
Extends from TransiEnt.Basics.Icons.Model (Icon for models).
Information
1. Purpose of model
Calculates the solar time at a given longitude in respect of time zone, difference to UTC and an optional offset.
2. Level of detail, physical effects considered, and physical insight
(Purely technical component without physical modeling.)
3. Limits of validity
(Purely technical component without physical modeling.)
4. Interfaces
(no remarks)
5. Nomenclature
Parameters:
offset: Sets the offset of simulation time [0, ...] to time to simulate. Type ist Real[4]: seconds, minutes, hours, day. {10,5,1,0} starts at 3910s
longitude_local: longitude of position, west positive in rad
longitude_standard: standard longitude of time zone, e.g. 15° for UTC+1 regular time (in rad)
utc: difference to utc in hours, e.g. +1 for Amsterdam/Berlin/Bern/Rome - will be calculated from longitude_standard as default
public variables:
solarTime: gives calculated solar time in seconds
dayoftheyear: returns day of the year as integer value
totaldays: total days of the year, standard=365, leap year=366
6. Governing Equations
offset_sec=((offset[1]*24+offset[2]*60)+offset[3]*60)+offset[4]




7. Remarks for Usage
(no remarks)
8. Validation
(no remarks)
9. References
DIN 5034 as cited by Quaschning: Regenerative Energiesysteme (2014)
10. Version History
Model created by Tobias Toerber (tobias.toerber@tuhh.de), Jul 2015
Edited by Sascha Guddusch (sascha.guddusch@tuhh.de), May 2016
Modified by Anne Senkel (anne.senkel@tuhh.de), Mar 2017
Modified by Lisa Andresen (andresen@tuhh.de), Apr. 2017
Modified by Annika Heyer (heyer@gwi-essen.de), Dec 2021
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | offset | {0, 0, 0, 0} | |
| SI.Angle | longitude_local | Modelica.Units.Conversions.from_deg(10) | East positive, west negative, 10 for Hamburg |
| SI.Angle | longitude_standard | Modelica.Units.Conversions.from_deg(15) | 15 needed for offset calculation of central european time, 30 for central european summer time |
| Real | utc | longitude_standard*12/Const.pi | Difference between UTC and zone time; i.e. +1 in Amsterdam/Berlin/Bern/Rome; default works for standard time, beware of summer time ! |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.NonSI.Time_day | dayoftheyear | Day as floating point number. 0.0 at 1.1. 00:00:00, 1.0 at 2.1. 00:00:00 a.s.o. | |
| Modelica.Units.NonSI.Time_day | totaldays | 365 | total days of the year, standard=365, leap year=366 |
| SI.Time | solarTime | Local solar time in seconds | |
| SI.Time | offset_sec |