.TransiEnt.Producer.Heat.SolarThermal.Base.SolarTime

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]

dayoftheyear=Integer((time+offset_sec)/(24*60*60)+1)


J=Modelica.Units.Conversion.from_deg(dayoftheyear*360/totaldays)


solarTime=time-utc*60*60+offset_sec+4*60*Modelica.Units.Conversion.to_deg(longitude_local)+equationOfTime


equationOfTime=60*(0.0066+7.3525*cos(J+SI.Conversions.from_deg(85.9))+9.9359*cos(2*J+SI.Conversions.from_deg(108.99))+0.3387*cos(3*J+SI.Conversions.from_deg(105.2)))

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


Generated at 2024-11-24T19:25:44Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos