modelSun

Computes the sun's altitude of the current site

Information

Overview

The model Sun will mainly be used as part of the model SunIrradiation and in this case as part of the model Weather. The ouput data of the Sun model is yet not very useful itself, but it is most commonly used as input data for e.g. RadOnTiltedSurf models to compute the solar radiance according to the azimut of a surface.

Output: The Sun model computes the day angle, hour angle and the declination of the sun for a given set of geographic position and local solar time.

Input: The model needs information on the difference between the local time zone (corresponding to the time basis of the simulation) and UTC (universal time coordinated) in hours.

Known Limitations

Be aware that the outputs of this model are only values that are calculated in the middle of the simulation interval and that they are no mean value. The parameter timeCorrection is for setting the calculation time of the outputs to the middle of the simulationi nterval. The variable that depends on the solar time are better approximated when the solar time is calculated for the middle of the hour, for which the horizontal solar radiation is given. For weather data in TRY format it is 0.5 h because the solar radiation values are the average measured values for the previous hours. Set according to the specifications of each weather file format.

Parameters

TypeNameDefaultDescription
RealTimeCorrection0.5for TRY = 0.5, for TMY = 0
Modelica.Units.NonSI.Angle_degLatitudelatitude of location
Modelica.Units.NonSI.Angle_degLongitudelongitude of location in
Modelica.Units.NonSI.Time_hourDiffWeatherDataTimedifference between local time and UTC, e.g. +1 for MET
RealDiff_localStandardTime_WeatherDataTime0difference between weather data time and the time of the local time zone

Components

TypeNameDefaultDescription
RealNumberOfDay
RealSolarTime
RealTimeEquation
Modelica.Blocks.Interfaces.RealOutputOutHourAngleSun
Modelica.Blocks.Interfaces.RealOutputOutDeclinationSun
Modelica.Blocks.Interfaces.RealOutputOutDayAngleSun
RealDeclinationSun
RealHourAngleSun
RealDayAngleSun
RealStandardTimethe time of the standard time zone of the WeatherData

Revisions

  • December 20, 2012  by Jerome Feldhaus:
    new Output variable OutHourAngleSun and renaming from Sun to SunAltitude.
  • September 29, 2006  by Peter Matthes:
    Included ArgACOS variable to protect acos function from arguments > 1. Added protection for some variables.
  • March 14, 2005  by Timo Haase:
    Implemented.