## Modeling Atmospheres with the Unified Model

In my last couple of posts I’ve been going through some of the basic principles of fluid mechanics. From some of the basic approximations that make the equation possible to analytically solve in this post, to some more specialised theory in the context of planetary systems in this post. In these posts we’ve been slowly working towards being able to understand the fluid mechanics used in modeling the atmospheres of exoplanets; which is just what I intend to do in this post. In order to improve current weather and climate models, scientists at both the UK Met Office and the University of Exeter have been collaborating to develop and test a new dynamical core for their global circulation model (GCM), called Unified Model (UM).

## A Little Housekeeping…

Before introducing the equations that are solved by the dynamical core, it’s important to go over a few physical concepts that make an appearance in the formulation of the Unified Model.

### The Geometry of the Problem

As we’re dealing explicitly with a planetary atmosphere, we can define our geometry with this in mind. If we define a set of orthogonal coordinates which we shall label , and . These Cartesian axes rotate around the axes with angular velocity . Around this coordinate system we now adopt a standard spherical coordinates system oriented such that the longitude is in the plane and the latitude varies in .

In line with astrophysical and meteorological convention we also define the the zonal and meridional direction. In reference to a planet, zonal refers to a direction following a circle of latitude around the globe in the west-east direction; whereas the meridional direction means ‘along a meridian’, or in a north-south direction.

### Potential Temperature

As we’re dealing with the Lagrangian formulation of fluid mechanics, the dynamical equations refer to a parcel of fluid moving through the system. It’s for this reason that we define a temperature with this in mind. The potential temperature of a parcel of fluid held at pressure is the temperature that the parcel would acquire if it were adiabatically, meaning without any exchange of heat energy between it and its surroundings, brought to reference pressure . The potential temperature for air is given by:

(1)

where is the absolute temperature of the parcel measured in K, is the gas constant for air and is the specific heat capacity of at constant pressure. In the context of meteorology, is usually taken as Pa, or 1000 hPa.

### Exner Function

The Exner function (or Exner Pressure) is a parameter appears a lot in atmospheric modeling. It is used as a non-dimensional measure of pressure. This may be preferable to normal measures of pressure as this parameter doesn’t introduce extra dimensions into equations. It is defined as:

(2)

where is the puressure at the surface of the planet is the gas constant for dry air, is the heat capacity of dry air at constant pressure, is a the absolute temperature and is the potential temperature.

With these two parameters in place, we can simply define a relation between temperature and potential temperature simply becomes:

(3)

## The Fluid Mechanics

As with previous examples, we start of with our humble Navier-Stokes equation, written this time with an additional term that accounts for the effect of an imaginary centrifugal force, due to the rotation of the planet:

(4)

in this formulation, represents the force per unit mass and includes contributions from gravity, friction and electromagnetic forces. In the UM formulation, only friction and gravity are represented, thus:

where is the frictional force per unit mass and is the true gravitational potential. As a note, the negative of the gradient of gives the acceleration due to distribution of mass. This contribution makes the equation of momentum become:

(5)

Another factor that allows us to simplify the equation is the knowledge that the centrifugal term can be written as the gradient of a centrifugal potential , where points perpendicularly outwards from the axis of rotation and has a a magnitude which is equal to the distance from it. With this knowledge, we can rewrite the centrifugal term as:

Hence, we can now define a quantity called the apparent gravitational potential , which is defined as:

We can now operate the grad operator on the apparent gravitational potential to simply derive apparent gravity as:

which is defined only in the direction pointing vertically outward from the surface of the planet. The variable can take varying forms, depending on the test case. We shall address these variations between cases later on in the post. Now our equation of motion simply becomes:

(6)

It’s at this point it’s convenient to decompose this equation into its components, in order to solve numerically. We start by calculating the components of the Coriolis term:

(7)

Now that we have decomposed this cross product into the cartesian space, we need to finish the process by accounting for the fact that we’re dealing with an intrinsically curved, spherical geometry and that the local zonal, meridional and radial components, denoted as , and respectively, will change direction as one moves across the surface. The terms that account for this in the decomposed equations are called metric terms and can be derived by isolating the components of the advective derivative, like so:

