Finally, in order to find an optimum level of CPU times which permits the use of a grid spacing which is larger than the minimum value on the grid near the Poles but avoids numerical instabilities arising from the decreasing grid spacing, Fourier Filtering is used above some critical latitude, . We use the classic filter weight, , form (Haltiner and Williams (1980)) applied to the Fourier coefficients:
where is the wave number and is the number of grid points along the latitude . Finally, is a parameter which controls the filter strength. It can range from 1 (minimum) to 2 for increased stability (smoothing), however, the default value herein is to use in order to minimize the smoothing while ensuring numerical stability.The variables which are filtered are and , where represents , , and . Filtering is performed for , , and after each time split within the RK loop.
It has been seen that for coarse resolution tests at very high latitudes where steep topographic gradients occur, an improved filtering of can be done by filtering the perturbation of surface pressure defined as
where the time constant standard surface pressure is defined using the WRFv3 definition as where K, HPa and K. Once has been filtered, is added back to get an updated . Thus, mass is conserved and the surface pressure fields are more effectively smoothed (again, for the special conditions mentioned above). The same method is used for the potential temperature using a background time constant temperature, which is defined as Thus,the filtering can be expressed as where the is used to represent the filtered variable, , and represents the Fourier Filter operator. represents computed from the filtered surface pressure, . These mass variables are conserved during the filtering. is computed from Eq. 258 using , then the non-hydrostatic pressure, , is computed using Eq. 259 using (these two variables are not filtered if the non-hydrostatic option is off). Note that for higher resolutions, the need for the background state for and in the filtering diminishes. Finally, either Eq. 325 or Eq. 326 is used, depending on whether or is used as a prognostic variable within the non-hydrostatic module.From Eq. 322, it can be seen that (and equivalently ) is filtered, thus the horizontal mass flux, , has been filtered. For the scalar water substance equations and the non-hydrostatic continuity equation, only appears in the longitudinal advection terms, and numerical stability can be maintained simply be using the filtered value. Therefore, the scalar water substance variables and geopotential are not filtered, thus the scheme is quite economical.
Finally, note that since the RK time step is smaller than for all RK steps before the final one, the critical latitude for maintaining numerical stability is a maximum for the first RK step, then decreases for each RK step (as to maintain numerical stability). This saves considerable CPUs as the Fourier transforms are computed over a larger range of latitudes as the RK stepping progresses. For example, for 45, we compute the model time step, , based on the grid distance at this latitude. This corresponds to the value used in the last RK step. For the case using using RK3, the critical latitudes for RK(step 1) = 74 and RK (step 2) = 66 (these values are slightly lower than the maximum theoretical values in order to provide a safety margin). Note that filtering is only applied during dynamics computations (it is not applied after micro-physics and turbulence computations, which are performed after the dynamics). An example forecast on the global grid is shown in Fig. 10.