-
The equations for finite difference schemes with 2nd-, 4th- and 6th-order accuracy are displayed in Table 1 (for details of derivation, see Appendix A). The number of grid points used in the computational stencil increases from three to seven with the accuracy raised from 2nd to 6th order, so it is an important issue to deal with the computational efficiency problem for application of high-order finite difference schemes.
Unstaggered grids Staggered grids 2nd order $ \dfrac{{f}_{i+1}-{f}_{i-1}}{2\Delta x} $ $ \dfrac{{f}_{i+0.5}-{f}_{i-0.5}}{\Delta x} $ 4th order $ \dfrac{{f}_{i-2}-8{f}_{i-1}+8{f}_{i+1}-{f}_{i+2}}{12\Delta x} $ $ \dfrac{{f}_{i-1.5}-27{f}_{i-0.5}+27{f}_{i+0.5}-{f}_{i+1.5}}{24\Delta x} $ 6th order $ \dfrac{-{f}_{i-3}+9{f}_{i-2}-45{f}_{i-1}+45{f}_{i+1}-9{f}_{i+2}+{f}_{i+3}}{60\Delta x} $ $ \dfrac{-9{f}_{i-2.5}+125{f}_{i-1.5}-2250{f}_{i-0.5}+2250{f}_{i+0.5}-125{f}_{i+1.5}+9{f}_{i+2.5}}{1920\Delta x} $ Notes: $ f $ represents an arbitrary function, and $ \Delta x $ represents grid length in discretization. Table 1. Difference schemes with 2nd-, 4th- and 6th-order accuracy for the first derivative under unstaggered and staggered grids.
The Fourier analysis of error for difference schemes for first- and second-derivative approximation under an unstaggered grid is shown in Fig. 1 (for the detailed process of derivation, see Appendix B). The improvement of the higher-order schemes in resolving short waves is significant, especially from 2nd- to 4th-order accuracy.
-
The numbers of grids used in the calculation stencil will be increased if higher-order finite difference schemes are applied, so it is an important issue to consider the influence of high-order difference schemes on the computational efficiency for large-scale computation in operational NWP models. In this section, the stencils for the 2nd- and 4th-order difference scheme are compared based on the forecast equations of the GRAPES model, and the influence on the actual computational efficiency is discussed.
The dynamic equation of the GRAPES model under a spherical coordinate system can be written as (Chen and Shen, 2006)
where
${u_{n + 1}}$ ,${v_{n + 1}}$ ,${\hat w_{n + 1}}$ ,$\theta _{n + 1}^{'}$ , and$\Pi _{n + 1}^{'}$ denote the forecasted three-dimensional wind components, perturbed potential temperature and perturbed non-dimensional pressure at the n + 1 timestep, respectively. The symbols λ and φ are the longitude and latitude, respectively, and$\hat z$ is the height in the terrain-following vertical coordinate.${\xi _{x1}}$ ,${\xi _{x2}}$ and${\xi _{x3}}$ $(x = u,v, $ $ \hat w,{\theta ^{'}},{\Pi ^{'}})$ are grid metric coefficients, while${\xi _{x0}}(x = u,v,\hat w, $ $ {\theta ^{'}},{\Pi ^{'}})$ is changed every time-step.${D_3}$ is the three-dimensional divergence term, and${A_\Pi }$ is the time discretization term. Equations (14)–(18) can be transformed to a Helmholtz equation of$\Pi $ (which is the stencil of the GRAPES model) under the 2nd-order difference scheme:where
${B_1}$ –${B_{19}}$ are the coefficients of 19 grids of the stencil. If the 4th-order scheme is used for horizontal discretization, the Helmholtz equation contains 47 grids (the detail derivation process is omitted):The generalized conjugate residual (GCR) method is used to solve the Helmholtz equation in the GRAPES model. To accelerate the speed of convergence, a preconditioned algorithm is applied to simplify the coefficient matrix. According to the fact that the coefficients at points (
$i,j,k$ ), ($i,j,k - 1$ ) and ($i,j,k + 1$ ) are an order of magnitude larger than other points, the preconditioned matrix only retains these three points’ coefficients and then it becomes a segmented tridiagonal matrix (e.g., Xue and Chen, 2008, pp. 132–136). The magnitude of coefficients at 47 points under the 4th-order scheme are displayed in Table 2, and we also find that the coefficients at points ($i,j,k$ ), ($i,j,k - 1$ ) and ($i,j,k + 1$ ) are an order of magnitude larger than other points. As a result, the preconditioned matrix is the same as the 2nd-order scheme, which implies that the time used to solving the Helmholtz equation will not be increased, and so a higher-order difference scheme is a feasible choice for the GRAPES model.Coefficient Magnitude Coefficient Magnitude B1 100 B16–B19 10−4 B2–B4 10−2 B20–B23 10−3 B5–B9 10−8 B24–B35 10−8 B10, B15 10−1 B36–B43 10−5 B11–B14 10−5 B44–B47 10−5 Table 2. Magnitude of coefficients in Eq. (27).
Unstaggered grids | Staggered grids | |
2nd order | $ \dfrac{{f}_{i+1}-{f}_{i-1}}{2\Delta x} $ | $ \dfrac{{f}_{i+0.5}-{f}_{i-0.5}}{\Delta x} $ |
4th order | $ \dfrac{{f}_{i-2}-8{f}_{i-1}+8{f}_{i+1}-{f}_{i+2}}{12\Delta x} $ | $ \dfrac{{f}_{i-1.5}-27{f}_{i-0.5}+27{f}_{i+0.5}-{f}_{i+1.5}}{24\Delta x} $ |
6th order | $ \dfrac{-{f}_{i-3}+9{f}_{i-2}-45{f}_{i-1}+45{f}_{i+1}-9{f}_{i+2}+{f}_{i+3}}{60\Delta x} $ | $ \dfrac{-9{f}_{i-2.5}+125{f}_{i-1.5}-2250{f}_{i-0.5}+2250{f}_{i+0.5}-125{f}_{i+1.5}+9{f}_{i+2.5}}{1920\Delta x} $ |
Notes: $ f $ represents an arbitrary function, and $ \Delta x $ represents grid length in discretization. |