Ocean Modelling 40 (2011) 72–86
Contents lists available at ScienceDirect
Ocean Modelling
journal homepage: www.elsevier.com/locate/ocemod
Physical vs. numerical dispersion in nonhydrostatic ocean modeling ⇑ Sean Vitousek , Oliver B. Fringer
Environmental Fluid Mechanics Laboratory, Stanford University, Stanford, CA 94305, United States article info abstract
Article history: Many large-scale simulations of internal waves are computed with ocean models solving the primitive Received 11 September 2010 (hydrostatic) equations. Under certain circumstances, however, internal waves can represent a dynamical Received in revised form 29 May 2011 balance between nonlinearity and nonhydrostasy (dispersion), and thus may require computationally Accepted 1 July 2011 expensive nonhydrostatic simulations to be well-resolved. Most discretizations of the primitive equa- Available online 14 July 2011 tions are second-order accurate, inducing numerical dispersion generated from odd-order terms in the truncation error (3rd-order derivatives and higher). This numerical dispersion mimics physical dispersion Keywords: due to nonhydrostasy. In this paper, we determine the numerical dispersion coefficient associated with Dispersion common discretizations of the primitive equations. We compare this coefficient to the physical disper- Nonhydrostatic effects Internal waves sion coefficient from the Boussinesq equations or KdV equation. The results show that, to lowest order, 2 Ocean modeling the ratio of numerical to physical dispersion is C = Kk , where K is an O(1) constant dependent on the dis- Grid resolution requirements cretization of the governing equations and k is the grid leptic ratio, k Dx/h1, where Dx is the horizontal
Leptic ratio grid spacing and h1 is the depth of the internal interface. In addition to deriving this relationship, we ver- Lepticity ify that it indeed holds in a nonhydrostatic ocean model (SUNTANS). To ensure relative dominance of physical over numerical effects, simulations require C 1. Based on this condition, the horizontal grid
spacing required for proper resolution of nonhydrostatic effects is k < O(1) or Dx < h1. When this condi- tion is not satisfied, numerical dispersion overwhelms physical dispersion, and modeled internal waves exist with a dynamical balance between nonlinearity and numerical dispersion. Satisfaction of this con- dition may be a significant additional resolution requirement beyond the current state-of-the-art in ocean modeling. Published by Elsevier Ltd.
1. Introduction and de-Vries, 1895). These equations represent the depth-averaged conservation of mass and momentum and include dispersive Dispersion, a characteristic of nonlinear or nonhydrostatic effects due to nonhydrostasy by retaining the lowest-order effects waves, occurs when the wave speed is a non-constant function of of integrating the nonhydrostatic pressure over the depth. The KdV the wave amplitude or wave frequency (or similarly wavelength) equation reduces conservation of mass and momentum to a single (Whitham, 1974). Distinction is sometimes made between these equation which is valid only for unidirectional wave propagation. two types of dispersion, namely amplitude dispersion and In this paper, we rely heavily on the Boussinesq equations and frequency dispersion, respectively (LeBlond and Mysak, 1978). KdV equation as models that faithfully represent nonlinear and The two are synonymous with nonlinearity and nonhydrostasy in nonhydrostatic behavior in more complicated natural systems, in studies of gravity waves, and hence are typically called nonlinear- this case, oceanic internal gravity waves. ity and dispersion. Many researchers have relied on weakly nonlinear, weakly non- Interesting wave phenomena exist when both nonlinearity and hydrostatic KdV theory to understand both qualitative and quanti- dispersion occur together and with approximately equal magni- tative details of internal waves (Helfrich and Melville, 2006). tude. Under such circumstances, nonlinear steepening balances Internal wave dynamics have been examined using the KdV dispersive spreading, and propagating waves of constant form framework which shows good comparison of internal wave pro- known as ‘‘solitary’’ waves are possible (Korteweg and de-Vries, files with the analytical result from the KdV equation (Liu et al., 1895). The most common equations satisfying the balanced motion 1998; Stanton and Ostrovsky, 1998; Duda et al., 2004; Warn- include the Boussinesq equations (Boussinesq, 1871, 1872; Pere- Varnas et al., 2010). Developments extending KdV theory to fully grine, 1967) and the Korteweg–de Vries (KdV) equation (Korteweg nonlinear dynamics have made significant contributions to the literature, a complete list of which is given in Helfrich and Melville
⇑ Corresponding author. (2006). However, weakly nonlinear, weakly nonhydrostatic scaling E-mail addresses: [email protected] (S. Vitousek), [email protected] (O.B. of many internal wave problems justifies use of traditional KdV Fringer). theory.
1463-5003/$ - see front matter Published by Elsevier Ltd. doi:10.1016/j.ocemod.2011.07.002 S. Vitousek, O.B. Fringer / Ocean Modelling 40 (2011) 72–86 73
Many oceanic internal waves are long relative to the depth and ing equations. Often second-order central differences are used, hence are nearly hydrostatic. Therefore, modeling waves of such implying that the dominant numerical dispersion coefficient is pro- scale with a hydrostatic model may be appropriate (Kantha and portional to the horizontal grid spacing squared. In this paper, we Clayson, 2000). In many other cases, near continental shelves and determine the numerical dispersion coefficient from the modified ocean ridges, internal waves can be highly nonlinear and nonhy- equivalent partial differential equation given from a particular dis- drostatic, often appearing as rank-ordered solitary-like wave trains cretization (Hirt, 1968). Such analyses would be of limited use with- (Hunkins and Fliegel, 1973; Apel et al., 1985; Liu et al., 1998; Scotti out, as a point of comparison, the physical dispersion coefficient. For and Pineda, 2004). Thus, simulations of internal waves may require internal waves, as mentioned previously, this is provided by the fully nonhydrostatic models (such as MITgcm (Marshall et al., Boussinesq equations or the KdV equation. Realistic nonhydrostatic 1997), SUNTANS (Fringer et al., 2006), nonhydrostatic ROMS simulations require that the physical dispersion is much larger than (Kanarska et al., 2007)). The drawback of fully nonhydrostatic the numerical dispersion. Because the physical dispersion for a gi- models is the computational cost associated with solving a 3-D ven problem is typically fixed, the problem of minimizing numerical elliptic equation for the nonhydrostatic pressure, which may re- dispersion in nonhydrostatic ocean models reduces to the problem quire an order of magnitude increase in computational time (Frin- of providing adequate horizontal resolution. As we will show, this ger et al., 2006). The prohibitive computational cost requirement as adequate horizontal resolution is Dx < h1 where Dx is the horizontal well as the nearly hydrostatic scales make primitive (hydrostatic) grid spacing and h1 is the depth of the internal interface. ocean models the preferred method for simulating internal waves The remainder of this paper is divided into four sections. Sec- in the ocean. Although not as computationally expensive, the prim- tion 2 presents the governing equations for modeling dynamics itive equations do not resolve physical dispersion resulting from of internal waves used in our analysis and derives the ratio of nonhydrostatic effects. However, this may not be a problem when numerical to physical dispersion and associated resolution require- physical dispersion is negligible. An excellent discussion concern- ments of a model. Section 3 presents numerical simulations of the ing the application of hydrostatic models to the problem of simu- KdV equation and the fully nonhydrostatic ocean model SUNTANS lating internal waves is presented in Hodges et al. (2006). They and illustrates how both models are prone to numerical dispersion. propose that future use of primitive ocean models is justified due Finally, Sections 4 and 5 present the discussion and conclusions of to the clear hydrostatic scaling of most problems of interest. How- the methods in this paper, respectively. ever, they also point out issues that modelers must contend with when simulating processes which include internal waves with 2. Governing equations hydrostatic models. As we will show, it is not only the lack of phys- ical dispersion that adversely influences model results of internal We begin with the nondimensional two-layer Boussinesq equa- waves, but the presence of numerical dispersion. tions representing the weakly nonlinear and weakly nonhydrostat- The concept of numerical dispersion is not particularly new. ic motion of the two-layer system depicted in Fig. 1. In this paper, Long has it been known that even if the governing equations are we indicate nondimensional quantities with a ⁄. Following Lynett nondispersive, their discrete model may be (artificially) dispersive and Liu (2002), the governing nondimensional momentum and (Trefethen, 1982). In early work, some authors referred to this as continuity equations in one horizontal dimension which retain ‘‘spurious dispersion’’ (Vichnevetsky, 1980; Vichnevetsky and Bow- the first-order nonlinear and nonhydrostatic effects are given by les, 1982). Numerical dispersion generally refers to the class of oU oU og h 2 o2 oU essentially unavoidable spurious oscillations that result from 1 þ dU 1 þ 2 1 1 ¼ O 2d; 4 ; ð1Þ numerical discretization. In other fields, particularly electrodynam- ot 1 ox ox 3 ox 2 ot ics and acoustics, dispersion–relation–preserving numerical o o schemes (Tam and Webb, 1993) have received significant attention. n h dn U ¼ OðÞDq ; ð2Þ The effects of numerical dispersion have received limited atten- ot ox 1 1 tion in the literature on gravity waves. One instance is from Burwell 2 2 et al. (2007), who examine the numerically diffusive and dispersive oU oU 1 o h o oU 2 þ dU 2 þ q g þ n þ 2 2 2 properties of tsunami models and find the horizontal grid resolu- ot 2 ox q ox 1 6 ox 2 ot 2 tion is critical to accurately simulate the dispersive behavior. They o2 o 2 h U 2 4 suggest a method, based on the concept in Shuto (1991), in which 2 h 2 ¼ O d; ; ð3Þ 2 ox 2 2 ot the grid resolution and thus the numerical dispersion can be tuned to replicate the physical dispersion not resolved in the (hydrostatic) model. Gottwald (2007) show that discretization of the inviscid Burgers equation can result in the KdV equation as its correspond- ing modified equivalent partial differential equation, where the (purely numerical) dispersive term is generated from truncation er- ror. Schroeder and Schlünzen (2009) derive a numerical dispersion relation for an atmospheric internal gravity wave model. Their relation naturally tends toward the true dispersion relation as the horizontal grid spacing approaches zero. In simulations of internal waves, numerical dispersion is particularly adverse because it may create an artificial balance with the nonlinear steepening ten- dency of the wave and produce solitary-like waves that are physi- cally unrealistic or impossible. Both Hodges et al. (2006) and Wadzuk and Hodges (2009) speculate that this is the problem with inconsistencies arising in hydrostatic ocean models. In this paper, we will demonstrate that this is indeed the case. Numerical dispersion typically results from odd-ordered derivatives (3rd-order and higher) in the truncation error of finite- difference approximations to first-order derivatives in the govern- Fig. 1. Basic dimensional setup of the problem after Lynett and Liu (2002). 74 S. Vitousek, O.B. Fringer / Ocean Modelling 40 (2011) 72–86 on o form of these equations while maintaining the same order of accu- þ h þ dn U ¼ 0: ð4Þ ot ox 2 2 racy in the asymptotic approximation by self-substitution of the The nondimensional horizontal velocity in the upper and lower first-order relation of the momentum equation, viz: layers are given by U ¼ U =U and U ¼ U =U , respectively, where oU on 1 1 0 2 2 0 O 2; d; D : 11 ¼ þ q ð Þ U0 is the characteristic flow velocity. The nondimensional densities of ot ox the upper and lower layers are given respectively by q1 ¼ q1=q0 and This was recognized by Peregrine (1967) although the common q2 ¼ q2=q0, where q2 > q1 and typically q0 = q2, and it is assumed form (9) was retained. Substitution of the first-order balance (11) ⁄ that Dq =(q2 q1)/q0 1. The nondimensional height of the free into the dispersion term in the momentum Eq. (9) gives, to ⁄ ⁄ ⁄ 2 4 ⁄ surface above the still water level is g = g/(a0Dq ), and n = n/a0 is O( d, ,Dq ): the nondimensional height of the internal interface above the still o o o 2 o3 U U n n interface level and a0 is a measure of the interface deflection. þ dU ¼ þ ; ð12Þ |{z}ot |fflfflfflffl{zfflfflfflffl}ox |{z}ox |fflfflfflffl{zfflfflfflffl}3 ox 3 h1 ¼ h1=h0 and h2 ¼ h2=h0 are the nondimensional depths of the upper and lower layers, respectively, where the characteristic water acceleration advection of hydrostatic nonhydrostatic momentum pressure gradient pressure gradient depth is given by where the terms are identified to illustrate the related terms in the h1h2 h ¼ ; ð5Þ fully nonhydrostatic and nonlinear equations from which they arise. 0 h þ h 1 2 Recall that the sign of the pressure gradient terms are positive be- ⁄ and h1 and h2 are the dimensional layer depths in quiescent condi- cause of the definition of n from Eq. (8). Eq. (12) is more convenient tions i.e. g = n =0. than (9) because it does not contain mixed time and space deriva- Two nondimensional parameters, d and , play important roles tives. This will facilitate direct comparison between the physical in the behavior of the equations, since they represent the degree of dispersion arising from the nonhydrostatic pressure and the numer- nonlinearity and nonhydrostasy of the wave solutions, respec- ical dispersion arising from discretization errors. tively. These parameters are given by Eqs. (10) and (12) admit bidirectional wave solutions. We re- strict our study to unidirectional waves by projecting Eqs. (10) a0 d ¼ ; ð6Þ and (12) onto one of their linear characteristics. This gives the h0 KdV equation (derivation of which is given in Zauderer (1989)) h0 ¼ ; ð7Þ governing the evolution of the interface height. The KdV equation, L w to O( 2d, 4,Dq⁄), is given by where Lw is the internal wave horizontal length scale. Eqs. (1) and o o 2 o3 (3) are derived under the assumptions of weak nonlinearity and n 3 n n þ 1 dn þ ¼ 0; ð13Þ weak nonhydrostasy, viz. O(d)=O( 2)