modelSun
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | TimeCorrection | 0.5 | for TRY = 0.5, for TMY = 0 |
| Modelica.Units.NonSI.Angle_deg | Latitude | latitude of location | |
| Modelica.Units.NonSI.Angle_deg | Longitude | longitude of location in | |
| Modelica.Units.NonSI.Time_hour | DiffWeatherDataTime | difference between local time and UTC, e.g. +1 for MET | |
| Real | Diff_localStandardTime_WeatherDataTime | 0 | difference between weather data time and the time of the local time zone |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | NumberOfDay | ||
| Real | SolarTime | ||
| Real | TimeEquation | ||
| Modelica.Blocks.Interfaces.RealOutput | OutHourAngleSun | ||
| Modelica.Blocks.Interfaces.RealOutput | OutDeclinationSun | ||
| Modelica.Blocks.Interfaces.RealOutput | OutDayAngleSun | ||
| Real | DeclinationSun | ||
| Real | HourAngleSun | ||
| Real | DayAngleSun | ||
| Real | StandardTime | the 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.