(8)

For this geometry, this gives us the terms as:

(9)

Given these two considerations we are now able to decompose the vectorial form of our momentum equation into its zonal, meridional and radial components, like so:

(10)

The advective derivative is given by:

(11)

### The Equation of Continuity

In the system, we need to enforce mass conservation within the system. We do this using the continuity equation. This is usually expressed as for an incompressible fluid, however the more general case is:

(12)

However, we can also express this equation in a more fundamental form involving the advective derivative:

(13)

Considering that we’re using polar coordinates, we can now derive the final equation that is used in the UM. This is:

(14)

## The Thermodynamics

Now that we have considered the fluid mechanics which give us the flow of the material through the system, we must consider how this transports energy. We start of this endeavor by considering the first law of thermodynamics, which relates the change in internal energy of an arbitrary mass of the considered fluid to the work done by the mass of fluid . This relationship takes the form of:

(15)

in this equation we interpret as the total heating of the mass of fluid. This includes heat exchange from frictional dissipation, which is when energy transported through large scale convection is transferred to smaller and smaller energy scales until it is dissipated by frictional effects at molecular scales. Due to the entropic effects of this process, it’s irreversible. If the mass of the fluid has a pressure , and it’s volume reversibly changes, we can rewrite this as:

(16)

In terms of quantities of these properties per unit mass, this becomes:

(17)

where . Given that in this equation is specific heat capacity at constant volume and is a specific volume we can use the advective derivative to attain an expression that describes how the fluid is heated over time:

(18)

in which is the rate of heating of a parcel of fluid per unit mass. If we now assume that the atmosphere is a perfect gas, where we can set and we find the equation:

(19)

We can now conveniently parameterise this expression using the potential temperature that we’ve used several times before in this post. Making the substitution gives us the simplified thermodynamic equation that is used in the UM:

(20)

In this expression the non-dimensional term acts as a source term for the equation, which is then multiplied by the heating rate divided by .

### Equation of State

For this model we shall assume that the atmosphere consists of dry air. In the operational model, atmospheric moisture is considered separately. In order to treat thermodynamics in the model, we choose to adopt the ideal gas law. The most well known version of this law is:

(21)

In this case, it’s chosen to be represented in terms of density , like so:

(22)

In general, it’s preferable to represent variables of state in terms of dimensionless quantities. In this case we can represent pressure in the function as the Exner function and temperature in terms of the potential temperature. Substituting this in, and introducing , we arrive at our equation of state for the Unified Model:

(23)

### Parameterising the Pressure Gradient

Given that we’ve parameterised variables in the equation of state, it’s sensible to also adopt them for the pressure gradient terms in the equations of momentum. By substituting for pressure, the pressure gradient term becomes:

(24)

where is a coordinate, either , or . By substituting this relation into the equations of momentum we end up with the final equations of momentum, for zonal, meridional and vertical flow respectively:

(25)

## Test Cases

Now that we have the set of equations that make up the dynamical core of the UM, a momentum equation for each coordinate, a continuity equation to ensure mass conservation, a thermodynamic energy equation which describes heating of the fluid and an equation of state which describes an idea gas, we can consider some test cases for which they are applicable. Considered in the research relating to this post are both terrestrial planets and hot Jupiters. Both of these cases are important to test due to Earth-like exoplanet climates and the dynamics of hot Jupiter atmospheres being very active research areas.

The main differentiation between test cases is the temperature profile and structure of the model atmosphere. In the following sections I will summarise some of the test cases that the UM has been subjected to. Each one has subtle differences in model, so if you want more detail refer to source materials in the references. In interpreting the results from these test cases it’s also useful to understand the concept of normalised pressure. This is effectively a vertical coordinate within the system and is defined as:

(26)

where is the pressure at a given layer in the atmosphere, is the pressure at the surface, or lower boundary, of the model and represents the normalised pressure. By definition, at the surface of the planet and at , . This imposes the condition that at both the top and bottom boundary. More generally, we can allow for an upper boundary condition to be set to a constant finite pressure using:

(27)

