Milestone 2 - Solar forcing
So far, we have made the assumption that the solar forcing term remains constant across both space and time. However, this assumption is again too simple, as it overlooks the fact that the Earth's position and orientation in relation to the sun changes throughout the year, leading to a variation in the amount of incoming insolation.
By incorporating these effects, we can significantly improve the modeling of our solar energy source term. The two primary factors that contribute to the variability of solar radiation received by the Earth are as follows:
Distance from the sun: Rather than a perfect circle, the Earth's orbit around the sun is an ellipse. Consequently, the distance between the Earth and the sun fluctuates throughout the year, leading to a change in the total amount of solar radiation that reaches the Earth.
Tilted axis of rotation: Due to the Earth's tilted axis of rotation, different parts of the planet receive varying amounts of solar radiation as it orbits the sun (depending on the latitude). This phenomenon gives rise to the changing seasons.
The derivations presented in this section can be found in the following references:
Important definitions

Before we delve into calculating the impact of the Earth-sun distance and Earth's axis tilting on the solar radiation on Earth, let us define some relevant concepts (see figure above for reference):
Perihelion: The point in Earth's orbit where it is closest to the Sun. Currently, the perihelion occurs around January 4th.
Aphelion: The point in Earth's orbit where it is farthest from the Sun. Currently, the aphelion occurs around July 6th.
Ecliptic: The plane of Earth's orbit around the Sun.
Northern summer solstice: The point in Earth's orbit where the longest day of the year occurs in the Northern Hemisphere and the shortest day of the year occurs in the Southern Hemisphere. At this point, the plane formed by the rotation axis of Earth and the line that connects Earth and the Sun is perpendicular to the ecliptic. Currently, the Northern summer solstice occurs around June 21st.
Northern winter solstice: The point in Earth's orbit where the shortest day of the year occurs in the Northern Hemisphere and the longest day of the year occurs in the Southern Hemisphere. At this point, the plane formed by the rotation axis of Earth and the line that connects Earth and the Sun is perpendicular to the ecliptic. Currently, the Northern winter solstice occurs around December 21st.
Vernal equinox: The point in Earth's orbit where the line that connects Earth and the Sun aligns with the equatorial plane of Earth during the transition from winter to summer in the Northern Hemisphere. This is also the moment when Earth's rotation axis is directly perpendicular to the Sun-Earth line.
Northern autumnal equinox: The point in Earth's orbit where the line that connects Earth and the Sun aligns with the equatorial plane of Earth during the transition from summer to winter in the Northern Hemisphere. This is also the moment when Earth's rotation axis is directly perpendicular to the Sun-Earth line.
True longitude of Earth (): Position of Earth at a given time as measured from the vernal equinox. The position is considered the beginning of an astronomical year.
To compute the distance from the sun and Earth's axis tilt angle, we need to consider three parameters that vary over time as a result of the gravitational interactions between Earth and other celestial bodies within the solar system. We call these parameters the orbital parameters and define them as
Eccentricity (): This parameter determines the degree to which Earth's orbit around the sun deviates from a perfect circle. It is computed as
where represents the semi-major axis, and represents the semi-minor axis of the ellipse (refer to the figure). Earth's eccentricity undergoes periodic changes over hundreds of thousands of years.
Obliquity (): This parameter, also referred to as axial tilt, represents the angle between Earth's rotational axis and its orbital axis. The obliquity angle is equivalent to the angle between the equatorial plane and the orbital plane. The obliquity angle varies periodically over approximately years.
Precession distance (): Earth's axis rotates with a period of about years, causing the seasons to shift in position within the elliptical orbit of Earth. This phenomenon is known as precession or spin. We define the precession distance as the angle between the aphelion and the vernal equinox.
NOTE: In the paper of Berger, the precession distance () is sometimes defined from the perihelion and sometimes from the aphelion. We use the aphelion in our implementation as it is the one obtained with equation (6) from Berger.

Milankovitch Cycles. Source: Skeptical Science, CC-BY-3.0.
In the following sections, we will assume that the eccentricity, obliquity and precession distance are constant to derive the total solar irradiance. This is a reasonable assumption for climate simulations in which the orbital parameters are updated at the time interval .
Effect of Earth's distance to the sun
The inverse-square law states that the total radiation that is received from a source is inversely proportional to the square of the distance from the source.

Inverse Square Law. Source: Wikipedia (User:Borb), CC-BY-SA 3.0.
As a result, the total radiation that is received at the top layer of Earth's atmosphere is
where is the (time-dependent) Earth-sun distance, is roughly the mean Earth-sun distance (defined as one anstronomical unit), and is the so-called solar constant, the mean solar elecromagnetic radiation per unit area measured on a surface perpendicular to the solar rays at a distance .
Since Earth's orbit is an ellipse and the sun sits in one focus, we can calulate the Earth-sun distance as
where the position (angle) of Earth with respect to the aphelion is
The radiation at the top of the atmosphere is then computed as
Effect of Earth's axial tilt
Due to Earth's axial tilt, the solar irradiance depends on the latitude and the time.
We call the angle between the Earth-sun line and the equatorial plane of Earth declination angle and note it with . This angle changes throughout the year, as the Earth revolves around the sun (see figure):

In general, the declination angle can be computed as
Depending on the declination angle and the latitude, we identify three regions of interest:
Latitudes where there is no sunrise (winter)
There is no incoming solar radiation for latitudes that fulfill
or equivalently
For these latitudes, the insolation is simply
Latitudes where there is no sunset (summer)
Some regions of Earth are exposed to incoming solar radiation throughout the entire day during part of the year. These regions fulfill
or equivalently
The calculation of the effective insolation is more involved, as it requires the use of spherical astronomy. The result reads as
Latitudes where there is daily sunrise and sunset
There is daily sunrise and sunset at latitudes that fulfill the condition
For these latitudes, the calculation of the insolation also requires the use of spherical astronomy. The result reads as
with the absolute angle of the sun at sunrise and sunset
In summary, the insolation is given by the expression
with the normalized distance between Earth and sun squared
The total solar forcing is given by
Bonus: Computation of the true longitude
Kepler's second law states that a line segment joining a planet and the Sun sweeps out equal areas during equal intervals of time. Therefore, Earth moves faster when it is closer to the sun. Is a short time interval , the area swept is equal to the area of a triangle with base and height . Therefore, we can write Kepler's second law as
where is the total area of a ellipse, which is swept in a complete period .
Assuming that the time is measured in years and replacing the definition of the Earth-sun distance (3) and the eccentricity (1) into (19) we obtain
Created by Gregor Gassner and Andrés Rueda-Ramírez with contributions by Simone Chiocchetti, Daniel Bach, Sophia Horak, Philipp Baasch, Benjamin Bolm, Erik Faulhaber, and Luca Sommer. Last modified: April 02, 2026. Website built with Franklin.jl and the Julia programming language.