The Rotating Greenhouse configuration of Circulating Cells, Version 5 simulates the cycle of day and night that results from the rotation of a Planetary Greenhouse with respect to its sun. The day_length_hr parameter gives the length of the day-night cycle in hours. In Simulation Time, we concluded that one iteration of our simulation corresponded to one second of planetary time, so one hour is 3600 iterations and one twenty-four hour day is 86400 iterations. The sun will shine upon our Rotating Greenhouse for a fraction of the day given by day_fraction. You will find both parameters in CC5's configuration array.
As in the Planetary Greenhouse, the surface is something like sand. It heats up quickly and warms the bottom cells of the atmosphere. Now that the planet is rotating, the heat from the sun increases from zero at dawn to a maximum at mid-day, and decreases to zero again at sunset. We use a sinusoidal profile for the rise in solar heating during the day. For the entire night, no heat arrives at all. In the middle of the day, heat arrives from the sun at a rate π × Q_heating. When day_fraction is one half (the days and nights are of equal length), the average rate at which the bottom cells are warmed by the sun is Q_heating. But when the day is shorter, the average warming is less than Q_heating, and when the day is longer, the average warming is greater. For now, we leave the fraction at one half.
The top cells, meanwhile, radiates heat into space just as they did for the Planetary Greenhouse. Top cells cool by Q_heating per second when they are at temperature T_balance. Their cooling rate increases as the fourth power of their temperature.
We allow the Rotating Greenhouse simulation to run. The report line gives us the time in hours instead of the iteration counter. In the top-left of the report window we see the current rate of solar heating, in units of K/hr. After many days, the cycle of day and night reaches equilibrium, and we see the following each day.
During the day, the surface cells warm as they absorb the Sun's heat. Once they warm by a few degrees, they rise, as we describe in Impetus for Circulation. The average temperature of the surface rows rises by a few degrees during the day, but not more. Our simulation does not allow surface cells to cool. And yet the average temperature of the surface row drops by a few degrees at night. When we mark a few cells near the surface, and watch them move after night falls, we see the surface cells being replaced by cooler cells from above. It is air descending from above that cools the surface row. And so our simulation confirms the mechanism for surface cooling we described in Surface Cooling, Part III.
Our simulation does not, however, show the sudden ten-degree cooling we observe standing in the desert just after the sun sets. Understanding this sudden drop was the motivation behind our Surface Cooling series of posts. Next time, we will use CC5 in its Surface Heating configuration to simulate the transport of heat within one or our large surface cells, and so obtain an estimate of how much the first twenty meters of the atmosphere will warm up during the day.
PS. You will find the array data corresponding to the start of the day with Q = 0.001 K and no cell mixing in RGH_Q001