with generally being defined in literature as the pressure difference between the top and bottom pressure of a model. Usefully, we can note that if the pressure at the upper boundary is 0, then this generalised form of the equation will become the equation for the special case we mentioned above. This coordinate system is useful as it allows the complex bottom boundary conditions that the orography of the planets surface would cause. However, there is no orography for these test cases.

You’ll recall that earlier on we discussed the thermodynamics of the model and we defined the heating rate . In the following cases the heating of the system is provided by radiative transfer. This is a achieved either by forcing to an atmospheric temperature profile or through Newtonian cooling. The heating rate is set by which can be represented as a function of prognostic variables which the code calculates:

(28)

where is the characteristic radiative or relaxation timescale and is the equilibrium potential temperature, and can be attained from the equilibrium temperature profile on the time-step using:

(29)

### The Held-Suarez Test

The Held-Suarez test, described in Held & Suarez (1994), is a simple global circulation test case developed in order to aid intercomparison of GCMs regardless of parameterisation or formulation differences. It’s main focus is testing the long term statistical properties of atmospheric circulation; making it particularly useful for climate codes, such as the UM, which are required to model decades in advance. In this case numerical stability and accuracy of the code is a priority. The equilibrium temperature profile for the test case is:

(30)

where K. is given by:

(31)

where K, K, K and Pa. For this model, the radiative timescale is modeled as:

(32)

where days, days and , which is the sigma coordinate for the top of the surface friction boundary layer, the layer in which the dominant effect on wind damping is the friction of the planetary surface. This layer imposes frictional damping on a timescale of:

(33)

where day. Given this prescription the prognostic variables can then be time averaged and compared to other results as an intercomparison test for GCM validity. This test exists mainly because analytical tests, such as the Sod shock tube for advection in 1D, aren’t possible for complex flow like global circulation.

### A Simple Earth-like Case Including a Stratosphere

This simple Earth-like test case is described in Menou & Rauscher (2009). This model bears a resemblance to the Held-Suarez test described above, however it can be considered a cruder version due to several simplifications. A prime example of this is the adoption of single values for days and day throughout the atmosphere, as opposed to the parameterisations used in the Held-Suarez model. This has the effect of bringing down the number of free parameters. One feature of this model is that the vertical equilibrium temperature profile is parameterised in such a way as to add an isothermal stratosphere. The equilibrium temperature profile is given as:

(34)

where K is the equator-to-pole temperature difference and the vertical variation in equilibrium temperature is given by:

(35)

where K is the surface temperature of the modeled planet, K m is the lapse rate, which is the rate at which temperature decreases with increasing height in the atmosphere, and K, which acts as an offset to smooth transition from the troposphere to the isothermal stratosphere. The boundary between these two layers is called the tropopause and is defined in real and sigma vertical coordinates by and respectively. Finally, is a height-dependent damping factor applied to the troposphere in order gradually reduce the latitudinal and longitudinal temperature differential over the vertical extent of the troposphere. It is defined as:

(36)

As opposed to the Held-Suarez test, which is meant to test the code, this test is designed to offer insight into model parametrisations and the accuracies thereof. Instead of being able to exactly reproduce the characteristics of Earth’s global circulation, as was the aim of the Held-Suarez test, it’s often far more useful to be able to reproduce the main qualitative features for a more general case. The main reason being that the atmospheric conditions on Earth are very well known so the models can be tweaked to fit the known conditions, however conditions on exoplanets aren’t so well constrained. Models need to be able to reliably reproduce global circulation for an atmosphere without a priori knowledge of its characteristics, such is the case on all planets outside of the Solar System.

### A Tidally Locked Earth-like Case

In this theoretical model we adjust the rotation rate of the Earth-like planet so that a day is equal to one orbital period, . This situation is known as tidal locking. In this regime the planet has a permanent day and night side and the wind is responsible for heat transport from the permanently radiated day side to the permanently dark night side. This introduces a steep longitudinal temperature gradient between the day and night sides of the planet. Importantly, this is generally an affect found in hot Jupiter planets, which have a very different atmospheric structure and heat transport regime. This model allows the code to be run in familiar conditions in an Earth-like atmosphere, while introducing aspects found in hot Jupiter atmospheres. Once again, the model takes inspiration from the Held-Suarez model, using the equation for equilibrium temperature profile with modifications to enforce a longitudinal temperature contrast and ‘hot spot’ at the subsolar point centred on the equator at a longitude of 180. It is given by:

