Advanced Search
Article Contents

Properties of High-Order Finite Difference Schemes and Idealized Numerical Testing

Fund Project:

We thank the two anonymous reviewers and the editors for their comments, which greatly improved this paper


doi: 10.1007/s00376-020-0130-7

  • Construction of high-order difference schemes based on Taylor series expansion has long been a hot topic in computational mathematics, while its application in comprehensive weather models is still very rare. Here, the properties of high-order finite difference schemes are studied based on idealized numerical testing, for the purpose of their application in the Global/Regional Assimilation and Prediction System (GRAPES) model. It is found that the pros and cons due to grid staggering choices diminish with higher-order schemes based on linearized analysis of the one-dimensional gravity wave equation. The improvement of higher-order difference schemes is still obvious for the mesh with smooth varied grid distance. The results of discontinuous square wave testing also exhibits the superiority of high-order schemes. For a model grid with severe non-uniformity and non-orthogonality, the advantage of high-order difference schemes is inapparent, as shown by the results of two-dimensional idealized advection tests under a terrain-following coordinate. In addition, the increase in computational expense caused by high-order schemes can be avoided by the precondition technique used in the GRAPES model. In general, a high-order finite difference scheme is a preferable choice for the tropical regional GRAPES model with a quasi-uniform and quasi-orthogonal grid mesh.
    摘要: 基于泰勒展开构造高阶精度有限差分方案很早就成为了计算数学界的热门话题,但是它在成熟的数值天气预报模式中仍然很少被应用。为了将高阶精度有限差分方案应用于GRAPES(Global/Regional Assimilation and Prediction System)模式,本文通过理想试验对高阶精度有限差分方案的相关性质进行了分析。一维重力波的线性分析结果表明,在高阶精度差分方案下不同跳点网格方案的影响很小。一维平流试验结果表明:对于网格距离缓慢变化的非均匀网格,高阶差分方案的改进效果仍然十分明显,不连续方波试验的结果也表明了高阶方案的优越性。在地形追随坐标系下的二维质量平流试验结果表明,当模式网格的非均匀性和非正交性变得很明显时,高阶方案的改进效果变得不是很明显。通过在GRAPES模式中采用预条件技术,可以有效地避免高阶方案引起计算量增加的问题。总而言之,对于准均匀和准正交网格的热带区域GRAPES模式来说,发展基于高阶精度有限差分方案的动力框架是一种可行的选择。
  • 加载中
  • Figure 1.  Fourier analysis of error for the first derivative approximation with different schemes under an unstaggered grid.

    Figure 2.  The dependency of (nondimensional) frequency $ \upsilon /f $ on the wavelength for the case $ \lambda /d=2 $.

    Figure 3.  Numerical test of the one-dimensional advection equation at t = 10 s in (a) a uniform grid, (b) non-uniform grid-1, and (c) non-uniform grid-2.

    Figure 4.  The result of the square test at t = 1 s.

    Figure 5.  Schematic diagram of the non-orthogonal grid mesh for the two-dimensional advection test (black shaded area denotes the topographic obstacle).

    Figure 6.  Vertical cross section for the idealized two-dimension advection test: (a) vertical distribution of velocity u; (b) analytical solution of the density as advected for three instances.

    Figure 7.  Numerical error of difference schemes for the two-dimensional advection equation: (a, b) 2nd-order scheme; (c, d) 4th-order scheme; (e, f) 6th-order scheme; (a, c, e) t = 5000 s; (b, d, f) t = 10000 s.

    Table 1.  Difference schemes with 2nd-, 4th- and 6th-order accuracy for the first derivative under unstaggered and staggered grids.

    Unstaggered gridsStaggered 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.
    DownLoad: CSV

    Table 2.  Magnitude of coefficients in Eq. (27).

    CoefficientMagnitudeCoefficientMagnitude
    B1100B16B1910−4
    B2B410−2B20B2310−3
    B5B910−8B24B3510−8
    B10, B1510−1B36B4310−5
    B11B1410−5B44B4710−5
    DownLoad: CSV
  • Arakawa, A., and V. R. Lamb, 1977: Computational design of the basic dynamical processes of the UCLA general circulation model. Methods in Computational Physics, 17, 173−265, https://doi.org/10.1016/B978-0-12-460817-7.50009-4.
    Chen, D. H., and X. S. Shen, 2006: Recent progress on GRAPES research and application. Journal of Applied Meteorological Science, 17, 773−777, https://doi.org/10.3969/j.issn.1001-7313.2006.06.014. (in Chinese with English abstract
    Chen, X., S. J. Lin, and L. M. Harris, 2018: Towards an unstaggered finite-volume dynamical core with a fast Riemann solver: 1-D linearized analysis of dissipation, dispersion, and noise control. Journal of Advances in Modeling Earth Systems, 10, 2333−2356, https://doi.org/10.1029/2018MS001361.
    Chu, P. C., and C. W. Fan, 1997: Sixth-order difference scheme for sigma coordinate ocean models. J. Phys. Oceanogr., 27, 2064−2071, https://doi.org/10.1175/1520-0485(1997)027<2064:SODSFS>2.0.CO;2.
    Chu, P. C., and C. W. Fan, 2000: An accuracy progressive sixth-order finite-difference scheme. J. Atmos. Oceanic Technol., 18, 1245−1257, https://doi.org/10.1175/1520-0426(2001)018<1245:AAPSOF>2.0.CO;2.
    Cullen, M. J. P., and T. Davies, 1991: A conservative split-explicit integration scheme with fourth-order horizontal advection. Quart. J. Roy. Meteor. Soc., 117, 993−1002, https://doi.org/10.1002/qj.49711750106.
    Feng, T., and J. P. Li, 2007: A comparison and analysis of high order upwind-biased schemes. Chinese Journal of Atmospheric Sciences, 31, 245−253, https://doi.org/10.3878/j.issn.1006-9895.2007.02.06. (in Chinese with English abstract
    Gal-Chen, T., and R. C. J. Somerville, 1975: On the use of a coordinate transformation for the solution of the Navier-Stokes equations. J. Comput. Phys., 17, 209−228, https://doi.org/10.1016/0021-9991(75)90037-6.
    Harris, L. M., and D. R. Durran, 2010: An idealized comparison of one-way and two-way grid nesting. Mon. Wea. Rev., 138, 2174−2187, https://doi.org/10.1175/2010MWR3080.1.
    Li, C., D. H. Chen, and X. L. Li, 2012: A design of height-based terrain-following coordinates in the atmospheric numerical model: Theoretical analysis and idealized test. Acta Meteorologica Sinica, 70, 1247−1259, https://doi.org/10.11676/qxxb2012.105. (in Chinese with English abstract
    Li, J. P., 2005: General explicit difference formulas for numerical differentiation. Journal of Computational and Applied Mathematics, 183, 29−52, https://doi.org/10.1016/j.cam.2004.12.026.
    Li, W. M., 2012: Verification to stability of difference scheme for convection equation. Journal of Henan Polytechnic University (Natural Science), 31, 369−372, https://doi.org/10.3969/j.issn.1673-9787.2012.03.025. (in Chinese with English abstract
    Li, X. L., C. G. Chen, F. Xiao, and X. S. Shen, 2015: A high-order multi-moment constrained finite-volume global shallow-water model on the Yin-Yang grid. Quart. J. Roy. Meteor. Soc., 141, 2090−2102, https://doi.org/10.1002/qj.2504.
    Lin, D., and J. M. Zhan, 2008: Combined super compact finite difference scheme and application to simulation of shallow water equations. Chinese Journal of Computational Mechanics, 25, 791−796. (in Chinese with English abstract
    Lin, S. J., 2004: A “Vertically Lagrangian” finite-volume dynamical core for global models. Mon. Wea. Rev., 132, 2293−2307, https://doi.org/10.1175/1520-0493(2004)132<2293:AVLFDC>2.0.CO;2.
    Lin, S. J. and R. B. Rood, 1996: Multidimensional Flux-form semi-Lagrangian transport schemes. Mon. Wea. Rev., 124, 2046−2070, https://doi.org/10.1175/1520-0493(1996)124<2046:MFFSLT>2.0.CO;2.
    McCalpin, J. D., 1994: A comparison of second-order and fourth-order pressure gradient algorithms in a σ‐co‐ordinate ocean model. International Journal for Numerical Methods in Fluids, 18, 361−383, https://doi.org/10.1002/fld.1650180404.
    Morinishi, Y., T. S. Lund, O. V. Vasilyev, and P. Moin, 1998: Fully conservative higher order finite difference schemes for incompressible flow. J. Comput. Phys., 143, 90−124, https://doi.org/10.1006/jcph.1998.5962.
    Purser, R. J., and L. M. Leslie, 1988: A semi-implicit, semi-Lagrangian finite-difference scheme using hligh-order spatial differencing on a nonstaggered grid. Mon. Wea. Rev., 116, 2069−2080, https://doi.org/10.1175/1520-0493(1988)116<2069:ASISLF>2.0.CO;2.
    Reinecke, P. A., and D. Durran, 2009: The overamplification of gravity waves in numerical solutions to flow over topography. Mon. Wea. Rev., 137, 1533−1549, https://doi.org/10.1175/2008MWR2630.1.
    Sanderson, B., and G. Brassington, 2002: Fourth- and fifth-order finite-difference methods applied to a control-volume ocean model. J. Atmos. Oceanic Technol., 19, 1424−1441, https://doi.org/10.1175/1520-0426(2002)019<1424:FAFOFD>2.0.CO;2.
    Schär, C., D. Leuenberger, O. Fuhrer, D. Lüthi, and C. Girard, 2002: A new terrain-following vertical coordinate formulation for atmospheric prediction models. Mon. Wea. Rev., 130, 2459−2480, https://doi.org/10.1175/1520-0493(2002)130<2459:ANTFVC>2.0.CO;2.
    Shu, Q., and Coauthors, 2020: A HIGH order positive-definite conservative multi-moment center constrained finite volume transport model. Acta Meteorologica Sinica, 78, 655−678, https://doi.org/10.11676/qxxb2020.039. (in Chinese with English abstract
    Sun, J. A., W. Jia, and G. Z. Wu, 2014: A higher accurate compact difference scheme on non-uniform grid. Journal of Northwest Normal University (Natural Science), 50, 31−35, https://doi.org/10.3969/j.issn.1001-988X.2014.04.006. (in Chinese with English abstract
    Vichnevetsky, R., 1987: Wave propagation and reflection in irregular grids for hyperbolic equations. Applied Numerical Mathematics, 3, 133−166, https://doi.org/10.1016/0168-9274(87)90009-2.
    Xu, D. S., and D. H. Chen, 2020: A vertical second-order difference scheme for non-uniformly distributed layers and its application in GRAPES model. Chinese Journal of Atmospheric Sciences, 44, 975−983, https://doi.org/10.3878/j.issn.1006-9895.1906.19145. (in Chinese with English abstract
    Xu, D. S., Z. T. Chen, S. X. Zhong, Y. J. Wen, and D. D. Xie, 2015: The limitation of cloud base mass flux in cumulus parameterization and its application in a high-resolution model. Journal of Tropical Meteorology, 21, 401−412, https://doi.org/10.3969/j.issn.1004-4965.2014.03.001. (in Chinese with English abstract
    Xue, J. S., and D. H. Chen, 2008: The Scientific Design and Application of the Next Generation of Numerical Weather Prediction System (GRAPES). Science Press, 132−136. (in Chinese)
    Yang, J. H., J. Q. Song, J. P. Wu, K. J. Ren, and H. Z. Leng, 2015: A high-order vertical discretization method for a semi-implicit mass-based non-hydrostatic kernel. Quart. J. Roy. Meteor. Soc., 141, 2880−2885, https://doi.org/10.1002/qj.2573.
  • [1] MIAO Yucong, LIU Shuhua, CHEN Bicheng, ZHANG Bihui, WANG Shu, LI Shuyan, 2013: Simulating Urban Flow and Dispersion in Beijing by Coupling a CFD Model with the WRF Model, ADVANCES IN ATMOSPHERIC SCIENCES, 30, 1663-1678.  doi: 10.1007/s00376-013-2234-9
    [2] Liu Shikuo, Peng Weihong, Huang Feng, Chi Dongyan, 2002: Effects of Turbulent Dispersion on the Wind Speed Profile in the Surface Layer, ADVANCES IN ATMOSPHERIC SCIENCES, 19, 794-806.  doi: 10.1007/s00376-002-0045-5
    [3] Ji Zhongzhen, Li Jing, 1998: A High-Order Compact Scheme with Square-Conservativity, ADVANCES IN ATMOSPHERIC SCIENCES, 15, 580-584.  doi: 10.1007/s00376-998-0034-4
    [4] LI Xingliang, CHEN Dehui, PENG Xindong, XIAO Feng, CHEN Xiongshan, 2006: Implementation of the Semi-Lagrangian Advection Scheme on a Quasi-Uniform Overset Grid on a Sphere, ADVANCES IN ATMOSPHERIC SCIENCES, 23, 792-801.  doi: 10.1007/s00376-006-0792-9
    [5] Pengfei WANG, 2017: A High-Order Spatiotemporal Precision-Matching Taylor-Li Scheme for Time-Dependent Problems, ADVANCES IN ATMOSPHERIC SCIENCES, 34, 1461-1471.  doi: 10.1007/s00376-017-7018-1
    [6] Lin Wantao, Ji Zhongzhen, Wang Bin, 2001: Computational Stability of the Explicit Difference Schemes of the Forced Dissipative Nonlinear Evolution Equations, ADVANCES IN ATMOSPHERIC SCIENCES, 18, 413-417.  doi: 10.1007/BF02919320
    [7] DUAN Yihong, WU Rongsheng, YU Hui, LIANG Xudong, Johnny C L CHAN, 2004: The Role of -effect and a Uniform Current on Tropical Cyclone Intensity, ADVANCES IN ATMOSPHERIC SCIENCES, 21, 75-86.  doi: 10.1007/BF02915681
    [8] Zhenhua HUO, Wansuo DUAN, Feifan ZHOU, 2019: Ensemble Forecasts of Tropical Cyclone Track with Orthogonal Conditional Nonlinear Optimal Perturbations, ADVANCES IN ATMOSPHERIC SCIENCES, 36, 231-247.  doi: 10.1007/s00376-018-8001-1
    [9] Rui LYU, Fei HU, Lei LIU, Jingjing XU, Xueling CHENG, 2018: High-Order Statistics of Temperature Fluctuations in an Unstable Atmospheric Surface Layer over Grassland, ADVANCES IN ATMOSPHERIC SCIENCES, 35, 1265-1276.  doi: 10.1007/s00376-018-7248-x
    [10] Shi Neng, Chen Jiyi, 1986: QUADRATIC DISCRIMINATION THROUGH ORTHOGONAL TRANSFORMATION AND ITS APPLICATION TO LONG-RANGE FORECASTING OF DROUGHT AND EXCESSIVE RAINFALL, ADVANCES IN ATMOSPHERIC SCIENCES, 3, 125-133.  doi: 10.1007/BF02680051
    [11] Jia Xinyuan, Ye Zhuojia, 1990: The Impact of Soil Moisture on Dispersion-Related Characteristics, ADVANCES IN ATMOSPHERIC SCIENCES, 7, 441-452.  doi: 10.1007/BF03008874
    [12] Yu Zhihao, Chen Liangdong, 1985: THE INFLUENCE OF HORIZONTALLY NON-UNIFORM HEATING UPON THE DEVELOPMENT OF STRONG CONVECTIVE MESOSCALE DISTURBANCES, ADVANCES IN ATMOSPHERIC SCIENCES, 2, 347-358.  doi: 10.1007/BF02677251
    [13] GAO Zhiqiu, BIAN Lingen, CHEN Zhigang, Michael SPARROW, ZHANG Jiahua, 2006: Turbulent Variance Characteristics of Temperature and Humidity over a Non-uniform Land Surface for an Agricultural Ecosystem in China, ADVANCES IN ATMOSPHERIC SCIENCES, 23, 365-374.  doi: 10.1007/s00376-006-0365-y
    [14] MIAO Yucong, LIU Shuhua, ZHENG Hui, ZHENG Yijia, CHEN Bicheng, WANG Shu, 2014: A Multi-Scale Urban Atmospheric Dispersion Model for Emergency Management, ADVANCES IN ATMOSPHERIC SCIENCES, 31, 1353-1365.  doi: 10.1007/s00376-014-3254-9
    [15] Xiaoning XIE, He ZHANG, Xiaodong LIU, Yiran PENG, Yangang LIU, 2018: Role of Microphysical Parameterizations with Droplet Relative Dispersion in IAP AGCM 4.1, ADVANCES IN ATMOSPHERIC SCIENCES, 35, 248-259.  doi: 10.1007/s00376-017-7083-5
    [16] Xiao Jingwei, Lu Naiping, Zhou Mingyu, 1985: APPLICATION OF SODAR SOUNDING TO ATMOSPHERIC DISPERSION-MIXING DEPTH AND CONCENTRATION AT THE GROUND, ADVANCES IN ATMOSPHERIC SCIENCES, 2, 63-71.  doi: 10.1007/BF03179738
    [17] Liu Shikuo, Huang Wei, Rong Pingping, 1992: Effects of Turbulent Dispersion of Atmospheric Balance Motions of Planetary Boundary Layer, ADVANCES IN ATMOSPHERIC SCIENCES, 9, 147-156.  doi: 10.1007/BF02657505
    [18] Wang Tijian, Li Zongkai, Sun Zhaobo, 1998: Study on Conventional Atmospheric Dispersion Models in China, America and Canada, ADVANCES IN ATMOSPHERIC SCIENCES, 15, 523-530.  doi: 10.1007/s00376-998-0029-1
    [19] HU Wei, ZHONG Qin, 2010: Using the OSPM Model on Pollutant Dispersion in an Urban Street Canyon, ADVANCES IN ATMOSPHERIC SCIENCES, 27, 621-628.  doi: 10.1007/s00376-009-9064-9
    [20] JIANG Yujun, LIU Huizhi, SANG Jianguo, ZHANG Boyin, 2007: Numerical and Experimental Studies on Flow and Pollutant Dispersion in Urban Street Canyons, ADVANCES IN ATMOSPHERIC SCIENCES, 24, 111-125.  doi: 10.1007/s00376-007-0111-0

Get Citation+

Export:  

Share Article

Manuscript History

Manuscript received: 06 May 2020
Manuscript revised: 14 September 2020
Manuscript accepted: 10 November 2020
通讯作者: 陈斌, bchen63@163.com
  • 1. 

    沈阳化工大学材料科学与工程学院 沈阳 110142

  1. 本站搜索
  2. 百度学术搜索
  3. 万方数据库搜索
  4. CNKI搜索

Properties of High-Order Finite Difference Schemes and Idealized Numerical Testing

    Corresponding author: Daosheng XU, dsxu@gd121.cn
  • 1. Guangzhou Institute of Tropical and Marine Meteorology/Key Laboratory of Regional Numerical Weather Prediction, Guangzhou 510640, China
  • 2. National Meteorological Center, Beijing 100081, China

Abstract: Construction of high-order difference schemes based on Taylor series expansion has long been a hot topic in computational mathematics, while its application in comprehensive weather models is still very rare. Here, the properties of high-order finite difference schemes are studied based on idealized numerical testing, for the purpose of their application in the Global/Regional Assimilation and Prediction System (GRAPES) model. It is found that the pros and cons due to grid staggering choices diminish with higher-order schemes based on linearized analysis of the one-dimensional gravity wave equation. The improvement of higher-order difference schemes is still obvious for the mesh with smooth varied grid distance. The results of discontinuous square wave testing also exhibits the superiority of high-order schemes. For a model grid with severe non-uniformity and non-orthogonality, the advantage of high-order difference schemes is inapparent, as shown by the results of two-dimensional idealized advection tests under a terrain-following coordinate. In addition, the increase in computational expense caused by high-order schemes can be avoided by the precondition technique used in the GRAPES model. In general, a high-order finite difference scheme is a preferable choice for the tropical regional GRAPES model with a quasi-uniform and quasi-orthogonal grid mesh.

摘要: 基于泰勒展开构造高阶精度有限差分方案很早就成为了计算数学界的热门话题,但是它在成熟的数值天气预报模式中仍然很少被应用。为了将高阶精度有限差分方案应用于GRAPES(Global/Regional Assimilation and Prediction System)模式,本文通过理想试验对高阶精度有限差分方案的相关性质进行了分析。一维重力波的线性分析结果表明,在高阶精度差分方案下不同跳点网格方案的影响很小。一维平流试验结果表明:对于网格距离缓慢变化的非均匀网格,高阶差分方案的改进效果仍然十分明显,不连续方波试验的结果也表明了高阶方案的优越性。在地形追随坐标系下的二维质量平流试验结果表明,当模式网格的非均匀性和非正交性变得很明显时,高阶方案的改进效果变得不是很明显。通过在GRAPES模式中采用预条件技术,可以有效地避免高阶方案引起计算量增加的问题。总而言之,对于准均匀和准正交网格的热带区域GRAPES模式来说,发展基于高阶精度有限差分方案的动力框架是一种可行的选择。

    • Numerical differentiation is an elementary issue in numerical analysis. Theoretical research in computational mathematics has demonstrated the superior performance of higher-order difference schemes in reducing the truncation error and improving the ability of resolving high-frequency waves (Morinishi et al., 1998; Li, 2005; Lin and Zhan, 2008). Construction of high-order finite difference schemes falls into two categories: (1) The traditional finite scheme, which can be directly expressed by values on the computational grid. However, the number of grid points used for the computation stencil will be increased for higher-order schemes, and the computational efficiency may be reduced. (2) The compact difference scheme, which can limit the number of grid points used in the computation stencil to less than three, regardless of the order of difference schemes. Its weakness lies in the difference scheme cannot be expressed by grid values explicitly. As a result, a set of linear tridiagonal equations need to be solved (Sun et al., 2014).

      High-order difference schemes have been widely applied in ocean models. McCalpin (1994) compared 2nd-order and 4th-order pressure gradient algorithms in a sigma coordinate ocean model and found that the higher-order scheme was helpful to improve the accuracy and stability of the model. Chu and Fan (1997, 2000) further implemented a 6th-order difference scheme in a sigma ocean model to reduce the truncation error in calculating the horizontal pressure gradient term. A control-volume ocean model with a 4th- and 5th-order finite difference scheme was presented by Sanderson and Brassington (2002).

      The accuracy of discretization for dynamic equations in numerical weather prediction (NWP) is an important issue for its performance, so how to design accurate high-order schemes for NWP models has long been a research focus (Cullen and Davies, 1991; Lin and Rood, 1996; Yang et al., 2015). Schär et al. (2002) demonstrated the beneficial impact on reducing small-scale noise by higher-order difference schemes with an idealized advection test. Feng and Li (2007) developed a high-order upwind-biased difference scheme, and tested its computational performance with the one-dimensional advection equation and inviscid Burgers’ equation. A high-order positive-definite conservative multi-moment center constrained finite volume transport model was presented by Shu et al. (2020) to improve the moist transport in NWP models.

      In recent years, construction of dynamic cores with high accuracy has become one of the main international trends in developing new-generation NWP models. The truncation error of the GFDL finite volume cubed-sphere dynamical core (FV3, Lin, 2004 2008) reached 3rd order. Li et al. (2015) built a 3rd- and 4th-order multi-moment constrained finite-volume method and tested it with a global shallow-water model on the Yin–Yang grid. At present, a central difference scheme with 2nd-order accuracy is still applied for the horizontal discretization of the Global-Regional Assimilation and Prediction System (GRAPES) model, which severely limits its computational performance. It will be meaningful to introduce a higher-order difference scheme for the horizontal discretization in the GRAPES model.

      Considering the difficulty of coupling the compact difference scheme with a semi-implicit and semi-Lagrange time discretization scheme in the GRAPES model, we adopted the traditional finite difference scheme to construct a higher-order dynamic core. As the application of high-order difference schemes in operational NWP models is still very rare, their properties need to be further investigated before being implemented in the GRAPES model, which is the main purpose of this paper. The equations of high-order schemes based on Taylor series is displayed in section 2. Dispersion properties of high-order schemes are presented in section 3, and the performance under non-uniform and non-orthogonal grid conditions is presented in sections 4 and 5. Section 6 discusses the impact of high-order finite difference schemes on computational efficiency when implemented in the GRAPES model. Finally, a summary and discussion are provided in section 7.

    2.   Equations of high-order finite difference schemes
    • 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 gridsStaggered 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.

      Figure 1.  Fourier analysis of error for the first derivative approximation with different schemes under an unstaggered grid.

    3.   Dispersion properties based on the one-dimensional gravity wave equation
    • Dispersion of ageostrophic atmospheric energy with gravity waves is the physical mechanism of geostrophic adjustment. The dispersion property is an important criterion to evaluate the performance of the model dynamic core. In this paper, a one-dimensional gravity wave equation (Arakawa and Lamb, 1977) is adopted to investigate the dispersion properties of high-order difference schemes:

      where u and v are the horizontal components of wind in the x and y directions, h is the depth of fluid, $ f $ is a constant Coriolis parameter, $ g $ is gravity, and H is the mean of h. If the solution is assumed proportional to $ {\rm{exp}}\left[i(kx-\nu t)\right] $ (k is the wave number), then the angular frequency $ \nu $ for the inertia gravity is given by

      where L is the wavelength in the x direction.

      The effect of space discretization error can now be examined. The following frequencies are obtained for Arakawa-A and Arakawa-C grids (the radius of deformation $ \lambda $ defined by $ {\sqrt{gH}}/{f} $, and $ d $ is the grid size):

      A grid + 2nd order:

      A grid + 4th order:

      A grid + 6th order:

      C grid + 2nd order:

      C grid + 4th order:

      C grid + 6th order:

      As shown by Fig. 2, the frequencies get closer to the true solution when higher-order difference schemes are applied, both in the A grid and C grid for $ \lambda /d=2 $. The dispersion error of the 2nd-order scheme in the A grid is significant for low wavenumber area (wavelength longer than four grid-interval, as indicated by the blue rectangle in Fig. 2), while the 4th- and 6th-order schemes in the A grid are as good as the C grid. For the grid scale wave ($ L/d<4 $), the dispersion error of the C grid is much better than that of the A grid. Considering high-frequency waves cannot be resolved well by the model grid, they need to be filtered out to avoid nonlinear instability. Therefore, poor dispersion properties of the A grid at the grid scale are not problematic as long as such waves can be selectively removed. This conclusion is consistent with the research of Chen et al. (2018).

      Figure 2.  The dependency of (nondimensional) frequency $ \upsilon /f $ on the wavelength for the case $ \lambda /d=2 $.

    4.   One-dimensional advection equation test
    • The equations displayed in Table 1 are derived under the hypothesis of a uniform grid, but this hypothesis is not always strictly satisfied in NWP models. For example, the grid interval of the latitude–longitude grid applied in the GRAPES model will get smaller at higher latitude, and the distribution of vertical model levels are also designed to be non-uniform (Xue and Chen, 2008). The accuracy of higher-order difference schemes will be degenerated under a non-uniform grid (Xu and Chen, 2020).

      The performance of higher-order schemes under a non-uniform grid is investigated with the following one-dimensional advection equation based on an unstaggered grid:

      Here, $ u $ is an arbitrary scalar, and $ \alpha $ is defined as a constant.

    • When the initial value is set as $ u\left(x,0\right)= A{\rm{sech}}\left(kx\right) $, the true solution of Eq. (11) can be written as $ u\left(x,t\right)= A{\rm{sech}} $$ \left[k(x+\alpha t)\right] $, where A is a parameter defined as a constant, and $ {\rm{sech}} $ means the hyperbolic secant function (Li, 2012). This equation describes the translational motion of a solitary wave being advected to the left, and the choice of the inverse hyperbolic secant function was based on the consideration of testing the high-order scheme with a modal, smooth solution. The parameters are set as follows: A = 1.0, k = 0.5, $ \alpha $ = 2.0, $ x\in \left[-40,20\right] $, and an Euler scheme is adopted for time integration with the timestep $ \Delta t $ =1×10−3. Three sets of grid configuration are designed as follows to assess the performance of high-order schemes under the non-uniform grid:

      Uniform grid:

      Nonuniform grid − 1:

      Nonuniform − grid − 2:

      The grid spacing is gradually reduced in Non-uniform-grid-1 from left to right, while the opposite is the case in Non-uniform-grid-2. As shown in Fig. 3, the dissipation and phase errors of the nonuniform and uniform grid are very close to each other, which implies that the dissipation and dispersion properties of higher-order difference schemes will not be degenerated by the weak uniformity of grids. The improvement from the 2nd-order scheme to the 4th-order scheme is most obvious, while the difference between the 4th-order scheme and the 6th-order scheme is very small. This is consistent with the result of Fourier analysis in section 2. The results of the tests for nonuniform-grid-1 and nonuniform-grid-2 are very similar to each other, which also supports the conclusion that weak non-uniformity will not influence the performance of high-order difference schemes.

      Figure 3.  Numerical test of the one-dimensional advection equation at t = 10 s in (a) a uniform grid, (b) non-uniform grid-1, and (c) non-uniform grid-2.

      In general, the higher-order difference scheme are still effective for the non-uniform grid if the variation of grid distance is smooth, so they are applicable for the longitude–latitude grid of the GRAPES model and the non-uniform vertical difference process.

    • To study the performance of high-order difference schemes under more discontinuous conditions, a square wave test was further performed. In the square wave test, the initial value of the one-dimensional advection equation [Eq. (11)] was set as

      The parameters were set the same as in section 4.1, and the advection test was performed under a uniform grid. Figure 4 shows the simulated square signals at t = 1 s. The overshoot and undershoot noise were alleviated by the higher-order (4th- and 6th-order) schemes. This implies that the advantages of high-order schemes can be extended to the non-modal solutions, although the theoretical analysis is difficult.

      Figure 4.  The result of the square test at t = 1 s.

    5.   Advection test under a terrain-following coordinate
    • The performance of high-order difference schemes under a vertical non-orthogonal grid with the terrain is further investigated with an idealized advection test (Schär et al., 2002) in this section. It provides a somewhat severe way of testing the effect of non-uniformity on a numerical scheme, as the non-orthogonality and non-uniformity of a terrain-following coordinate is much more severe than it will be on any horizontal grid.

      The two-dimensional advection equation under a terrain-following vertical coordinate can be written as (Li et al., 2012)

      where $ \rho $ is the density of air, $ z $ is the geometric height, $ \hat{z} $ is the transformed height of $ z $ under the terrain-following coordinate, $ \varphi $ is the stream function defined by $ \varphi \left(z\right)= -{\int }_{0}^{z} $$ u\left(z\right){\rm{d}}z $, $ u $ denotes the wind speed along the x direction, and $ {J}_{b}^{-1}=\partial z/\partial \hat{z} $ is the parameter for transformation. Variables $ \rho $ and $ \varphi $ in Eq. (12) are arranged in a staggered grid, and a leap frog scheme is adopted for time integration. The terrain-following vertical coordinate developed by Gal-Chen and Somerville (1975) is adopted in this paper, defined as $ \hat{z}={Z}_{\rm{T}}\dfrac{z-{Z}_{\rm{s}}\left(x\right)}{{Z}_{\rm{T}}{-Z}_{\rm{s}}\left(x\right)} $, where $ {Z}_{\rm{T}} $ is the model top and $ {Z}_{\rm{s}}\left(x\right) $ is the topographic height. The topography $ {Z}_{\rm{s}}\left(x\right) $ is specified as the product of a large-scale mountain $ {Z}_{\rm{s}}^{*}\left(x\right) $ of half width r0, and a small-scale wavelike perturbation of wavelength $ {L}_{0} $; that is,

      where

      and where $ {z}_{0} $ denotes the maximum height of the obstacle. In the following test we use $ {z}_{0} $ = 3 km, $ {r}_{0} $ = 25 km, and $ {L}_{0} $ = 8 km. As shown in Fig. 5, the influence of the terrain on vertical levels is significant in the low level, and gradually disappears near the model top, so the computational mesh is non-orthogonal above the terrain.

      Figure 5.  Schematic diagram of the non-orthogonal grid mesh for the two-dimensional advection test (black shaded area denotes the topographic obstacle).

      In the idealized advection test, the topographic obstacle is submerged within a stagnant air mass, but aloft there is a uniform and purely horizontal flow directed from left to right (shown in Fig. 6). The anomaly is assigned the shape

      Figure 6.  Vertical cross section for the idealized two-dimension advection test: (a) vertical distribution of velocity u; (b) analytical solution of the density as advected for three instances.

      with $r=\sqrt{{\left[(x-{x}_{0})/{R}_{x}\right]}^{2}+{\left[(z-{z}_{0})/{R}_{z}\right]}^{2}}$, and initialized at $ {t}_{1} $ = 0 at location ($ {x}_{0},{z}_{0} $) = (−50 km, 9 km) with amplitude $ {\rho }_{0} $ = 1 and half widths $ {R}_{x} $ = 25 km, $ {R}_{z} $ = 3 km. At time $ {t}_{2} $ = 2500 s, the anomaly is centered right over the mountain and the integrations are terminated at $ {t}_{3} $ = 5000 s. The sheared wind profile is specified as

      where $ {u}_{0} $ = 10 m s−1, $ {z}_{1} $ = 4 km, $ {z}_{2} $ = 5 km. The time step is 25 s, with grid increments of $ \Delta x $ = 1 km and $ \Delta z $ = 500 m. The total number of vertical levels is 51 and the top height is 25 km.

      The error fields for the 2nd-, 4th-, and 6th-order difference schemes are displayed in Fig. 7. As the anomaly is located over the obstacle (at t = 5000 s), the reduction of spurious small-scale distortion errors caused by higher-order schemes is obvious at the right-upper side of the obstacle (see Figs. 7a, c and e), although the orthogonality of the grid is partly influenced by the terrain. The improvement is much more apparent when the computational accuracy is increased from 2nd to 4th order. When the non-orthogonality gets much more severe, the forecast error (see the error above the terrain at t = 10000 s in Figs. 7b, d and f) is almost the same for different schemes.

      Figure 7.  Numerical error of difference schemes for the two-dimensional advection equation: (a, b) 2nd-order scheme; (c, d) 4th-order scheme; (e, f) 6th-order scheme; (a, c, e) t = 5000 s; (b, d, f) t = 10000 s.

      In general, the performance of high-order difference schemes highly depends upon the orthogonality of the model grid, and the advantage of high-order difference schemes can still be retained when the grid is nearly orthogonal.

    6.   Influence on the computational efficiency based on the forecast equation of the GRAPES model
    • 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.

      CoefficientMagnitudeCoefficientMagnitude
      B1100B16B1910−4
      B2B410−2B20B2310−3
      B5B910−8B24B3510−8
      B10, B1510−1B36B4310−5
      B11B1410−5B44B4710−5

      Table 2.  Magnitude of coefficients in Eq. (27).

    7.   Conclusion
    • To go beyond the well-worn traditional linear shallow-water uniform-grid analyses into somewhat more realistic testing frameworks that consider situations of use in comprehensive weather and climate models, the properties of higher-order difference schemes were investigated for application in the GRAPES model in this paper. The one-dimensional gravity wave equation was used to study the dispersion properties of high-order schemes. Obvious reduction in the dispersion error was found in the higher-order schemes with an Arakawa-A grid for those well-resolved waves, especially from 2nd- to 4th-order accuracy, while the improvement for the Arakawa-C grid was not so apparent. Based on the discovery that the dispersion errors are almost equivalent for the A- and C-grid under 4th- and 6th-order schemes, the possibility of an unstaggered GRAPES dynamical core, which is more convenient to couple with physical processes (Purser and Leslie, 1988), will be further investigated in the future. The preferable properties of high-order difference schemes are still obvious under a non-uniform grid when the variation of grid distance is smooth. The square wave test also indicated the superiority of high-order schemes. For a grid mesh with severe non-orthogonality and non-uniformity, the advantages of high-order schemes are not so obvious, as demonstrated by the results of idealized two-dimensional advection tests. The number of grid points used in the computational stencil will be increased for higher-order schemes, but it will not reduce the computational efficiency of the GRAPES model when the precondition technology being applied to reduce the magnitude of condition number and improving the convergence rate of the GCR.

      In general, a high-order finite difference scheme is a feasible choice for a high-resolution, longitude–latitude grid model with a nearly uniform and orthogonal regional domain—for example, the Tropical Regional Area Model System (TRAMS; Xu et al., 2015) developed by the Guangzhou Institute of Tropical and Marine Meteorology, based on the regional version of GRAPES.

      Although the result of the two-dimensional advection test under a terrain-following coordinate is in a similar spirit to the analysis of Reinecke and Durran (2009), it can still be misleading since reflections in the one-way advection equation are nearly always into grid-scale wavelengths that are easily diffused for a relatively long-term simulation (Harris and Durran, 2010). Extending a similar test to a more dynamically active case supporting upstream physical wave propagation (Vichnevetsky, 1987) will be more meaningful. A complete study of the performance by implementing high-order schemes in TRAMS will be the next stage in our work. A general finite high-order difference scheme applicable in a non-uniform grid will also be investigated in the future.

      Acknowledgements. This work was supported by the National Natural Science Foundation of China (Grant No. U1811464) . We thank the two anonymous reviewers and the editors for their comments, which greatly improved this paper.

      APPENDIX ADerivation of High-Order Difference Schemes based on the Taylor Series Expansion Method

      The general finite difference equations with arbitrary order accuracy are deduced first, followed by the specific forms of the 2nd-, 4th- and 6th-order schemes.

      1.    Equations of traditional finite difference schemes with       arbitrary order accuracy

      The method to deduce high-order difference schemes at one point can be summarized as follows: the number of grid points needed for the required accuracy is determined first; then the expression of derivatives including indefinite coefficients are deduced; and finally these indefinite coefficients will be obtained by solving the set of simultaneous equations based on Taylor series expansion.

      The following 2n + 1 grid will be used to contract 2n-order accuracy schemes for the first derivative:

      The expansion of derivations can be written as (with coefficients undetermined):

      The function $ f $ is then expanded at point $ i $ with a $ 2n $-order Taylor series:

      $ 2n+1 $ equations are obtained by substituting Eq. (A2) into Eq. (A1), and the corresponding $ 2n+1 $ indefinite coefficients can be solved for the detailed expression of the difference scheme. Let $ {\left({{\partial }^{0}f}/{\partial {x}^{0}}\right)}_{i}={f}_{i} $ (zero-order derivations of $ f $ is itself), and (A2) can be expanded as follows (only the first three terms are displayed):

      2.    Second-order difference scheme

      Let $ n=1 $ in Eqs. (A1)–(A2), and the expressions of the second-order scheme can be obtained. The first derivative equation in Eq. (A1) can be rewritten as follows:

      Substituting Eq. (A3) and Eq. (A6) into Eq. (A9), and omitting the remainder terms, we can obtain:

      The following coefficients can be derived by equaling the corresponding terms in Eq. (A10):

      The 2nd-order finite difference scheme for the first derivative can now be expressed as:

      3.    Fourth-order difference scheme

      Let n = 2 in Eqs. (A1)–(A2), and the expression of the 4th-order scheme can be obtained. The expansion of Eq. (A1) is

      Substituting Eqs. (A3)–(A4) and Eqs. (A6)–(A7) into Eq. (A13),

      where

      The 4th-order finite difference scheme for the first derivative can now be expressed as:

      4.    Sixth-order difference scheme

      Let n = 3 in Eqs. (A1)–(A2), and the expression of the 6th-order scheme can be obtained. The expansion of Eq. (A1) is

      Substituting Eqs. (A3)–(A5) and Eqs. (A6)–(A8) into Eq. (A17), and omitting the remainder terms, we can obtain:

      where

      The 6th-order finite difference scheme for the first derivative can now be expressed as:

      For the staggered grid, the following 2nd-, 4th- and 6th-order finite difference schemes can be obtained with a similar method:

    APPENDIX B Fourier Analysis of Error for Finite Difference Schemes
    • For an arbitrary periodic function $ f\left(x\right) $ with its wavenumber defined as $ \alpha $, the Fourier transform (represented by F{}) of $ f\left(x\right) $ and $ {\partial f\left(x\right)}/{\partial x} $ is

      According to the properties of Fourier transition, we can get

      where $ \Delta x $ is the grid distance. The differencing of the 2nd-order approximation for the first derivative under an unstaggered grid can be expressed as:

      and its Fourier analysis error can be obtained by performing the Fourier transform on both sides of Eq. (B5):

      Hence,

      With the wavelength defined as $ L={2\pi }/{\alpha } $, Eq. (B7) can be rewritten as

      where $ \tilde L $ is the modified wavelength for the difference scheme with 2nd-order accuracy.

      The following Fourier analysis error of the 4th- and 6th-order approximations can be derived with a similar method:

      4th-order scheme:

      6th-order scheme:

Reference

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return