2022 Volume 100 Issue 2 Pages 445-469
In the discretization of the primitive equations for numerical calculations, a formulation of a three-dimensional spectral model that uses the spectral method not only in the horizontal direction but also in the vertical direction is proposed. In this formulation, the Legendre polynomial expansion is used for the vertical discretization. It is shown that semi-implicit time integration can be efficiently done under this formulation. Then, a numerical model based on this formulation is developed and several benchmark numerical calculations proposed in previous studies are performed to show that this implementation of the primitive equations can give accurate numerical solutions with a relatively small degrees of freedom in the vertical discretization. It is also shown that, by performing several calculations with different vertical degrees of freedom, a characteristic property of the spectral method is observed in which the error of the numerical solution decreases rapidly when the number of vertical degrees of freedom is increased. It is also noted that an alternative to the sponge layer can be devised to suppress the reflected waves under this formulation, and that a “toy” model can be derived as an application of this formulation, in which the vertical degrees of freedom are reduced to the minimum.
In recent years, with the improvement of computational power, nonhydrostatic atmospheric models have become available even for the entire globe (e.g., Stevens et al. 2019). However, General Circulation Models (GCMs) based on the primitive equations, which include hydrostatic equation, is still used for calculations at forecast centers where results must be obtained within a limited computational time and for climate research where time-integration over a long period of time is required. In addition to the realistic GCMs used in these fields, mechanistic GCMs, which omit the physical processes and extract only the dynamics, are now widely used in researches of atmospheric dynamics (e.g., Boljka et al. 2018). The dynamical core of most GCMs has been implemented using the spectral method with spherical harmonics expansion in the horizontal direction and the finite difference method in the vertical direction. It is considered to be a relatively mature technology. However, there is no general guiding principle for how the grid points should be distributed in the vertical direction. Additionally, the use of the finite difference method in the vertical direction causes a truncation error. If a more accurate discretization is possible with the same discretization degrees of freedom, it can lead to an improvement in computational efficiency. One such solution is to use the spectral method also for the vertical direction. However, there have been very few attempts to do so in the past. To the best of the authors' knowledge, there have been only two attempts. One is the formulation proposed by Machenhauer and Daley (1974) using the Legendre polynomial expansion in the vertical direction, and the other is the formulation proposed by Kuroki and Murakami (2015) using the Chebyshef polynomial expansion in the vertical direction. Although the formulation by Machenhauer and Daley (1974) was a pioneering attempt, there are ad hoc points regarding the avoidance of singularity at the top of the atmosphere as we will see later in this paper. Additionally, since Machenhauer and Daley (1974) was published more than 40 years ago, modern benchmark calculations such as those proposed by Held and Suarez (1994) and Polvani et al. (2004) were not conducted. Conversely, in Kuroki and Murakami (2015), modern benchmark calculations were performed, and it was shown that using the spectral method in the vertical direction yielded results consistent with those obtained via the finite difference method. However, the details of the discretization, including the treatment of the singularity problem at the top of the atmosphere, were not clarified in Kuroki and Murakami (2015). Moreover, the application of the semi-implicit method in this formulation was not attempted in Kuroki and Murakami (2015).
In the present manuscript, we propose a new formulation of the spectral method using the Legendre polynomial expansion in the vertical direction, which avoids the singularity at the top of the atmosphere in the expansion itself. We also describe how the semi-implicit method can be applied under this formulation. On the basis of this formulation, a numerical model is developed and used to perform modern benchmark calculations to show that this implementation of the primitive equations can give accurate numerical solutions with relatively small degrees of freedom in the vertical discretization. Furthermore, it is also noted that an alternative to the sponge layer can be devised to suppress the reflected waves under this formulation, and that a “toy” model can be derived as an application of this formulation, in which the vertical degrees of freedom are reduced to the minimum.
The remainder of the present manuscript is organized as follows. Section 2 describes the governing equations and nondimensionalization of them. In Section 3, the new formulation of the three-dimensional spectral method is proposed. In Section 4, how the semi-implicit method can be applied under this formulation is described. In Section 5, we present the results of modern benchmark calculations using the numerical model on the basis of the formulation proposed in the present manuscript. Finally, a discussion and summary are presented in Section 6. Additionally, an alternative to the sponge layer to suppress the reflected waves under this formulation is proposed in Appendix A, and how a “toy” model can be derived as an application of this formulation is described in Appendix B.
As the governing equations, we use the primitive equations in σ -coordinates on a rotating sphere [see Durran (2010) for the derivation]. The length scale, the temperature scale, and the time scale are nondimensionalized by using the radius of the sphere (a*), the reference temperature (T0*), and , respectively. Here, R* is the gas constant for the dry atmosphere, and the subscript, *, denotes that the parameter with this subscript is a dimensional one. Based on this nondimensionalization, the velocity scale and the geopotential are nondimensionalized by using and R* T0*, respectively. The primitive equations with the nondimensionalization described above can be written as follows:
We expand the dependent variables, δ, ζ, τ, and s, by using the spherical harmonics in the horizontal direction and the Legendre polynomials in the vertical (σ) direction as follows:
In the expansion of τ′, the second term of the righthand side of (13), the truncation wavenumber of l is set to L − 1 in order to consider the fact that the entire second term is multiplied by σ, so that the highest order of σ in the term is L, the same as in the expansions of ζ and δ, which are defined by (12) and (11), respectively. Also, if the truncation wavenumber of l is L in the expansion of the part corresponding to τ′, then from (10), Φ′ has components up to L + 1 order for σ. In that case, for Φ′ → Φ′s (σ → 1) to be satisfied, all the components of Φ′ up to L + 1 order must be considered. Nevertheless, since the expansion of δ is up to order L, constraints on (1) to derive the evolution equations for the coefficients of δn, m, l are only up to order L [see (18) below], which means that ∂δ/∂t = 0 cannot be satisfied at σ = 1 even if u = v = s = Φ′s = 0. This also implies that the truncation wavenumber of l in the expansion of τ′ should be L − 1. In Appendix A.4, we will explain another reason for this choice of the truncation wavenumber.
Now, by applying the Galerkin method to the governing equations, the time-derivatives of δn, m, l, ζn, m, l, τ̄l, τ′n, m, l, and sn, m are determined. Letting the right-hand sides of (1)–(4) be expressed formally as Fδ (λ, μ, σ, t), Fζ (λ, μ, σ, t), Fτ (λ, μ, σ, t), and Fs (λ, μ, t), respectively, the time-derivatives of δn, m, l, ζn, m, l, τ̄l, and sn, m are determined as follows:
Calculations of σ-derivatives in (3), (5), and (6) can be done by noting that
In the equations (18)–(22) that determine the time-derivatives of the dependent variables, the transform method is used to evaluate the integral on the right-hand side. That is, we introduce grid points in the horizontal direction as, (λi, μj) (i = 1, 2, ..., I; j = 1, 2, ..., J) and grid points in the the vertical direction as, σk (k = 1, 2, ..., K), to calculate the integral on the right-hand side by summing the weighted grid values.
For example, the right-hand side of (18) is calculated as follows:
We denote the vector that formally lumps all of the expansion coefficients (δn, m, l, ζn, m, l, τ̄l, τ′n, m, l, sn, m) together as u. Then, the time-evolution equations (1)–(4) are expressed formally as follows:
Now, denoting the components of the whole right-hand side of (34) corresponding to δn, m, l, τ′n, m, l, and sn, m by Rδn, m, l, Rτ′n, m, l, and Rsn, m, respectively, the simultaneous linear equation (34) to be solved can be expressed as follows:
This is an L × L pentadiagonal symmetric matrix. In the left-hand side of (57), (Bll′) is also an L × L pentadiagonal symmetric matrix, so that the entire coefficient matrix of τ′n, m, l′ is also an L × L pentadiagonal symmetric matrix. Thus, τ′n, m, l can be obtained by solving the simultaneous linear equations with an L × L pentadiagonal diagonal symmetric matrix as the coefficient matrix for each (n, m). From the obtained τ′n, m, l, we can obtain δn, m, l by using (54), and from the obtained δn, m, 0, sn, m can be obtained by (50).
We have now formulated the procedure for time-integration based on (32). However, since (32) is a three-step method, it is necessary to perform time-integration by some other means for two steps from the initial condition. Since the scheme (32) is a second-order scheme, the first two steps must also be calculated by a second-order scheme (or a higher-accuracy scheme). Here, for simplicity, we propose to integrate (31) with the following split-step method. First, the time-evolution by the operator L is done by using the implicit trapezoidal scheme for the time period of Δt/2. Then, the time-evolution by the operator f (u) is done by using Runge–Kutta method of second or higher order for the time period of Δt. Finally, the time-evolution by the operator L is done by using the implicit trapezoidal scheme again for the time period of Δt/2. This maintains the second-order accuracy in the time direction. In the present manuscript, we use a third-order three-stage scheme to consider the stability of the gravity-wave component. Since the time-evolution of the part of the implicit trapezoidal scheme is a time-evolution of 1/2 step, the scheme is expressed as follows:
As in the setting of Held and Suarez (1994), which we will discuss later, we often include a dissipation term in the right-hand side of (31) as follows:
In this section, we implement the three-dimensional spectral formulation of the primitive equations described so far as a numerical model, and check that it gives reasonable numerical solutions by using benchmark experimental settings proposed in previous studies. To check the effect of using the spectral method also in the vertical direction, we investigate the dependence of the computational accuracy on the discretization degrees of freedom in the vertical direction.
In the numerical calculations presented in this section, ispack-3.1.0 (https://www.gfd-dennou.org/arch/ispack/), which is designed based on Ishioka (2018), is used for the transform method described in Section 3.1.
5.1 Benchmark experiment based on Polvani et al. (2004)First, we calculate the time-evolution of baroclinic disturbances, which grow by baroclinc instaility of a mid-latitude zonal jet, based on the benchmark setting of Polvani et al. (2004).
In the benchmark setting of Polvani, et al. (2004), a baroclincally unstable mid-latitude zonal jet and a zonal temperature field, which is in the thermal wind balance with the jet, are given as the initial basic state. A Gaussian-like initial temperature disturbance is added to the unstable basic state, and the time-evolution of the whole system, including the growth of baroclinic disturbances, is calculated. For details of the benchmark settings, see Polvani et al. (2004). Figure 1 shows the time-evolution of the temperature field on the σ = 0.975 surface, corresponding to Fig. 2 in Polvani et al. (2004). While the horizontal truncation wavenumber is T341 and the number of the vertical levels for the finite difference scheme in the σ-coordinate is 20 for the calculation of Fig. 2 in Polvani et al. (2004), the horizontal truncation wavenumber is T170 and the vertical truncation wavenumber is 13 (the number of the vertical grids is 20) for the calculation of Fig. 1 in the present manuscript. The time step also differs: Δt = 150 s in Polvani et al. (2004) and Δt = 600 s in the present manuscript. Comparing Fig. 1 in the present manuscript and Fig. 2 in Polvani et al. (2004) shows almost perfect agreement on the fine structure of the contours of the temperature field at time t = 12 days. It is worth noting that the number of the vertical levels in the calculation for Fig. 2 in Polvani et al. (2004) is 20, but the vertical truncation wavenumber for the calculation of Fig. 1 in the present manuscript is 13. This means that although the vertical degrees of freedom used in the threedimensional spectral model here is smaller than that used in Polvani et al. (2004), the development pattern of the baroclinic disturbance can be calculated with almost the same accuracy using the three-dimensional spectral model.
Temperature fields on the σ = 0.975 surface at time t = 4, 6, 8, 10, and 12 days (unit is K) in the course of time-evolution of the growth of the baroclinic disturbance calculated on the basis of the benchmark setting in Polvani et al. (2004) by using the three-dimensional spectral model developed in the present manuscirpt. Contour interval is 2.5 K. The horizontal axis is longitude and the vertical axis is latitude. The time is shown in the upper right corner of each panel. The horizontal truncation wavenumber is T170 (512 × 256 grids), the vertical truncation wavenumber is 13 (20 grids), and the time step Δt is 600 s.
Next, to check the mean field of long time-evolution, meridional distribution of the zonal mean temperature field and the zonal mean zonal wind field for 1000-day mean from the 200th day of time-evolution based on the benchmark setting of Held and Suarez (1994) are calculated by using the three-dimensional spectral model developed in the present manuscript and shown in Fig. 2. The top panel of Fig. 2 corresponds to Fig. 1c in Held and Suarez (1994), and the bottom panel of Fig. 2 corresponds to Fig. 2 in Held and Suarez (1994).
Zonal mean field averaged over 1000 days from t = 200 days to t = 1200 days in the time-evolution with the benchmark setting based on Held and Suarez (1994). The horizontal axis is latitude and the vertical axis is σ . Top panel: zonal mean temperature field (K). Contour interval is 5K. Bottom panel: zonal mean eastward wind field (m s−1). Contour interval is 4 m s−1. In the calculation of the time-evolution, the horizontal truncation wavenumber is T85 (256 × 128 grids), the vertical truncation wavenumber is 13 (20 grids), and the time step is 720 s.
The calculation of Held and Suarez (1994) is done using the finite difference method with 144 × 72 grids or a spectral method with T63 for the discretization in the horizontal direction and the finite difference method with 20 levels in the vertical direction. For the calculation of Fig. 2 in the present manuscript, the horizontal truncation wavenumber is T85, the vertical truncation wavenumber is 13 (20 grids), the time step Δt is 720 s, and the initial disturbance is the same Gaussian-like temperature disturbance as that is used in Polvani et al. (2004). In this long-time average statistical equilibrium state, the meridional structures of the zonal mean temperature and zonal mean zonal wind fields are in good agreement with those obtained in Held and Suarez (1994), even though the vertical truncation wavenumber of the three-dimensional spectral model is 13, which is a small number of degrees of freedom, as in the case of the previous subsection.
5.3 Benchmark experiment based on Jablonowski and Williamson (2006)At the end of the benchmark tests, we perform numerical calculations of the growth of baroclinic disturbances according to the settings proposed by Jablonowski and Williamson (2006). This setup is similar to that of Polvani et al. (2004), but with a north-south symmetric zonal wind and temperature fields, and the smoothness of the basic field is considered. The initial disturbance is a Gaussian-like distribution in the eastward wind field in the northern hemisphere. Figure 3 shows the surface pressure field on day 9 in the time-evolution calculated on the basis of this benchmark setting, with the horizontal truncation wavenumber of T170 (512 × 256 grids), the vertical truncation wavenumber is 17 (26 grids), and the time step is 300 s. This figure corresponds to Fig. 7a in Jablonowski and Williamson (2006). However, in the present manuscript, the horizontal diffusion term for the sponge-like effect in the upper layer, which is added in Jablonowski and Williamson (2006), is not added. By comparing Fig. 7a of Jablonowski and Williamson (2006) with Fig. 3 of the present manuscript, we can see that there is a slight difference in the pattern of the contour lines of 1000 hPa because the position of the 1000 hPa contour lines can vary greatly even with very small deviations from the basic field. Nevertheless, the contours at other levels show almost perfect agreement down to the fine structure. It is still worth mentioning that the number of the vertical levels in the calculation for Fig. 7a in Jablonowski and Williamson (2006) is 26, but the vertical truncation wavenumber for the calculation of Fig. 3 in the present manuscript is 17. This means that although the vertical degrees of freedom used in the three-dimensional spectral model here is smaller than that used in Jablonowski and Williamson (2006), the development pattern of the baroclinic disturbance can be calculated with almost the same accuracy by the three-dimensional spectral model.
The surface pressure field on day 9 (unit is hPa) in the course of time-evolution of the growth of the baroclinic disturbance calculated on the basis of the benchmark setting in Jablonowski and Williamson (2006) by using the three-dimensional spectral model developed in the present paper. Contour interval is 10 hPa. The horizontal axis is longitude, and the vertical axis is latitude. The maximum value in this figure is 1019.73 hPa [at (λ, φ) = (231.33°, 49.47°)]. The minimum value is 942.03 hPa [at (λ, φ) = (208.13°, 61.40°)]. The horizontal truncation wavenumber is T170 (512 × 256 grids), the vertical truncation wavenumber is 17 (26 grids), and the time step is 300 s.
Next, we examine the convergence of the numerical solution for the three-dimensional spectral model with changing the vertical truncation wavenumber. Figure 4 shows the dependence of the error of the surface pressure field on the vertical truncation wavenumber L for days 1, 5, 9, 11, and 12, measured in l2 norm. The result at L = 170 (K = 256) is taken as the true value here and we define the difference from it as the error. The horizontal truncation wavenumber is T85 (256 × 128 grids), and the time step is 150 s. Here, the reason why the small time step is used is to ensure the stability of the calculation even in the case of L = 170 (K = 256). In Fig. 4, the horizontal places of the markers indicate the values of the vertical truncation wavenumber L used in the time-integrations (L = 10, 11, 12, 13, 14, 15, 16, 17, 21, 42, and 85). The corresponding number of the vertical grids, K, is K = 16, 18, 20, 20, 22, 24, 26, 26, 32, 64, and 128, respectively. If the error of the surface pressure measured in the l2 norm is expressed as ∈, the dependence of ∈ on L is expressed approximately as ∈ ∼ L−1 for days 1 and 5. We believe that this is caused by horizontal propagation of Lamb wave modes excited by the initial disturbance until baroclinic disturbances develop due to baroclinic instability. As shown in Appendix A.4, in this three-dimensional spectral model, the error of phase speed of Lamb wave modes is roughly proportional to L−1. Thus, as Lamb wave modes excited by the initial disturbance propagate horizontally, the influence of phase speed difference increases with time and the error of surface pressure also increases; hence, the error is considered to be approximately proportional to L−1. Conversely, on day 9, in the region where L is small (L = 10 to L = 15) the L-dependence of ∈ is clearly higher power curve than L−1 (∈ ∼ L−4), and on days 11 and 12, a still higher power dependence (∈ ∼ L−6) is observed in the region from L = 10 to L = 17. This is because after day 9, as seen in Fig. 3, baroclinic disturbances are sufficiently developed and the error included in the evaluation of the advection effect due to the vertical velocity becomes larger than that of the phase speed of the initially excited Lamb wave modes. Since the vertical discretization error affects the evaluation of the vertical advection largely, it can be interpreted that using the spectral method in the vertical direction makes the error decrease rapidly as L is increased.
The dependence of l2 error of the surface pressure field (vertical axis. unit is hPa) on the vertical truncation wavenumber L (horizontal axis) at days 1, 5, 9, 11, and 12 in the time-evolutions of baroclinic disturbances on the basis of the benchmark setting of Jablonowski and Williamson (2006). Both the axes are in logarithms. The result at L = 170 (K = 256) is taken as the true value here, and we define the difference from it as the error. The horizontal places of the markers indicate the values of the vertical truncation wavenumber L used in the time-integrations (L = 10, 11, 12, 13, 14, 15, 16, 17, 21, 42, and 85). The corresponding number of the vertical grids, K, is K = 16, 18, 20, 20, 22, 24, 26, 26, 32, 64, and 128, respectively. The number of days is indicated at the left end of the line connecting the markers. The time-integrations are done with the horizontal truncation wavenumber of T85 (256 × 128 grids) and the time step of 150 s.
In Fig. 4, the error from the initial disturbance itself has a certain magnitude before the development of the disturbance due to baroclinic instability. Thus, the effect of vertical resolution on the improvement of accuracy at the timing of the development of the baroclinic disturbances is somewhat obscured. To resolve this point, we perform time-integrations again on the basis of the benchmark setting of Jablonowski and Williamson (2006), but where the amplitude of the initial disturbance is set to 1/1000. Figure 5 shows the surface pressure field on day 19 in such a setup, with the horizontal truncation wavenumber of T85 (256 × 128 grids), the vertical truncation wavenumber of 170 (256 grids), and the time step of 150 s. Since the amplitude of the initial disturbance is reduced, the development of the baroclinic disturbances is delayed when compared with the case of Fig. 3. However, after a sufficient amount of time has elapsed, well-developed low pressure systems can be seen. Figure 6 shows the convergence of the numerical solution with changing the vertical truncation wavenumber for the case where the amplitude of the initial disturbance is set to 1/1000 of the standard value, as in Fig. 4. Since the development of the baroclinic disturbances is delayed in comparison with the case of Fig. 4, the dependence of the error on the vertical truncation wavenumber L is shown for days 1, 9, 11, 13, 15, 17, 19, and 21. The time-integrations are done with the horizontal truncation wavenumber of T85 (256 × 128 grids) and the time step of 150 s. In Fig. 6, on days 1 and 9, the dependence of ∈ on L is expressed approximately as ∈ ∼ L−1, which is the same as days 1 and 5 in Fig. 4. We believe that this is caused by Lamb wave modes directly excited by the initial disturbance similarly as on days 1 and 5 in Fig. 4. Nevertheless, in Fig. 6, the amplitude of the initial disturbance is set to 1/1000, so that the ∈ on day 1 in Fig. 6 is almost 1/1000 of that on day 1 in Fig. 4. In Fig. 6, on day 11, in the region where L is small (L = 10 to L = 21) the L-dependence of ∈ is clearly higher power curve than L−1 (∈ ∼ L−3) as seen on day 9 in Fig. 4. After day 13, when the baroclinic disturbances develop, the power of the power-law dependence becomes higher, and on day 17, the dependence is ∈ ∼ L−6 in the range of L = 10 to L = 42. Thus, these time-integrations with the reduced amplitude of the initial disturbance clearly shows that in the development of baroclinic disturbances, using the spectral method in the vertical direction makes the error decrease rapidly as L is increased. In Fig. 6, however, the ∈ becomes large even when L is large (L = 42, 85) in days 19 and 21. We believe that this is due to the increase of high-wavenumber components in the vertical direction, which are produced by nonlinear effects enhanced by the growth of the baroclinic disturbances.
Same as Fig. 3 except that the amplitude of the initial disturbance is 1/1000 of that used for the computation of Fig. 3, and this figure is on day 19. Contour interval is 10 hPa. The maximum value in this figure is 1022.82 hPa [at (λ, φ) = (29.53°, 48.33°)], The minimum value is 950.45 hPa [at (λ, φ) = (50.63°, 63.73°)]. The horizontal truncation wavenumber is T85 (256 × 128 grids), the vertical truncation wavenumber is 170 (256 grids), and the time step is 150 s.
In the present manuscript, we have proposed to use a three-dimensional spectral method for the GCM dynamical core on the basis of the primitive equations, which uses the spectral method not only in the horizontal direction but also in the vertical direction, where the Legendre polynomial expansion is used and the time-evolution equations of the expansion coefficients are determined by the Galerkin method. We have shown that the semi-implicit time-integration can be computed more efficiently with the vertical discritization formulation proposed in the present manuscript. This is an improvement compared with the previous study by Machenhauer and Daley (1974), where the Legendre polynomial expansion was also used in the vertical direction. Using the numerical model implemented based on the proposed three-dimensional spectral method, modern benchmark numerical experiments with the settings of Polvani, et al. (2004), Held and Suarez (1994) and Jablonowski and Williamson (2006) have been performed to show that the numerical results are consistent with those of previously developed numerical models and to show that there is no numerical instability caused by the use of the three dimensional spectral method. Also, in Section 5.3, we have evaluated the convergence of the numerical solution for different truncation wavenumbers in the vertical direction. It has been shown that the error decreases rapidly as the vertical truncation wavenumber increases, which is a characteristic of the spectral method. This is an advantage over the finite difference method, which is often used in existing numerical models. In fact, in the benchmark calculations shown as Figs. 1–3, the numbers of the vertical grids are set to be the same as the numbers of the vertical levels in previous studies; however, each vertical truncation wavenumber is approximately 2/3 of the number of the vertical grids. This means that a numerical solution with high-accuracy is obtained with a small number of degrees of freedom. The fact that fewer degrees of freedom are needed is not only an advantage in data storage, but also it has the advantage of reducing the size of the matrix in which the eigenvalue problem should be solved when calculating the flow stability.
If we compare the three-dimensional spectral method proposed in the present manuscript with ordinary numerical models that uses the finite difference method in the vertical direction, some disadvantages, of course, can be considered. One of them is the computational cost in transforming between the coefficients of the Legendre polynomial expansion and the grid values. If the vertical truncation wavenumber is L and the horizontal truncation wavenumber of the spherical harmonic expansion is M, the cost of the vertical transform required per one time step is estimated to be O (L2M2). When the finite difference method is used in the vertical direction, the computational cost of the vertical calculation is O (KM2) if the number of the vertical levels is K. Thus, the comparison reduces to the comparison of O (L2) and O (K). Since K ∼ L, the three-dimensional spectral method looks worse in terms of the computational cost. However, since the computational cost of the horizontal transform is estimated to be O (LM3), the computational cost of the vertical transform becomes a small fraction of the total computational cost in the situation where the horizontal truncation wavenumber is sufficiently large when compared with the vertical truncation wavenumber (L ≪ M). Therefore, the use of the spectral method in the vertical direction is not a big disadvantage unless the truncation wavenumber in the vertical direction is larger than the that in the horizontal direction.
The second possible disadvantage is that the spectral method proposed in the present manuscript does not strictly guarantee the conservation of the total energy. This is because in the formulation of the timeevolution of the temperature disturbance field (22), the weighting function is set to be σPl (1 − 2σ), which is the same function as used in the expansion according to the Galerkin method. If we set the weighting function as Pl (1 − 2σ), we can satisfy the total energy conservation. In this case, since the weight is set to 1/σ as in the original Galerkin method and this means that the weight of the upper atmosphere is relatively increased and the weight of the lower atmosphere is relatively decreased, the benchmark calculation shows that the accuracy of the calculation in the lower atmosphere is lower than that of the one proposed in the present manuscript (not shown). In that case, we also lose the property that the matrix to be computed is a band matrix in the formulation of the semi-implicit method. In actual GCM calculations, the effects of forcing and dissipation are introduced; so, even if the discretized system does not strictly satisfy the total energy conservation, it does not seem to be a big disadvantage unless it leads to any numerical instability.
The third possible disadvantage is that the vertical discretization grids are automatically set by the Gaussian node ηk, and there is no freedom in the vertical grid setting as in the finite difference method. However, this point can be regarded as an advantage in that the “optimal” vertical grids are automatically determined once the number of the vertical grids is determined, without having to worry about how to set the vertical grids. Additionally, in the case of the finite difference method, the existence of computational mode can be a problem when the Lorenz grid is used in the vertical direction (Arakawa and Konor 1996). In the spectral method proposed in the present manuscript, however, there is no such computational mode (see Appendix A.4). This point can also be considered as one of the advantages of the spectral method proposed in the present manuscript.
As described above, the discretization of the primitive equations by the three-dimensional spectral method proposed in the present manuscript has advantages over the conventional discretization using the finite difference method in the vertical direction in terms of accuracy and other factors. Particularly, it is useful for theoretical studies when a small number of degrees of freedom are used. As an extreme form of such an application, a “toy” model equation is derived for the case where the vertical degree of freedom is reduced to the minimum in Appendix B.
We thank two anonymous reviewers for their helpful comments. This work was supported by JSPS KAKENHI Grant Numbers 20K04061. This work was also supported by MEXT as “Program for Promoting Researches on the Supercomputer Fugaku” (Toward a unified view of the universe: from large scale structures to planets, JPMXP1020200109) and “Exploratory Challenge on Post-K computer” (Elucidation of the Birth of Exoplanets [Second Earth] and the Environmental Variations of Planets in the Solar System).
This work used computational resources of the K computer and supercomputer Fugaku provided by the RIKEN Center for Computational Science through the HPCI System Research Project (Project ID: hp160254, hp170225, hp180199, hp190170, hp200124, hp210164).
The GFD-DENNOU Library (https://www.gfddennou.org/arch/dcl/) was used to draw the figures.
The primitive equations in the σ -coordinate system treated in the present manuscript use the boundary condition at σ = 0, which means that the region that extends to infinite height is treated as a finite σ region. Thus, if we consider a wave propagating vertically upward, the wave that should have propagated infinitely upward and left the region will be artificially reflected back into the region. This means that the time-evolution of the wave cannot be treated correctly. This situation is the same as that of the finite difference method, even if the spectral method is used in the vertical direction. In the case of the finite difference method, if it is possible to impose a radiative boundary condition, it may be done, but it is difficult to do so except in special cases where the waves are monochromatic. Therefore, a damping region (sponge layer) of a certain thickness is set near the upper boundary of the computational domain to suppress the reflection by absorbing the upward propagating waves. Nevertheless, if the damping ratio and the thickness of the sponge layer are not set properly, the wave absorption will be insufficient and reflected waves will be generated. When using the spectral method by projecting a geometrically infinite domain onto a finite domain, as in the present manuscript, the effect corresponding to a sponge layer can be obtained by introducing the pseudo-hyper-viscosity (Ishioka 2008). We show below that such pseudo-hyper-viscosity can also be introduced when the spectral method is used in the vertical direction as in the present manuscript.
A.1 Description of gravity wave propagation in this systemAs in the case where the semi-implicit method is introduced in Section 4, we linearize the time-evolution equations (1)–(4) with the basic field being the isothermal atmosphere at the temperature T0* used in the nondimensionalization and with neglecting the effect of the rotation of the sphere. For further simplification, we assume here that the horizontal geometry is not a sphere but a plane. We use Cartesian coordinates (x, y) of the plane, and assume the field variables to be uniform in the y-direction. In this case, we nondimensionalize the length scale using an appropriate length X* in the x-direction. If we assume that a uniform flow U > 0 is blowing in the x-direction, the linearized equation using it as the basic field can be expressed as follows (here, we consider the effect of the topography).
Similarly as (11) and (13), we expand δ̂k (σ, t) and τ̂′k (σ, t) appearing in (79)–(81) as follows:
In the system discretized by the spectral method, (93), we consider a stationary solution. In the right-hand side of (93), we set
The σ distribution of the imaginary part of the stationary wave solution without pseudo-hyper-viscosity (multiplied by ). Numerical solution (solid line) and the exact solution for the case with radiative boundary condition (dotted line). Left panel: U = 0.05 case, right panel: U = 0.10 case. The vertical truncation wavenumber is L = 80.
Now, referring to Ishioka (2008), in the right-hand side of (93), we introduce the effect of pseudo-hyperviscosity at the diagonal components of the matrix, which correspond to the divergence components as follows:
Same as Fig. 7 except that the numerical solution (solid line) is computed with pseudo-hyper-viscosity.
Now, the introduction of pseudo-hyper-viscosity in the form of (94) means that we add the pseudo-hyper-viscosity term in (87) as follows:
In the linear time-evolution equation discretized by the spectral method (93), setting the rightmost term of the terrain effect to 0, and the basic flow U = 0, we obtain the following eigenvalue problem assuming that the time-dependence is expressed as ∝ e−iωt:
The eigenvalue problem (99) can be solved numerically. The eigenmode that gives the maximum absolute value of eigenvalue c is the one corresponding to the Lamb wave mode. Table 1 shows the maximum absolute value of eigenvalue c for different vertical truncation wavenumber L, and Fig. 9 shows the σ distribution of δ̂k (σ) for the corresponding eigenmodes. Note that we now set κ = 2/7 and the true value of | c | corresponding to the Lamb wave is, .
Dependence of the amplitude of the eigenmode corresponding to the Lamb wave on σ (solid line). The dotted line is for the exact solution of the Lamb wave (σ−κ). The vertical truncation wavenumber is changed to L = 10, 20, 40, and 80. The value of L is displayed in the upper-right corner of each panel.
Table 1 shows that the eigenvalue of the largest absolute value approaches the true value corresponding to the Lamb wave as the truncation wavenumber L is increased. Correspondingly, from Fig. 9, it can be seen that the vertical structure of eigenmodes approaches that of the Lamb wave solutions up to smaller σ as L increases. Figure 10 shows the L-dependence of the error of the phase velocity from the true value. It can be seen that the error is roughly at the power of L−1.
Dependence of the difference between the eigenvalues of the discretized eigenmodes corresponding to the Lamb wave and the exact solution (vertical axis) on L (horizontal axis). The marker indicates the value of L that was used (L = 10, 20, 40, and 80).
As one byproduct of the formulation of the three-dimensional spectral method proposed in the present manuscipt, by setting the truncation wavenumber L in the vertical direction to a small value such as 1 or 2, we can create a “toy” model that is equivalent to the so-called two-level model or three-level model, without having to worry about how to take the grid in the vertical direction or how to set the finite difference scheme. For example, in (11)–(14), if we set as L = 1, then we can obtain a closed system of equations for the time-dependent expansion coefficients, (δn, m, 0), (δn, m, 1), (ζn, m, 0), (ζn, m, 1), τ̄0, τ̄1, (τ′n, m, 0), and (sn, m). Since we have two degrees of freedom in the vertical direction in this setting, this can be regarded as corresponding to the so-called two-layer model or two-level model. However, in this form, since the system contains the barotropic component of the divergence field (δn, m, 0) and the logarithm of the surface pressure (sn, m), the Lamb wave modes are supported in the system, which is complicated for a “toy” model. Similar to the two-level model proposed by Kitamura and Matsuda (2004), a “toy” model without the Lamb wave modes and with good symmetry between barotropic and baroclinic modes can be derived as follows.
First, in (11)–(14), we set the truncation wavenumber as L = 1, that is we set the degree of freedom in the vertical direction to 2. However, to exclude the Lamb waves, the barotropic component of the divergence field (δn, m, 0) and the logarithm of the surface pressure (sn, m) are assumed to be 0 and are removed from the time-evolution. The bottom topography is assumed to be flat and we set as Φ′s = 0. Furthermore, for the temperature disturbance τ, we assume that it is symmetric around the middle layer of the atmosphere and use the following expression instead of the expansion form of (13).
Now, let us consider the time-evolution equation of δc, ζt, ζc, and τc. From the assumptions made in this Section, (1)–(10) simplify to the following:
Now, in (124), if T̄ is an isothermal basic field independent of σ, then, by (125), we have
For further simplification, we assume that and ignore the τc term in parentheses in the third term on the right-hand side of (124). Then (124) reduces to,