(37)

where,

(38)

All values that are present in the Held-Suarez model take the same value in this one. In this model it’s likely that significant flow over the pole will be present, so it’s necessary to add a sponge layer into the UM to damp vertical motion and improve model stability. As an example, the vertical velocity, with damping , is given by:

(39)

where and are the vertical velocities at the current and future timesteps respectively, is a source term and is the length of the timestep. The spatial extend of this damping coefficient is given by:

(40)

where, given that there is no orography present on the surface, , is the start height of the top level damping and is a coefficient.

### A Shallow Hot Jupiter Case

We now move away from Earth-like planets in favour of the another great focus of exoplanet research; hot Jupiters. Fundamentally, the atmospheres of hot Jupiters have very different circulation regime to terrestrial planets. A shallow hot Jupiter test case is laid out in Menou & Rauscher (2009). In this test case, the atmosphere is termed a shallow hot Jupiter as the atmosphere is only modeled down to Pa. No account is made of atmosphere below this level. Despite this massive simplification, one clear advantage is that it is a direct extension of the Earth-like atmospheric model described earlier in the post. This allows easy comparison between the two circulation regimes. The vertical temperature profile and tropospheric damping factor remain mathematically the same as in the Earth-like case, however the equilibrium temperature profile becomes:

(41)

The radiative timescale is once again set to days throughout the atmosphere. There are also simplifications made to the equations in the dynamical core, however we shall not detail that in this summary. Now that we have a shallow test case laid out for a hot Jupiter, what about the full hot Jupiter?

### A Full Hot Jupiter Case

This test case is modeled after the commonly studied exoplanet, HD 209458b. This case is adapted from the one described in Heng (2011). This time the equilibrium temperature and relaxation profiles were modeled based on observations. In these profiles there’s a radiatively inactive region that reaches from Pa to Pa where . Above this there’s a radiatively active region. As the exoplanet has a day- and night-side, two different equilibrium temperature profiles are required to model it. The temperature profile for the night side is given by:

(42)

and the temperature profile of the day side is given by:

(43)

where and are the day and night side temperature profiles respectively, and are the polynomial fits to modeled temperature profiles and and are 100 and Pa respectively. We then combine these two profiles together to create a temperature map of the planet using:

(44)

This is run using the full set of governing equations and, as with the tidally locked Earth-like case, a sponge layer is added in for numerical stability. The sponge layer is defined in the tidally locked Earth case, but for this we alter the parameters, taking a value of for all cases, for the deep and shallow equations, but for the full equations.

## In Conclusion

For this post I’ve been through some details of the formulation of the Met Office’s global circulation model, the Unified Model. These equations include the momentum equations, the equation of continuity, the thermodynamic equation for the system and finally the equation of state. Having gone through these core equations of the UM, we then go on to briefly summarise some test cases which the UM was subjected to. These ranged from simple, Earth-like cases to hot Jupiter cases. If you’d like more details on any of the cases I described to you the links to papers are down in the references, and if you’re interested I highly recommend checking them out. Until next time, I hope you enjoyed reading this long, drawn out post as much as I enjoyed researching and writing it. Until next time, thanks for reading.

## References

- Held, I. M. & Suarez, M. J. (1994), ‘A Proposal for the Intercomparison of the Dynamical Cores of Atmospheric General Circulation Models’, Bull. Amer. Meteor. Soc. 75(10), 1825–1830.
- Menou, K. & Rauscher, E. (2009), ‘Atmospheric Circulation of Hot Jupiters: A Shallow Three-Dimensional Model’, 700, 887-897.
- Merlis, T. M. & Schneider, T. (2010), ‘Atmospheric Dynamics of Earth-Like Tidally Locked Aquaplanets’, Journal of Advances in Modeling Earth Systems 2(4)
- Heng, K.; Menou, K. & Phillipps, P. J. (2011), ‘Atmospheric circulation of tidally locked exoplanets: a suite of benchmark tests for dynamical solvers’, 413, 2380-2402.