In many numerical weather forecasting systems, the pressure gradient terms in the horizontal momentum equations are recast using either the natural log of pressure or the Exner function. One of the main reasons is that the geopotential estimates using the hydrostatic equation are improved in the upper atmosphere using either of these two forms compared to simply using pressure. In order to be consistent with using the potential temperature as the thermodynamic prognostic variable, we use the Exner function (Eq. 11) to cast the horizontal pressure gradient (in Eq.s 1-2) as
For a consistent finite difference form of the pressure gradient terms, we rewrite the hydrostatic equation (Eq. 8) in terms of the hydrostatic Exner function, , defined using Eq. 11 as so that where we have defined Alternatively, can also be expressed as only a function of or as only a function of and obviously the same relationships hold for and . The hydrostatic equation can be expressed as a function of the inverse air density as Note that the last form on the RHS of Eq. 20 is very close to another commonly used form of the hydrostatic equation (not used herein): and the two forms, Eq. 20 and Eq. 21 give very similar results for geopotential given the same hydrostatic pressure and density distribution (especially in the upper atmosphere). Thus to evaluate the geopotential in Eq. 20, one must multiply the inverse density by a factor which only depends on the hydrostatic pressure, . It turns out that this form is useful for the implicit solution of and (to be discussed in the numerical solution section). As grid size increases to about 10 km then ( ).