The the actual distance along a grid cell wall is defined as (the analogous expression applies for ), where is a constant grid cell distance (usually at the equator for the Plate Carrée projection, or at the center of a conformal projection). The mass fluxes across the grid faces can then be expressed using map factors as
Again note that for Cartesian coordinates (no projection), , so that Eq.s 286-287 are equivalent to Eq.s 124-125.The continuity equation (Eq. 28) neglecting sources can be expanded using a general map factor as
Next, the prognostic flux-form equation for scalars (Eq. 48), momentum (Eq.s 30-32), and geopotential (Eq. 35), again neglecting diabatic terms, can be expanded, respectively, using a general map factor as where represents a scalar (passive tracer, TKE, temperature, cloud water, etc...). Note that the horizontal diffusion terms, , include map factors. They are expressed as where corresponds to the quantity being diffused and represents the order of the diffusion operator, and represents the corresponding diffusivity.In addition to horizontal and vertical diffusion, the and momentum equations also include divergence damping terms (Eq. 77, for more details see Section 2.2.1). The default damping is fourth order, and as an example, it is given for the -momentum equation by
thus it amounts to taking the second order derivative of the gradient of the horizontal divergence. The divergence (defined at mass points) is expressed in finite difference form by Eq. 126, where map factors are introduced using the definitions in Eq.s 286-287 so that where is the reference grid distance (m). The gradient of the divergence in the -direction as where represents the divergence gradient in the -direction and is centered on the points of the C-grid. Next, the second order diffusion of the divergence gradient in the -direction is computed as Finally, the fourth order damping coefficient (defined in Eq. 85) has a spatial dependence owing to the map factor and is expressed for the momentum equation as where must be less than 1 for numerical stability. The value is selected to optimize the balance between effectively filtering high frequency noise and avoiding too much damping of the divergence (see Section 2.2.1 for a detailed discussion). The same form is used in the -direction for the damping in the momentum equation.Finally, for the lat-lon grid, the map factors are defined as
(298) | ||
(299) |