Ocean Modelling 83 (2014) 118–144
Contents lists available at ScienceDirect
Ocean Modelling
journal homepage: www.elsevier.com/locate/ocemod
A nonhydrostatic, isopycnal-coordinate ocean model for internal waves ⇑ Sean Vitousek , Oliver B. Fringer
Environmental Fluid Mechanics Laboratory, Stanford University, Stanford, CA 94305, United States article info abstract
Article history: We present a nonhydrostatic ocean model with an isopycnal (density-following) vertical coordinate sys- Received 9 May 2014 tem. The primary motivation for the model is the proper treatment of nonhydrostatic dispersion and the Received in revised form 22 August 2014 formation of nonlinear internal solitary waves. The nonhydrostatic, isopycnal-coordinate formulation Accepted 23 August 2014 may be preferable to nonhydrostatic formulations in z- and r-coordinates because it improves computa- Available online 6 September 2014 tional efficiency by reducing the number of vertical grid points and eliminates spurious diapycnal mixing and solitary-wave amplitude loss due to numerical diffusion of scalars. The model equations invoke a Keywords: mild isopycnal-slope approximation to remove small metric terms associated with diffusion and nonhy- Nonhydrostatic model drostatic pressure from the momentum equations and to reduce the pressure Poisson equation to a sym- Isopycnal coordinates Multi-layer model metric linear system. Avoiding this approximation requires a costlier inversion of a non-symmetric linear Internal waves system. We demonstrate that the model is capable of simulating nonlinear internal solitary waves for Solitary waves simplified and physically-realistic ocean-scale problems with a reduced number of layers. Ocean modeling Ó 2014 Elsevier Ltd. All rights reserved.
1. Introduction r-coordinates, and (3) Isopycnal or q-coordinates. Each approach has numerous advantages and disadvantages as outlined in 1.1. Literature review Griffies et al. (2000). Existing nonhydrostatic models employ z-or r-coordinates [e.g. (Mahadevan et al., 1996a,b), MITgcm Simulating internal waves is one of the most computationally (Marshall et al., 1997b,a), SUNTANS (Fringer et al., 2006) for challenging tasks in ocean modeling. Large-scale processes such z-coordinates, POM (Kanarska and Maderich, 2003), BOM as internal tides can be modeled reasonably well with computa- (Heggelund et al., 2004), ROMS (Kanarska et al., 2007), FVCOM tionally-inexpensive hydrostatic models (Kantha and Clayson, (Lai et al., 2010a) for r-coordinates and ICOM (Ford et al., 2000). Simulations of nonlinear internal solitary waves, on the 2004a,b) for vertically unstructured coordinates]. z- and other hand, require computationally-expensive nonhydrostatic r-coordinate models are capable of representing overturning models to represent dispersive behavior. Nonhydrostatic models motions and eddies (e.g. Kelvin–Helmholtz, Rayleigh–Taylor, and can incur an order of magnitude increase in computational time other instabilities) that are associated with many small-scale relative to hydrostatic models due to the elliptic solver for the non- nonhydrostatic processes. Isopycnal-coordinate models, on the hydrostatic or dynamic pressure (Fringer et al., 2006). Further- other hand, cannot represent overturning motions or unstable more, simulations of nonlinear internal solitary waves require stratification. This deficiency leads to the notion that isopycnal high horizontal grid resolution to ensure that numerically-induced coordinates are not suitable for modeling nonhydrostatic processes dispersion1 is small relative to physical dispersion (Vitousek and (Adcroft and Hallberg, 2006). Consequently, existing isopycnal Fringer, 2011). models such as MICOM/HYCOM (Bleck et al., 1992; Bleck, 2002), The vertical coordinate system is often reported as the most HIM (Hallberg, 1995, 1997; Hallberg and Rhines, 1996), POSEIDON important aspect in the design of an ocean model (Griffies et al., (Schopf and Loughe, 1995), POSUM (Higdon and de Szoeke, 1997; 2000; Chassignet et al., 2000; Willebrand et al., 2001; Chassignet, de Szoeke, 2000) so far exclusively employ the hydrostatic 2011). The three vertical coordinate systems typically used in ocean approximation. While clearly a deficiency of isopycnal models, models are: (1) Height or z-coordinates, (2) Terrain-following or the inability to represent unstable stratification is an issue for hydrostatic and nonhydrostatic isopycnal formulations alike. In this paper, we do not propose a means for isopycnal-coordinate models ⇑ Corresponding author. to represent unstable stratification—this task is clearly suited to E-mail addresses: [email protected] (S. Vitousek), [email protected] (O.B. Fringer). z- and r-coordinate models. Instead, the primary motivation 1 from truncation error of the discretized model equations behind the model presented in this paper is the proper treatment http://dx.doi.org/10.1016/j.ocemod.2014.08.008 1463-5003/Ó 2014 Elsevier Ltd. All rights reserved. S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 119 of dispersion and the formation of nonlinear internal solitary waves a pressure projection method. Instead, they include higher-order in the context of an isopycnal-coordinate model. Internal solitary derivatives to account for the nonlinear and dispersive behavior. waves are clearly nonhydrostatic and not associated with overturn- Boussinesq-type models have a limited range of applicability that ing motions. Although overturning structures may exist in the is often the weakly nonlinear, weakly nonhydrostatic regime. To vicinity of internal wave generation sites that might preclude the extend this range of applicability, more terms may be included use of an isopycnal-coordinate model, a model is not required to or advanced formulations may be introduced. However, this can resolve these structures to obtain a good prediction of the internal lead to an unwieldy set of governing equations containing high- wave generation. For example, Klymak and Legg (2010) and Klymak order, mixed time-and-space derivatives. et al. (2010) developed a simple scheme that faithfully captures dis- The formulation presented here is intended to be flexible (using sipation and mixing related to internal wave generation at a ridge an arbitrary number of layers) and straightforward (resembling and show that their hydrostatic model was almost identical to the existing ocean models). The numerical method uses a pressure pro- nonhydrostatic model in predicting the generation dynamics. This jection method which results in an elliptic equation for the suggests that, while small-scale, nonhydrostatic processes related dynamic pressure (as in z- and r-coordinate models). The elliptic to internal wave generation are indeed complex, they can be equation in isopycnal coordinates results in a non-symmetric sys- parameterized appropriately in large-scale z-, r-, and isopycnal- tem of linear equations. However, by invoking a mild-slope coordinate models that do not resolve them. Hence, a nonhydro- approximation, the system becomes symmetric and remarkably static, isopycnal-coordinate formulation may be suitable for model- similar to the elliptic equation in z-coordinates. ing internal or interfacial waves. Another significant difference between existing isopycnal mod- In the context of internal wave modeling, isopycnal-coordinates els and the model presented here (besides the treatment of nonhy- may provide some advantages over z- and r-coordinates. Isopycnal drostatic pressure) is the time-stepping procedure. Most isopycnal or density-following coordinates provide natural representations models use mode-splitting to treat fast free-surface gravity waves of (stably) stratified fluids. This reduces the number of vertical grid (Bleck and Smith, 1990; Higdon and Bennett, 1996; Higdon and de points from Oð100Þ in z- and r-coordinate models to Oð1Þ in iso- Szoeke, 1997; Hallberg, 1997). The current model uses an implicit pycnal coordinates (Bleck and Boudra, 1981). Ideally, in locations time-stepping procedure for the free surface following Casulli where the internal wave structure is predominantly mode-1, an (1999) which is common in nonhydrostatic models in z- and r- isopycnal model with only two layers may suffice (Simmons coordinates (a list of nonhydrostatic models using implicit time- et al., 2011). The primary disadvantage of modeling nonhydrostatic stepping procedures is given in Vitousek and Fringer (2013)). pressure is that it requires solution of a three-dimensional elliptic Casulli (1997) developed a hydrostatic, isopycnal model with an (Poisson) equation for the nonhydrostatic pressure which signifi- implicit time-stepping procedure for the free surface and layer cantly increases the computational cost relative to the hydrostatic heights. In his approach, the gradient of the Montgomery potential model. Solving this elliptic equation requires optimally OðNÞ oper- (M), which represents the hydrostatic pressure in isopycnal coordi- ations (Briggs et al., 2000) where N is the number of grid cells. Iso- nates, is discretized implicitly. Thus, computing the free-surface pycnal coordinates can improve the efficiency of nonhydrostatic and interface heights requires the inversion of a large (3-D) system methods by reducing the required number of vertical grid points of equations which is comparable in cost to the solution of the by an order of magnitude relative to z- and r-coordinate models. (3-D) elliptic equation for the nonhydrostatic pressure. The current Thus, reducing the number of vertical layers and thus the overall model is similar to the approach of Casulli (1997). However, we number of grid cells by an order of magnitude can result in at least split the Montgomery potential into barotropic (MðbtÞ) and one order of magnitude reduction in computational cost. baroclinic (MðbcÞ) parts according to Another advantage of isopycnal-coordinates is the reduction or M 1 p gz 1 p g MðbcÞ; 1 elimination of spurious diapycnal mixing. Transport in the ocean ¼ q0 ð h þ q Þ¼|fflfflfflfflfflfflfflfflfflfflfflffl{zfflfflfflfflfflfflfflfflfflfflfflffl}q0 ð s þ q0 gÞ þ ð Þ predominantly occurs along rather than across isopycnal surfaces ¼MðbtÞ (Iselin, 1939; Montgomery, 1940). In many applications, spurious diapycnal mixing, arising from numerically-diffusive truncation where q is the density (q0 is the reference density), ph is the hydro- error in scalar transport schemes in z- and r-coordinate models static pressure, ps is the surface (atmospheric) pressure, g is the (Fringer et al., 2005), can be larger than physical diapycnal mixing free-surface height, z is the interface location, and the term qgz (Griffies et al., 2000). Isopycnal coordinates, on the other hand, are originates from the transformation to isopycnal coordinates. not susceptible to spurious diapycnal mixing because the govern- Because the barotropic and baroclinic portions of the Montgomery ing equations are constructed to directly control the amount of dia- potential represent fast free-surface and slow internal-gravity pycnal transport – if any (Bleck and Boudra, 1981; Griffies et al., waves, they are discretized implicitly and explicitly, respectively. 2000). Hence, the problem of energy loss due to spurious diapycnal This discretization requires inversion of a 2-D system in the hori- mixing that occurs in numerical models during the formation and zontal to compute the free-surface height as is the case with impli- propagation of internal solitary waves (Hodges et al., 2006) may be cit free-surface models in z- and r-coordinates. The computational reduced or eliminated with isopycnal coordinates. cost of the 2-D inversion for the free-surface height is minimal com- pared to the 3-D inversion for the nonhydrostatic pressure. 1.2. Outline of the proposed model 1.3. Use of Lagrangian coordinates for the nonhydrostatic equations Existing approaches for simulating nonhydrostatic internal waves include z- and r-coordinate models applied at high resolu- Adcroft and Hallberg (2006) conclude that the nonhydrostatic tion in 3-D (Fringer et al., 2006; Vlasenko and Stashchuk, 2007; projection method and use of Lagrangian vertical coordinates are Vlasenko et al., 2009; Vlasenko et al., 2010; Lai et al., 2010b; mutually exclusive. Their argument is based on how the Lagrangian Zhang et al., 2011; Guo et al., 2011) or 2-D slices (Scotti et al., algorithm prescribes the material derivative of the (general) vertical 2007; Scotti et al., 2008; Buijsman et al., 2010) or asymptotic/Bous- coordinate, r_, in the continuity equation while in the nonhydrostatic sinesq-type approaches using 2-layer (Brandt et al., 1997; Choi and projection method this term should instead come from the vertical Camassa, 1999; Lynett and Liu, 2002; de la Fuente et al., 2008; momentum equation. This leads to a conundrum in which one can- Steinmoeller et al., 2012) or multi-layer models (Liu and Wang, not simultaneously supply and diagnose a quantity in an equation 2012). Asymptotic or Boussinesq-type approaches do not require (Adcroft and Hallberg, 2006). The present study does not seem lim- 120 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 ited by this issue. When using pure isopycnal coordinates, r q and @u 1 @p @q @ @u þ r ðuuÞ f þ~fw¼ h þ r ðÞþm r u m ; _ _ Dq v H H H v r q Dt 0 (since density is treated as a materially conserved @t q0 @x @x @z @z quantity). Consequently, r_ 0 is prescribed in the continuity equa- ð2aÞ tion and this leads to an evolution equation for the isopycnal layer heights that is consistent with the material conservation of density. @v 1 @ph @q @ @v After the layer heights are evolved, the projection method uses the þ r ðuvÞþfu ¼ þ rH ðÞþmHrHv mv ; @t q0 @y @y @z @z vertical velocity from the vertical momentum equation in the diver- ð2bÞ gence-free from of the continuity equation. We note that the two forms of the continuity equation, namely the layer-height equation @w ~ @q @ @w and the divergence-free continuity equation, are, in fact, the same þ r ðuwÞ fu ¼ þ rH ðÞþmHrHw mv ; ð2cÞ equation and the condition r_ 0 gives rise to the layer-height equa- @t @z @z @z tion. After the nonhydrostatic projection step, a final vertical veloc- where u ¼½u; v; w T is the velocity vector, f ¼ 2X sinð/Þ is the tra- ity is computed using the divergence-free form of the continuity ditional Coriolis parameter and ~f ¼ 2X cosð/Þ is the nontraditional equation. Our interpretation of the Adcroft and Hallberg (2006) Coriolis parameter (see e.g. White and Bromley, 1995; Marshall conundrum is that it implies that the vertical velocity computed et al., 1997b; Gerkema et al., 2008), where / is the latitude and with the projection step cannot be consistent with that which is is the Earth’s angular velocity, p z p g z XR hð Þ¼ s þ q0 ðg Þþ implied by the material conservation of density in the layer-height g g ðq q Þdz is the hydrostatic pressure (derived from equation. This does not appear to be an issue in our approach nor in z 0 @ph any of the commonly used nonhydrostatic methods, likely because integrating the hydrostatic balance @z ¼ qg), where ps is the maintaining absolute consistency is unnecessary, but instead must atmospheric pressure at the surface, g is gravity, g is the free- be maintained to some order of accuracy. Specifically, when the free surface height, q is the density and q0 is the (constant) reference surface is evolved in typical nonhydrostatic models, this implies a density, and mH and mv are the horizontal and vertical eddy- vertical velocity from a discrete kinematic condition which may viscosities, respectively. The difference between the nonhydrostatic not necessarily be the same as that which is computed with the pro- equation set and the hydrostatic equation set is the treatment of the jection method. As discussed in Section 3.3, the popular approach of full vertical momentum balance (2c) and the presence of the evolving the free-surface using the hydrostatic provisional veloci- nonhydrostatic pressure terms involving q on the right-hand side ties rather than the final nonhydrostatic velocities still results in a (RHS) of the momentum equations (2). The kinematic nonhydro- method that is second-order accurate (Kang and Fringer, 2005; static pressure is given by q ¼ pnh=q0 in the notation following Vitousek and Fringer, 2013). This suggests that the effective vertical Casulli (1999), where pnh is the nonhydrostatic or dynamic pressure velocity arising from applying the kinematic condition to the conti- due to the vertical momentum or acceleration of the fluid. nuity equation is relatively unimportant. Further support for the Eq. (2) are subject to the incompressibility constraint method developed here comes from the fact that the numerical r u ¼ 0 ð3Þ algorithm (presented in Section 3) simplifies to popular methods used in nonhydrostatic z-coordinate models with a free surface and conservation of density (e.g. Fringer et al., 2006) in the case that only one vertical layer is Dq @q used. Recently, Klingbeil and Burchard (2013) extended a general- ¼ þ r ðuqÞ¼0; ð4Þ Dt @t ized vertical-coordinate model (GETM) to include the nonhydro- static pressure without using the projection method, which where we ignore diffusion of density although it can be added fol- improves performance owing to the lack of an elliptic equation for lowing the methods in standard isopycnal models (Hallberg, the nonhydrostatic pressure. Like our method, the approach of _ Dq – 2000). Diffusion of density leads to q ¼ Dt 0 and to the conun- Klingbeil and Burchard (2013) does not suffer from the conundrum drum of Adcroft and Hallberg (2006) related to the treatment of of Adcroft and Hallberg (2006). Therefore, we do not suggest that nonhydrostatic pressure. We present possible solutions to this issue our method or that of Klingbeil and Burchard (2013) present solu- in Section 3.3. tions to the conundrum, but instead that its potential limitations can be circumvented. 2.2. Mild-slope equations in isopycnal coordinates
1.4. Synopsis The momentum equations in isopycnal coordinates result from applying the coordinate transformation 2 3 The remainder of this paper is divided into five sections. Section 2 3 zx 2 3 @ 10 0 @ zq 2 presents the derivation of the governing equations in continuous @x 6 7 @x 6 7 z 6 7 isopycnal coordinates. Section 3 presents the numerical method 6 @ 7 6 01 y 0 76 @ 7 6 @y 7 6 zq 76 @y 7 used to solve the governing equations. Section 4 discusses stability 6 7 ¼ 6 76 7; ð5Þ 4 @ 5 6 00 1 0 74 @ 5 and convergence of the model. Section 5 presents model validation @z 4 zq 5 @q @ zt @ @t 00 1 with several idealized test cases. Finally, Section 6 presents the zq @t conclusions. Lengthy derivations relevant to the model formula- tion are presented in appendices. (see e.g. Müller, 2006) to the momentum equations in Cartesian coordinates (2). Next, as demonstrated in Appendix A, the resulting equations are subjected to a mild isopycnal-slope approximation to 2. Governing equations remove small metric terms associated with diffusion and the nonhydrostatic pressure from the momentum equations. Neglect- 2.1. Equations in Cartesian coordinates ing the small metric terms associated with diffusion based on a mild isopycnal-slope approximation is perhaps unnecessary. Solomon The governing equations are the Reynolds-Averaged Navier– (1971) and Redi (1982) argued that the representation of diffusion Stokes (RANS) equations with the Boussinesq approximation in a in an isopycnal coordinate system (i.e. using the diffusion operators rotating reference frame. In Cartesian coordinates, the equations in the equations below without the transformation metric terms) is are given by preferable to the representation in a Cartesian coordinate system in S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 121 order to faithfully capture the tendency for along-isopycnal mixing to evolve the layer heights as discussed in Section 3.2. Finally, of scalars and momentum (Montgomery, 1940). The mild-slope the solution procedure for the nonhydrostatic pressure in isopyc- equations in isopycnal coordinates are given by nal coordinates, as discussed in Section 3.3, is similar to procedures in z-coordinates (such as Casulli, 1999; Fringer et al., 2006). @u ~ @M @q þ uH rHu f v þ fw ¼ þ rH ðÞmHrHu For clarity, we present the numerical formulation in 2-D (in an @t @x @x x–z plane). The method is easily extended to 3-D. 1 @ 1 @u þ m ; ð6aÞ z @q v z @q q q 3.1. Discretized momentum equations @v @M @q þ uH rHv þ fu ¼ þ rH ðÞmHrHv The momentum equations (6) are discretized using a second- @t @y @y order accurate finite-difference method on a staggered C-grid in 1 @ 1 @v which the velocities are defined at cell faces and quantities such þ mv ; ð6bÞ zq @q zq @q as the layer heights and nonhydrostatic pressure are defined at cell centers. The model setup and location of the variables of interest @w 1 @q are shown on Fig. 1. In order to discretize the governing equations þ u r w ~fu ¼ þ r ðÞm r w @t H H z @ H H H q q in continuous isopycnal coordinates (6) and obtain the model 1 @ 1 @w equations with a discrete number of layers, we have used a sec- þ mv ; ð6cÞ ond-order accurate finite-difference approximation given by zq @q zq @q
⁄ 1 @/ / / where the star ( ) notation has been dropped for convenience and k 1=2 kþ1=2 : ð9Þ M is the Montgomery Potential given in Eq. (1). The main zq @q hk difference between the equations in Cartesian coordinates (2) The layer index, k, increases downward as is conventional in and isopycnal coordinates (6), besides the appearance of the isopycnal models (Hallberg, 1997; Bleck, 2002). Use of Eq. (9) for Montgomery potential, is the absence of vertical advection of the vertical derivatives and an evolution equation for the layer momentum terms in Eq. (6). height hk makes the numerical method a Lagrangian vertical The continuity equation (3) can be written in two different direction (LVD) algorithm (Adcroft and Hallberg, 2006; Hallberg ways. In existing isopycnal models, the continuity equation is often and Adcroft, 2009) and also allows simulation of fluids with written as constant density. @h Using the spatial discretization above and following existing ¼ r ðu hÞ; ð7Þ @t H H nonhydrostatic operator-splitting procedures, the discrete momentum equations become @z where h ¼ Dq ¼ Dqzq is the thickness of an isopycnal layer. @q n x ðnþh Þ x ðnþh Þ Alternatively, the divergence-free form of the continuity equation u u ðnþ1ÞIm ðnþ1ÞIm ðs Þ ðs Þ iþ1;k iþ1;k g g iþ1;k 1 iþ1;kþ1 2 2 iþ1 i ðnÞEx 2 2 2 2 is written as ¼ g þ F 1 þ n iþ2;k Dt Dx hiþ1;k @ @ @w 2 n 1 n 1 ðzquÞþ ðzqvÞþ ¼ 0: ð8Þ 2 2 @x @y @ qiþ1;k qi;k q a ; ð10aÞ Dx We note that Eq. (7) is used to evolve the thickness of isopycnal n n 1 n 1 layers and Eq. (8) is used to calculate the nonhydrostatic pressure w w z ðnþh Þ z ðnþh Þ 2 2 i;kþ1 i;kþ1 ðs Þ ðs Þ q q 2 2 ðnÞEx i;k i;kþ1 i;k i;kþ1 via an elliptic equation that enforces continuity. This procedure is ¼ G 1 þ n a n ; i;kþ2 Dt hi;kþ1 hi;kþ1 similar to methods that are typically employed in nonhydrostatic, 2 2 z- and r-coordinate models with a free surface and is discussed in ð10bÞ Section 3. The continuity equation (8) is also subject to the mild- representing the hydrostatic prediction step, and slope approximation as discussed in Appendix A. By invoking this nþ1 approximation, the discrete elliptic equation for the nonhydrostatic u 1 u 1 iþ ;k iþ ;k ðqcÞiþ1;k ðqcÞi;k pressure reduces to a symmetric, 5-diagonal linear system in 2 2 ¼ ; ð11aÞ Dt Dx 2-D x–z (7-diagonal in 3-D) as demonstrated in Appendix E. Berntsen and Furnes (2005) invoked a similar approximation by neglecting metric terms appearing from the transformation to r-coordinates. Their approximation also results in a 5-diagonal linear system of equations in 2-D x–z for the nonhydrostatic pressure and produces simulation results that are nearly identical to the full (unapproximated) elliptic equation (Keilegavlen and Berntsen, 2009).
3. Numerical method
The numerical method used to solve the governing equations in isopycnal coordinates must be capable of handling three specific numerical challenges: [1] treatment of stiffness caused by fast free-surface gravity waves, [2] wetting and drying of isopycnal lay- ers, [3] solution of the nonhydrostatic pressure. As discussed in Section 3.1, to treat fast free-surface gravity waves, we split the barotropic and baroclinic parts of the Montgomery potential and discretize them implicitly and explicitly, respectively. Drying of isopycnal layers is handled by using upwind or MPDATA schemes Fig. 1. The isopycnal model setup. 122 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144
nþ1 w w bc bc ðq q Þgz i;k 1 i;kþ1 ðq Þ ðq Þ ð Þ ð Þ kþ1 k k þ2 2 c i;k c i;kþ1 M ¼ M þ : ð17Þ ¼ ; ð11bÞ kþ1 k n q0 Dt h 1 i;kþ2 representing the nonhydrostatic correction step along with the Eq. (17) is a downward recursive relationship that allows the baro- nþ1 n 1 2 2 clinic Montgomery potential to be calculated from the layers above. nonhydrostatic pressure update qi;k ¼ aqi;k þðqcÞi;k. The variables u and w , representing the hydrostatic provisional velocities, are In Eq. (17), the interface locations are calculated from an upward calculated by including all terms in the governing equations except recursive relationship given by the nonhydrostatic correction pressure, q . In Eq. (10), the super- c z ¼ H; ð18Þ scripts enclosed in parenthesis represent Nlayers
ðnÞEx 1 n 1 n 1 b n 2 ðÞ 0 0 ¼ ð3 þ bÞ ðÞi0;k0 ð1 þ 2bÞ ðÞi0;k0 þ ðÞ i0;k0 ð12Þ i ;k 2 2 2 zk 1 ¼ zk þ hk; ð19Þ
ðnþ1ÞIm 1 nþ1 1 n c n 1 1 c 0 0 1 2c 0 0 0 0 13 where H is the depth to the seabed. CHðÞ and DHðÞ represent the ðÞ i0;k0 ¼ ð þ Þ ðÞi ;k þ ð Þ ðÞi ;k þ ðÞ i ;k ð Þ 2 2 2 horizontal advection and diffusion operators, respectively. Horizon- tal advection can be discretized with several different schemes – ðnþh Þ n h 0 0 1 h 0 0 14 ðÞ i0;k0 ¼ ðÞ i ;k þð Þ ðÞi ;k ð Þ the simplest option being the central differencing scheme given un un iþ3;k i 1;k where superscript n represents the time step in the multistep by C un un 2 2 . For horizontal diffusion the operator H i 1;k ¼ i 1;k 2Dx 0 0 þ2 þ2 scheme and subscripts i and k represent dummy indices which un 2un þun iþ3;k iþ1;k i 1;k can become any location on the staggered grid.Here, the terms dis- n 2 2 2 is given by DH u 1 ¼ mH Dx2 , where mH is the horizontal iþ2;k cretized with ðnÞEx and ðnþ1ÞIm in Eqs. (12) and (13), respectively, ðÞ i0;k0 ðÞ i0;k0 eddy-viscosity, which is assumed to be constant. represent the explicit and implicit time stepping procedures The barotropic portion of the Montgomery potential is discret- described in Durran and Blossey (2012). The explicit (12) and ized using the generalized, semi-implicit Adams–Moulton (AM) implicit (13) terms in the momentum equations are weighted using method (13) of Durran and Blossey (2012). This method is reminis- parameters b and c, respectively. For the explicit portion of the cent of the h-method of Casulli (1990) and is intended to eliminate method, b ¼ 0 corresponds to the second-order Adams–Bashforth the time step restriction associated with fast free-surface gravity (AB2) method, b ¼ 5=6 is the AB3 method, and b ¼ 1=2 is the waves. The generalized, explicit/implicit method used here is pref- AX2⁄ method (Durran and Blossey, 2012).On the other hand, for erable to popular methods such as Leapfrog-Trapezoidal3 because 4 the implicit portion of the method, c ¼ 0 corresponds to the trape- it does not require filtering. It is also preferable to AB2(3)-h method zoidal or Crank–Nicolson (CN) method (Crank and Nicolson, 1947), which is unstable for stiff problems in the inviscid limit when h ¼ 0:5 c ¼ 1=2 is the AM2⁄ method, and c ¼ 3=2 is the AI2⁄ method (Durran, 1991). By using the generalized, explicit/implicit method, ðnþh Þ the current model can run stably without horizontal or vertical (Durran and Blossey, 2012).The discretization of ðÞ 0 0 given in i ;k viscosity. Eq.(14) represents the popular semi-implicit time stepping proce- Isopycnal or layered models must use implicit discretization for dure used in Casulli and Cattani (1994). Here, h represents the vertical diffusion of momentum when the isopycnal layers are implicitness parameter, where h ¼ 0 is the forward Euler method, allowed to become arbitrarily thin (Hallberg, 2000). Following h ¼ 1=2 is the CN method, and h ¼ 1 is the backward Euler meth- Casulli (1997), the viscous boundary condition at the free surface od.Finally, the splitting of the governing equations into Eqs. (10) is specified by applying a wind stress given as and (11) represents the nonhydrostatic correction method of Armfield and Street (2000) and Armfield and Street (2003) where x nþ1 ðs Þiþ1;1=2 ¼ cw ðuwÞi 1 u 1 ; ð20aÞ the nonhydrostatic pressure variables are defined at the half time- 2 þ2 iþ2;1 steps, n 1. For the nonhydrostatic portion of the method, the 2 parameter a ¼ 0 or 1 designates the use of the pressure projection x n n n ðs Þiþ1;1=2 ¼ cw ðuwÞiþ1 uiþ1;1 ; ð20bÞ (1st-order accurate) or pressure correction (2nd-order accurate) 2 2 2 method, respectively (Armfield and Street, 2002; Kang and where c is the wind stress coefficient and u is the prescribed Fringer, 2005; Vitousek and Fringer, 2013). w w wind speed. The boundary condition at the seabed is specified by The advection, diffusion, Coriolis, and surface pressure2 are dis- n applying the quadratic drag law cretized with the explicit method given in Eq. (12). In Eq. (10), F 1 iþ2;k n x n and Gi;k 1 represent the terms discretized using the generalized, ðs Þiþ1;N þ1=2 ¼ Cdju 1 ju 1 ; ð21aÞ þ2 2 layers iþ2;Nlayers iþ2;Nlayers explicit AB method(12) and are given by n n n n ~ x n n n F 1 C u D u f 1 fw 1 ðs Þ 1 ¼ Cdju 1 ju 1 ; ð21bÞ iþ ;k ¼ H iþ1;k þ H iþ1;k þ viþ ;k iþ ;k iþ ;Nlayersþ1=2 iþ ;N iþ ;N 2 2 22 2 2 2 layers 2 layers n n ðbcÞ ðbcÞ n n M M where C is the drag coefficient. In Eq. (21a), the term representing 1 ðpsÞiþ1 ðpsÞi iþ1;k i;k d ; ð15aÞ the velocity magnitude is taken at time step n as is common for q0 Dx Dx implicit discretization of the drag term. This time-lagging approach n n n ~ n removes the need to solve a nonlinear system of equations for the Gi;kþ1 ¼ CH wi;kþ1 þ DH wi;kþ1 þ fui;kþ1; ð15bÞ 2 2 2 2 horizontal velocity. For the vertical momentum equation, there is ðbcÞ z where M is the baroclinic Montgomery potential which is given by no stress applied in the vertical direction at the surface, s 1 ¼ 0, i; 2 ðbcÞ z M ¼ 0; ð16Þ and at the bottom, s 1 ¼ 0. The shear stress between layers 1 i;Nlayersþ2 in the horizontal momentum equation is given by
2 Although the surface pressure is, technically, part of the barotropic pressure or u u 3 iþ1;k iþ1;kþ1 barotropic Montgomery potential, explicit treatment of this term is common and x Leapfrog is used for the2 explicit terms2 and the trapezoidal method is used for the ðs Þiþ1;kþ1 ¼ðmv Þkþ1 n ; ð22aÞ sufficient because it does not lead to problem stiffness. In contrast, the g term in the implicit2 terms.2 2 g hiþ1;kþ1 barotropic Montgomery potential leads to stiffness associated with fast free-surface 4 AB2 or AB3 is used for the explicit2 2 terms and the h-method is used for the implicit gravity waves and thus requires implicit discretization. terms. S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 123
n n u 1 u 1 needed that is not located at the position on the grid where it is x n iþ2;k iþ2;kþ1 ðs Þi 1;k 1 ¼ðmv Þk 1 n : ð22bÞ þ2 þ2 þ2 defined (such as hi 1;k; hi;k 1,orhi 1;k 1 ), then it is approximated with hiþ1;kþ1 2 2 2 2 2 2 linear interpolation. Finally, the momentum equations (24) can be In the vertical momentum equation, the shear stress between layers written as is given by 1 Dt ÀÁ ~n nþ1 nþ1 ~ u 1 ¼ T 1 ð1 þ cÞg giþ1 gi eiþ1; ð28aÞ iþ2 iþ2 2 w 1 w 1 2 Dx z i;k 2 i;kþ2 ðs Þ ¼ðmv Þ n ; ð23aÞ i;k k h ~n i;k wi ¼ Si ; ð28bÞ
wn wn where i;k 1 i;kþ1 ðszÞn ¼ðm Þ 2 2 : ð23bÞ ~n 1 n i;k v k n Tiþ1 ¼ Aiþ1Tiþ1; ð29aÞ hi;k 2 2 2 ~ 1 In Eqs. (22a) and (23a), the layer height h is taken at time step n to ei 1 ¼ A 1e; ð29bÞ þ2 iþ2 eliminate the need to solve a fully nonlinear system. In order to demonstrate the numerical procedure used with 1 n S~n ¼ B S ; ð29cÞ implicit vertical diffusion, it is helpful to use matrix notation. After i i i substituting Eqs. (22) and (23) and the boundary conditions for the represent the solutions following the tridiagonal inversion for each shear stress, s, the hydrostatic portion of the discrete momentum column of grid points in the horizontal. equations (10) can be written in matrix form as ÀÁ 3.2. Discretized free-surface and layer-height equations n 1 Dt nþ1 nþ1 Aiþ1uiþ1 ¼ Tiþ1 ð1 þ cÞg giþ1 gi e; ð24aÞ 2 2 2 2 Dx In isopycnal models the layer height continuity equation (7) is n used to evolve both the free surface and the internal interface Biw ¼ S ; ð24bÞ i i (Adcroft and Hallberg, 2006). In the present model, we differentiate T where u 1 ¼½u 1 ; u 1 ; ...; u 1 ; ...; u 1 and wi ¼½w 1; the free surface from internal interfaces. Accordingly, we derive iþ2 iþ2;1 iþ2;2 iþ2;k iþ2;Nlayers i;2 w ; ...; w ; ...; w T are the hydrostatic predictor (⁄) veloc- separate but consistent model equations for the evolution of the i;3 i;kþ1 i;N þ1 2 2 layers 2 internal layers heights h, and free surface, g, both of which use nþ1 ities throughout a column of grid points. The equations for u 1 and the generalized, semi-implicit AM method of Durran and Blossey iþ2 nþ1 n n (2012). wi based on Eq. (11) are detailed in Section 3.3. Vectors Tiþ1 and Si 2 The layer height continuity equation (7) is discretized with the contain all explicit terms of the momentum equations (10) which generalized semi-implicit AM method and is given by include the AB terms (at time levels n; n 1, and n 2) as well as nþ1 n the explicit parts of the time derivative, semi-implicit free-surface h h i;k i;k 1 n ðnþ1ÞIm n ðnþ1ÞIm ¼ h 1 u h 1 u ; ð30Þ method (13), h-method (14), and nonhydrostatic pressure, viz. iþ ;k iþ1;k i ;k i 1;k Dt Dx 2 2 2 2
ÀÁ ðnþ1Þ n n 1 Dt n n where u Im ¼ 1 ð1 þ cÞu þ 1 ð1 2cÞun þ c un 1 following Eq. T 1 ¼ u 1 ð1 2cÞg g g e i 1 2 i 1 2 i 1 2 i 1 iþ iþ iþ1 i 2 2 2 2 2 2 2 Dx ÀÁ 1 1 (13) and using the hydrostatic predictor velocity u instead of the c Dt n 1 n 1 ðnÞ Dt n n g g g e þ DtF Ex a q 2 q 2 nþ1 iþ1 i iþ1 iþ1 i final velocity u . Using a first-order upwind approach to calculate 2 x 2 x D D n n hi 1;k and assuming a positive flow direction, Eq. (30) (following the þ Dtð1 hÞðDAÞ 1u 1; ð25aÞ 2 iþ2 iþ 2 approach of Stelling and Duinmeijer, 2003) can be written as 1 0 1 n ðnþ1Þ ðnþ1Þ n n ðnÞEx 2 n u Im Dt u Im Dt Si ¼ wi þ DtGi aDtDz qi þ Dtð1 hÞðDBÞiwi ; ð25bÞ i 1;k i 1;k nþ1 @ þ2 A n 2 n hi;k ¼ 1 hi;k þ hi 1;k; ð31Þ n n n n Dx Dx where u 1; Fiþ1 and wi ; Gi are defined similar to u 1 and wi (i.e. they iþ2 2 iþ2 represent the variables of a column of grid points) and with uðnþ1ÞIm P 0. A similar form can be obtained for uðnþ1ÞIm 6 0. As i 1;k i 1;k n 1 n 1 n 1 2 2 T Nlayers 1 2 2 2 n e ¼½1; 1; ...; 1 2 R and Dz qi ¼ qi;k qi;kþ1 =hi;k 8k seen in Eq. (31), as long as the advective Courant number ðnþ1Þ represents the vertical first derivative. The matrices A and B, given by u Im Dt n 1 iþ1;k ð þ ÞIm 2 6 U 1 ¼ Dx 1 then positive water depths are obtained iþ2;k Aiþ1 ¼ I DthðDAÞiþ1; ð26aÞ 2 2 without any special treatment for wetting and drying (Stelling and Duinmeijer, 2003). We can apply MPDATA corrections (outlined Bi ¼ I DthðDBÞi; ð26bÞ in Appendix C) to the first-order upwinding approach to ensure that the method is second-order accurate in time and space and the with DA and DB being tridiagonal matrices of the form "# !layer heights remain positive. ðmv Þk 1 ðmv Þk 1 ðmv Þk 1 ðmv Þk 1 2 2 þ2 þ2 The equation governing the evolution of the free surface is ðDAÞ 1 ¼ tridiag n n ; n n þ n n ; n n ; iþ2 h 1 h 1 1 h 1 h 1 1 h 1 h 1 1 h 1 h 1 1 iþ2;k iþ2;k 2 iþ2;k iþ2;k 2 iþ2;k iþ2;kþ2 iþ2;k iþ2;kþ2 derived by summing Eq. (30) over the layer index k. The resulting ð27aÞ free-surface equation is given by hi "# ! n nþ1 n n nþ1 n nþ1 n ða1Þ 1g þ 1 þða1Þ 1 þða1Þ 1 g ða1Þ 1g ¼ R ; ð32Þ i 2 i 1 i 2 iþ2 i iþ2 iþ1 i ðmv Þk ðmv Þk ðmv Þkþ1 ðmv Þkþ1 ðDBÞi ¼ tridiag n n ; n n þ n n ; n n ; hi;kþ1hi;k hi;kþ1hi;k hi;kþ1hi;kþ1 hi;kþ1hi;kþ1 which is a tridiagonal equation in one horizontal dimension or a 2 2 2 2 ÂÃ n 1 Dt 2 T ð27bÞ block tridiagonal in 3-D. The coefficients ða1Þ 1 ¼ g ð1 þ cÞ e i 2 2 Dx n ðh 1 e~i 1Þ (where is the element-wise product) and the right- represent the implicit discretization of vertical diffusion of momen- i 2 2 n tum. Note that the first and last diagonal elements of the tridiagonal hand side Ri are derived in Appendix B. matrix (27a) must be modified to account for the proper boundary Because both the free-surface equation (32) and the sum of conditions in Eqs. (20) and (21), respectively. When a variable is the layer heights given by Eq. (30) provide an estimate of the 124 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 free-surface height, g, these estimates can become inconsistent In Eq. (34), k ¼ Dx=h is the grid leptic ratio or lepticity (Scotti and over the course of a simulation. Models that use a mode-split Mitran, 2008) of the isopycnal layer. This parameter is a measure time-stepping procedure are susceptible to this inconsistency, as of the ratio of numerical to physical dispersion (Vitousek and discussed at length by Hallberg and Adcroft (2009). In the present Fringer, 2011) and sets the anisotropy of the elliptic equation model, consistency between the free-surface equation (32) and (34). Derivation of the full elliptic equation in isopycnal coordinates the layer-height equation (30) is ensured as long as the same flux (without the mild-slope approximation) is presented in Appendix E. n 5 face heights, h 1 , are used in each equation. However, when using Eq. (34) is quite similar to the elliptic equation derived from z-coor- i 2;k upwinding or MPDATA for Eq. (30) or solving the free-surface equa- dinates. The only significant difference is that, here, the coefficients tion (32) using a non-exact (iterative) method such as conjugate gra- are based on the time-variable grid aspect-ratio k ¼ Dx=h where as dients, this is generally not the case. Notice how according to Eqs. in z-coordinates the grid aspect ratio (Dx=Dz) is fixed in time. Since n the condition number of the linear system is related to the grid (30) and (31) we seek to upwind the flux face heights, hi 1;k, using 2 aspect ratio (Marshall et al., 1997b; Kramer et al., 2010; Fiebig- ðnþ1ÞIm n 6 the velocity u 1 . This velocity and thus hi 1;k are unknown when Wittmaack et al., 2011), time variability of the coefficients of Eq. i 2;k 2 the free-surface equation (32) is solved because the velocity uðnþ1ÞIm (34) results in time variability of the condition number of the linear depends on u which depends on gnþ1 according to Eq. (28a). There system. However, we find that popular elliptic solvers, such as pre- are a few methods that can be used to remove the inconsistency conditioned conjugate gradients or multigrid with semi-coarsening 7 between the free-surface equation (32) and the layer-height equation and line-relaxation (Briggs et al., 2000), are suitable to solving Eq. (30). One option is to use an iterative procedure between the free- (34) efficiently. surface equation (32) and the layer-height equation (30). The values As discussed previously, Adcroft and Hallberg (2006) conclude that the nonhydrostatic equations and the LVD approach (using a n ðnþ1ÞIm of hi 1;k (based on upwinding of the velocity u 1 ) can be reused in nþ1 2 i 2;k prognostic equation for h as in Eq. (30)) are mutually exclusive. the free-surface equation and the entire procedure can be iterated The present study is not limited by this issue. As mentioned in Sec- until convergence is reached. This procedure is outlined in detail in tion 1.3, the two forms of the continuity equation, the layer-height Section 3.4. In general, we have found that this iterative procedure equation (30) and the divergence-free equation (33), assume differ- converges quite rapidly in Oð1Þ iterations. Other non-iterative ent roles in the numerical method. In fact, the numerical method in options to remove this inconsistency include: [1] upwind the flux the current approach is remarkably similar to nonhydrostatic n face heightsP based on the u velocity; [2] directly set the free surface methods with a free surface in z-coordinates. Here, the hydrostatic g to hk Hi, where Hi is the still water depth at location i; or [3] portion of the method advances the free surface and layer heights apply a uniform expansion/contraction of the isopycnal layers to fit (or the free surface alone when using z-coordinates). Next, the non- PgþH hydrostatic method is used to correct the velocities while holding the total depth according to hk ¼ hk (Bleck and Smith, 1990; hk the layers fixed. As a result, the final free surface and layer heights Hofmeister et al., 2010). Method [3] is generally the preferred method are not consistent with the layer-height continuity equation in used in existing isopycnal models. terms of the final velocities (at time n þ 1). A ‘‘fully’’ nonhydrostatic method would require iteration of the elliptic and layer-height 3.3. Nonhydrostatic pressure equations. However, holding the free surface fixed during the nonhydrostatic portion of the pressure correction method in Eq. (28) provide the hydrostatic predictor portion of the numer- z-coordinates does not impact the order of accuracy (Armfield ical solution. To obtain the nonhydrostatic solution, the hydrostatic and Street, 2000; Kang and Fringer, 2005; Vitousek and Fringer, predictor velocities are corrected according to Eq. (11) in order to 2013). The convergence analysis presented in Section 4.2 demon- satisfy the divergence-free constraint. The nonhydrostatic correc- strates that this is also the case when fixing the layer heights during tion pressure qc is determined from the solution of a Poisson equa- the nonhydrostatic portion of the method in isopycnal coordinates. tion which is derived by substituting the nonhydrostatic correction nþ1 nþ1 velocities, u 1 and w 1, from Eq. (11) into the discrete diver- 3.4. Solution procedure i 2;k i;k 2 gence-free condition which, as derived in Appendix D, is subject The solution procedure for one time step of the present model is to a mild-slope approximation and is given by given by: 1 nþ1 nþ1 nþ1 nþ1 nþ1 nþ1 h 1 u h 1 u w w 0: 33 iþ ;k iþ1;k i ;k i 1;k þ i;k 1 i;kþ1 ¼ ð Þ Dx 2 2 2 2 2 2 1. Calculate the explicit portions of the horizontal and vertical Substituting (11) into (33) results in a symmetric linear system of n n momentum equations, T and S , using Eq. (25). equations for the nonhydrostatic correction pressure q that is c 2. Solve the implicit vertical diffusion equations (29) to compute given by ~n ~ ~n 0 1 T 1, eiþ1, and Si for each column of grid points in the horizontal iþ2 2 1 1 1 where the tridiagonal matrices A 1 and Bi, given Eqs. (26a) and nþ1 @ nþ1 nþ1 A iþ2 ki;k 1ðqcÞi;k 1 þ nþ1 ðqcÞi 1;k ki;k 1 þ ki;kþ1 þ nþ1 þ nþ1 ðqcÞi;k 2 2 2 (26b), respectively, represent implicit discretization of vertical ki 1;k ki 1;k kiþ1;k 2 2 2 diffusion. 1 nþ1 3. Solve the implicit free-surface equation (32) to obtain the free- þ nþ1 ðqcÞiþ1;k þ ki;kþ1ðqcÞi;kþ1 k 2 nþ1 iþ1;k surface height at the next time step, g . 2 Dx 1 nþ1 nþ1 4. Compute the hydrostatic predictor velocities u 1 and wi using iþ2 ¼ hiþ1;kuiþ1;k hi 1;kui 1;k þ wi;k 1 wi;kþ1 ð34Þ Dt Dx 2 2 2 2 2 2 Eq. (28). 5. Compute the layer heights, hnþ1, using Eq. (30) and (optionally) the MPDATA procedure described in Appendix C. 5 Naturally, since the free-surface equation is derived from the layer-height 6. If an iterative procedure is used to obtain consistency between nþ1 nþ1 equation. g and h , return to step 3, where the a1 coefficients in the 6 n The initial flux face heights, h 1 , and thus a and R in the free-surface equation i 2;k n (32) are approximated using the upwinded layer heights based on the u 1 velocity i 2;k
ðnþ1ÞIm instead of the u 1 velocity which is calculated later. 7 i 2;k A method developed for anisotropic problems. S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 125
free-surface equation (32) are updated based on upwinding the and KH billows do not exist. However, in general, we do not attempt velocities (uðnþ1ÞIm =f(u ; un; un 1)) obtained in step 4. If the iter- to proactively avoid dynamical situations where KH billows ate values for hnþ1 have converged to some tolerance, continue develop. As is typically the case in hydrostatic isopycnal models, we have found that the small amount of damping due to viscosity, to step 7. If a non-iterative procedure is used, set drag, and the numerical schemes is usually sufficient to suppress nþ1 Pgnþ1þH nþ1 hk ¼ nþ1 hk and continue. instability due to the KH mechanism. hk 7. Update the interface locations, z (see Fig. 1), and the baroclinic The numerical stability of the time-stepping method used in the Montgomery potentials, MðbcÞ, using Eqs. (19) and (17), current model is investigated in Durran and Blossey (2012). For a respectively. 1-D stiff, linear model problem, Durran and Blossey (2012) deter- 8. For the nonhydrostatic method, solve the Poisson equation (34) mined a maximum Courant number of 0.76 and 0.72 for the AM2⁄-AX2⁄ and AI2⁄-AB3 methods, respectively. We generally find for the nonhydrostatic correction pressure (qc), correct the horizontal predictor (hydrostatic) velocities using the nonhy- that the 2-D model is stable for nonlinear simulations when the 1 1 ciDt nþ2 n 2 internal Courant number, C ¼ < 0:5 where c is the maximum drostatic pressure (11a), and set q ¼ qc þ aq . To run the i Dx i
model in hydrostatic mode, this step is ignored; qc ¼ 0 and (mode-1) internal wave speed. We also find that the model is sta- unþ1 ¼ u . ble when the horizontal diffusion Courant number 9. Finally, compute the vertical velocity by integrating the conti- 2mH Dt CmH ¼ Dx2 < 0:25 when using AB3. Additionally, we require that nuity equation (33) from the bottom grid cell (where uDt 6 the horizontal advective Courant number Cu ¼ Dx 1 to ensure w 1 ¼ 0) upward. i;Nlayersþ2 positive layer heights according to Eq. (31). There is no time step restriction associated with vertical advection since such terms do not appear in the governing equation (6). In 3-D, the maximum 4. Stability and convergence Courant numbers may be reduced even further. In general, there is no restriction on the free-surface Courant number since the time 4.1. Stability stepping method for the surface gravity-wave terms is A-stable (Durran and Blossey, 2012). The current model is susceptible to both physical and numerical instabilities. The physical instability is due to the formation of 4.2. Convergence Kelvin–Helmholtz (KH) billows that may occur when the Richardson number (Ri) is less than 1/4 (Miles, 1961; Howard, 1961). Numerical As mentioned in Section 3.1, the numerical method is second- instability, on the other hand, is related to the Courant numbers for order accurate in time, space, and the number of layers. To demon- the time stepping of terms such as the baroclinic pressure gradient, strate this convergence rate, the model is run with an idealized, advection of momentum, horizontal viscosity, or updating the layer inviscid two-layer internal seiche in an enclosed domain as the heights. temporal, horizontal, and vertical model resolution is increased. Although nonhydrostatic models using z- and r-coordinates are In the following convergence tests, the measure of convergence capable of resolving KH billows, layered and isopycnal coordinate of the solution is obtained by formulations are not. The formation of KH instabilities renders layered models ill-posed and unstable (Grue et al., 1997; Jo and Error ¼ solutionðDt; Dx; or DhÞ solutionðDt=2; Dx=2; or Dh=2Þ; Choi, 2002; Castro-Díaz et al., 2011; Mandli, 2013). Chumakova ð35Þ et al. (2009) showed that the condition for instability of the inviscid, multilayer shallow water (i.e. hydrostatic) equations is Ri < 1=4. where ‘‘solution’’ means the numerical solution of variables of Barad and Fringer (2010) found that KH billows develop on internal interest such as g; n (the interface displacement), u; w and q at the solitary waves when Ri < 0:1. The appearance of KH instabilities in final time tmax with a time step of Dt, a grid spacing of Dx, or a layer layered models can be suppressed by adding viscosity (Castro-Díaz spacing of Dh, respectively. et al., 2011), filtering (Jo and Choi, 2008) or adopting a different For the convergence study and the following numerical numerical formulation (Choi et al., 2009). The current model does experiments, we use the AM2⁄-AB3 numerical method, for which not take active measures to remove this physical instability. c ¼ 1=2 and b ¼ 5=6(Durran and Blossey, 2012). The convergence Instead, the model is typically applied in regimes where Ri > 1=4 analysis shown in Fig. 2 is performed for the evolution of an
A B C
−6 10 2
−8 10 ξ [m] ||Error|| η [m] u [m s−1] w [m s−1] −10 q [m2 s−2] 10 q [m2 s−2] extrap O(Δt) O(Δt2)
−1 0 1 1 10 10 10 10 Δ t [s] Δ x [m] Δ h [m]
Fig. 2. The temporal, horizontal, and vertical resolution convergence analysis in panels A, B, and C, respectively. The convergence analysis shows that the method converges with second-order accuracy in both time and space. 126 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144
1 layer 4 layers 10 layers 1020 0 A B C 1015
1010 −5 z [m] 1005
−10 1000 2 layers 4 layers 10 layers 0 1020 D E F 1015
−5 1010 z [m] 1005
−10 1000 6 layers 20 layers 20 layers 0 1020 G H I 1015
−5 1010 z [m] 1005
−10 1000 0 50 100 0 50 100 0 50 100 x [m] x [m] x [m]
Fig. 3. Initial density configurations (in kg m 3) for a free-surface seiche (panels A,B,C), a 2-layer internal seiche (panels D,E,F), and a continuously-stratified internal seiche with a tanh density profile (panels G,H,I). In Sections 5.1–5.3, we use smaller wave amplitudes than shown here so that linear theory is valid.
internal seiche initialized with a cosine wave of the form The vertical layer refinement convergence experiment, shown n ¼ z1 þ H=2 ¼ ai cosðpx=LÞ (z1 is the location of the internal inter- in Fig. 2C, is run with ai ¼ 1m, L ¼ 100 m, and H ¼ 100 m and a face, H is the depth, and L is the domain length) with upper- and small fixed time step of Dt ¼ 0:01 s for 100 time steps. The model 3 lower-layer densities given by q1 ¼ 1000 kg m and q2 ¼ is run with a fixed horizontal resolution of Nx ¼ 512 and variable 3 1001 kg m , respectively. The problem setup is similar to the number of layers Nlayers ¼ ½ 2; 4; 8; 16; 32 . We note that although configuration shown in Fig. 3D. We use the pressure correction the model may have more than two layers, the density only method, a ¼ 1, and an iterative procedure for the free surface with changes across the density interface at mid-depth. The density of MPDATA. 3 the upper half of the layers is q1 ¼ 1000 kg m and the density The temporal convergence experiment, shown in Fig. 2A, is run 3 of the lower half of the layers is q2 ¼ 1001 kg m . The variables with ai ¼ 1m,L ¼ 1000 m, and H ¼ 100 m and with Nx ¼ 128 grid of interest are interpolated to the location of the free surface g or points in the horizontal and 2 layers in the vertical for various time ÂÃ internal interface n at the final time tmax with a vertical layer reso- step sizes Dt ¼ 1 ; 1 ; 1 ; 1 ; 1 s with t ¼ 50 s. As shown in Fig. 2A, 32 16 8 4 2 ÀÁmax lution ofDh ¼ H=Nlayers. As shown in Fig. 2C, the numerical solution 2 the numerical solution gives O Dt convergence with refinement gives O Dh2 convergence with refinement of the layer heights, of the time step size, Dt, as expected. In Fig. 2A, the first-order con- Dh, as expected. vergence rate of the nonhydrostatic pressure, q, arises because the 1 nonhydrostatic pressure is defined at time n þ 2 (Armfield and Street, 2003; Fringer et al., 2006). If this pressure is extrapolated 5. Numerical experiments 1 3 3 nmax 1 nmax to the final time tmax ¼ nmaxDt using qextrap ¼ q 2 q 2þ 2 2 In this section, numerical experiments are conducted to verify OðDt2Þ, then OðDt2Þ convergence is achieved as demonstrated by the model. The test cases employed here are: (1) free-surface, (2) the slope of q in Fig. 2A. extrap two-layer, and (3) continuously stratified seiches in enclosed The horizontal grid refinement convergence experiment, shown domains; the formation of internal solitary waves (4) following in Fig. 2B, is run with ai ¼ 1m, L ¼ 100 m, and H ¼ 100 m and a KdV theory, (5) following Vitousek and Fringer (2011), and (6) fol- small fixed time step of Dt ¼ 0:01 s for 100 time steps. The model lowing the laboratory experiments of Horn et al. (2001); (7) inter- is run with 2 vertical layers and a variable number of horizontal grid nal wave generation over a ridge in the South China Sea after points Nx ¼ ½ 4; 8; 16; 32; 64; 128 . Because the model uses a Buijsman et al. (2010); (8) the formation of internal wave beams staggered grid, variables located at cell centers such as g are inter- generated from oscillatory flow over a sill [see e.g. Kundu, 1990]. polated to the location x ¼ 0 using AB2, g ¼ 3 g 1 g þOðDx2Þ. ⁄ ðx¼0Þ 2 1 ÀÁ2 2 All of the numerical experiments use the AM2 -AB3 numerical As shown in Fig. 2B, the numerical solution gives O Dx2 conver- method (for which c ¼ 1=2 and b ¼ 5=6(Durran and Blossey, gence with refinement of the horizontal grid spacing, Dx,asexpected. 2012)), the pressure correction method (a ¼ 1), the iterative proce- S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 127
Table 1 Dispersion relations for numerical experiments in Sections 5.1–5.3.
Section Sieche test case c (wave speed) ch ¼ lim c(shallow-water limit) cd ¼ lim c (deep-water limit) kH!0 kH!1 qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi pffiffi ffiffiffiffiffiffi q 5.1 Free-surface g gH g k tanhðkHÞ k qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiÀÁ q ffiffiffiffiffiffi q ffiffiffiffi 5.2 Two-layer internal g0 kH g0 H g0 2k tanh 2 4 2k qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiÀÁ q ffiffiffiffiffiffi qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi 5.3 Continuously stratified g0 kH g0 H g0 2k tanh 2 f iðkdqÞ 4 f iðkdqÞ 2k f iðkdqÞ
dure for the free surface and the first-order upwind method to The initial configuration of this numerical experiment is compute the flux-face heights unless stated otherwise. All of the depicted in Fig. 3(A–C), but with varying domain sizes, number 8 numerical experiments are run without surface pressure, ps ¼ 0, of layers, and a smaller seiche amplitude. We note that the densi- or Coriolis force, f ¼ ~f ¼ 0. ties of each layer do not necessarily need to change from one layer to the next as in the case of a free-surface seiche. The model is initial- 5.1. Free-surface seiche ized with a cosine wave of the form g ¼ a cosðpx=LÞ where the seiche amplitude is given by a ¼ 0:1 m and the depth is given by H ¼ 10 m
In Sections 5.1–5.3, the (inviscid) isopycnal model is validated on a grid with Nx ¼ 64 grid points in the horizontal and a varying 3 against linear gravity-wave theory. The dispersion relations used number of layers in the vertical each with density q0 ¼ 1000 kg m . in the numerical experiments in Sections 5.1–5.3 are listed in To change the degree of nonhydrostasy, kH, the model is run with Table 1. varying domain lengths while holding the depth fixed. The model In Table 1, k 2 =k is the wavenumber where k 2L is the cDt ¼ p w w ¼ is run with a free-surface Courant number C ¼ Dx ¼ 1 for 1.5 seiche fundamental wavelength in an enclosed domain of length L; H is periods, tmax ¼ 1:5T where T ¼ 2p=x. q q the depth, g is gravity, g0 ¼ 0 g is the reduced gravity, kH ! 0 The modeled wave speeds for the nonhydrostatic and hydro- q0 is the (hydrostatic) shallow-water limit, kH !1is the (nonhydro- static models normalized by the theoretical wave speed agree with ÀÁ 1 the relationships given by cnh=c ¼ 1 and Eq. (36), respectively, as static) deep-water limit, and f ðkdqÞ¼ 1 þ kdq=2 accounts for i shown in Fig. 4A. This indicates that the model achieves the correct the effect of the finite-thickness interface (Kundu, 1990) where dispersive behavior. When the nonhydrostasy parameter kH is d is the pycnocline thickness as discussed in Section 5.3. q small, the hydrostatic and nonhydrostatic models are similar. In Sections 5.1–5.3, the modeled wave speeds are determined However, when there is an appreciable degree of nonhydrostasy, by estimating the period of oscillation, T , from the simulation modeled the hydrostatic model overpredicts the true wave speed. Fig. 4A start time to the time of the next maximum in the free surface or also demonstrates how the number of isopycnal layers affects isopycnal at x ¼ 0 and then calculating the wave speed based on the dispersive properties of the model. The effect of the nonhydro- c ¼ x =k ¼ 2p=ðkT Þ. modeled modeled modeled static pressure is to introduce depth-variability in the velocity field In Table 1, the ratio of the hydrostatic wave speed to the theo- 1 retical (nonhydrostatic) wave speed for a free-surface seiche is that decays like k . Nonhydrostatic models with a limited number given by of layers underpredict the wave speeds, particularly for large val- sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi ues of kH. However, as layers are added to the nonhydrostatic c kH model, the modeled wave speeds converge rapidly to the theory. h ¼ : ð36Þ c tanhðkHÞ For problems with low to moderate kH, a nonhydrostatic model with two layers is sufficient to accurately capture the dispersion In this numerical experiment, we compare the wave speeds of the (Stelling and Zijlema, 2003; Zijlema and Stelling, 2005). On the nonhydrostatic and hydrostatic models to the theoretical wave other hand, hydrostatic waves are non-dispersive and induce hor- speed. Eq. (36) shows that the hydrostatic model always overpre- izontal velocities that are depth-invariant (see Eq. (38a)). Conse- dicts the wave speed except in the limit that kH ! 0. In this numer- quently, the wave speeds in the hydrostatic model are ical experiment, we also compare depth-profiles of the horizontal uninfluenced by the number of layers. and vertical velocity in the nonhydrostatic and hydrostatic models The test case for the velocity profiles of a free-surface seiche uses to linear theory. The analytical solutions for the horizontal and ver- the same parameters as above except with H ¼ 16 m, L ¼ 10 m, and tical velocity of a nonhydrostatic free-surface seiche are given by Nlayers ¼ 20 which are chosen so that the experiment is strongly nonhydrostatic. Fig. 5A shows the normalized horizontal velocity k cosh ðÞkzðÞþ H u ¼ ag sinðkxÞ sinðxtÞ; ð37aÞ profiles for the nonhydrostatic and hydrostatic models at location cosh kH x ðÞ x ¼ L=2 as compared to the theoretical profiles given in Eqs. (37a) and (38a), respectively, at time t ¼ T=4. Likewise, Fig. 5B shows k sinh ðÞkzðÞþ H w ¼ ag cosðkxÞ sinðxtÞ; ð37bÞ the normalized vertical velocity profiles from the nonhydrostatic x cosh ðÞkH and hydrostatic model at location x ¼ 0 as compared to the where a is the initial amplitude of the free-surface seiche with ana- theoretical profiles given in Eqs. (37b) and (38b), respectively, at lytical solution g ¼ a cosðkxÞ cosðxtÞ. The corresponding analytical time t ¼ T=4. In each case the model accurately reproduces the solutions for the horizontal and vertical velocity profiles of a hydro- theoretical behavior. The most significant difference between the static free-surface seiche are given by hydrostatic and nonhydrostatic velocity profiles is the depth- variation of the horizontal velocity. As seen in Fig. 5A, the k u ¼ ag sinðkxÞ sinðxtÞ; ð38aÞ hydrostatic horizontal velocity profile does not vary with depth. x In contrast, the nonhydrostatic horizontal velocity profile decays rapidly with depth from its maximum value at the free surface. k w ¼ ag ðÞkzðÞþ H cosðkxÞ sinðxtÞ; ð38bÞ x 8 Note: the seiche amplitude is chosen to be small to minimize the free-surface which can be found by taking Eq. (37) in the limit that kH ! 0. nonlinearity, d ¼ a=H, so that linear wave theory is valid. 128 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144
Surface Wave Internal Wave (2−layer) Internal wave (tanh density profile)
H Theory H Theory H Theory 3 NH Theory A NH Theory B NH Theory C H Mod. (2 layers) H Mod. (2 layers) H Mod. (6 layers) NH Mod. (2 layers) NH Mod. (2 layers) NH Mod. (6 layers) H Mod. (4 layers) H Mod. (4 layers) H Mod. (10 layers) NH Mod. (4 layers) NH Mod. (4 layers) NH Mod. (10 layers) 2.5 H Mod. (10 layers) H Mod. (10 layers) H Mod. (20 layers) NH Mod. (10 layers) NH Mod. (10 layers) NH Mod. (20 layers) H Mod. (20 layers − hybrid) NH Mod. (20 layers − hybrid) 2 0 c/c
1.5
1
0.5 0 2 4 6 0 2 4 6 0 2 4 6 kH kH kH
Fig. 4. The dispersive characteristics of a free-surface seiche (Fig. 3, top row), a 2-layer internal seiche (Fig. 3, middle row), and a continuously stratified internal seiche (Fig. 3, bottom row) in panels A, B, and C, respectively, for hydrostatic (red) and nonhydrostatic (blue) equations. The modeled and theoretical wave speeds are normalized by the theoretical wave speed, c0, for each scenario. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this article.)
Surface Wave Internal wave (2−layer density profile) Internal wave (tanh density profile) 0 H Theory NH Theory A C E −0.2 H Model NH Model −0.4 0 z/H −0.6 H Theory NH Theory 1 −0.8 NH Theory 2 H Model NH Model −1 −1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1 u(z)/u u(z)/u u(z)/u max max max
0 B D F −0.2
−0.4 0 z/H −0.6
−0.8
−1 −1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1 −1 −0.5 0 0.5 1 w(z)/w w(z)/w w(z)/w max max max
Fig. 5. Normalized horizontal and vertical velocity profiles for a free-surface seiche (panels A and B), a two-layer internal seiche (panels C and D), and a continuously stratified internal seiche with a tanh density profile (panels E and F) for the hydrostatic (red) and nonhydrostatic (blue) models. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this article.)
sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi 5.2. Two-layer internal seiche c kH=2 h ¼ : ð39Þ c tanhðkH=2Þ In this test case, the (inviscid) isopycnal model is validated against linear theory describing internal gravity waves in a two- layer system. From Table 1, the ratio of the hydrostatic wave speed Eq. (39) exhibits similar behavior to that of the free-surface seiche, to the theoretical wave speed for a two-layer seiche is given by (36), but differs in that the nonhydrostasy parameter is effectively S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 129
halved for the internal seiche because the interface is located in the where the depth is H ¼ 10 m, as ¼ 0:99 [see Fringer and Street, 3 middle of water column which is effectively half as deep. In this test 2003], dq ¼ 1m, q0 ¼ 1000 kg m , and the density difference is case, we also compare depth profiles of the horizontal and vertical given by Dq=q0 ¼ 0:01. The interface height n ¼ ai cosðkxÞ and velocity from the nonhydrostatic and hydrostatic models to theory ai ¼ 0:1 m as in the previous test case. The isopycnal layers are which is computed with the first-mode linearized eigenfunction initialized to density contours that are linearly spaced in density analysis of Fringer and Street (2003). space. Using this approach, the layers are localized at the stratified The initial configuration of this numerical experiment on the interface as shown in Fig. 3H. This approach resolves the stratifica- behavior of a two-layer internal seiche is shown in Fig. 3(D–F), tion, but does not resolve the vertical variability caused by the but with varying domain sizes, number of layers, and a smaller nonhydrostatic effects (since no additional layers are present away constant seiche amplitude. The model is initialized with an internal from the interface). Thus we also consider a so-called ‘‘hybrid’’ cosine wave of the form z1 ¼ H=2 þ a cosðpx=LÞ, where a ¼ 0:1m approach, where layers are added to resolve the stratified interface and H ¼ 10 m on a grid with Nx ¼ 64 grid points in the horizontal as well as the velocity profile in regions above and below the and a varying number of layers in the vertical. We note that interface as shown in Fig. 3I. although the model may have more than two layers, the density Fig. 4C demonstrates that the model achieves the correct dis- only changes across the density interface at mid-depth. The persive behavior. Interestingly, as demonstrated in Fig. 4C, adding 3 density in the upper half of the layers is q1 ¼ 1000 kg m and layers to improve the representation of the stratification alone 3 the density in the lower half of the layers is q2 ¼ 1010 kg m .To does not improve the dispersive properties. Additional layers are change the degree of nonhydrostasy, kH, the model is again run needed throughout the water column to improve the representa- with varying domain lengths as in the free-surface seiche test case. tion of the nonhydrostatic velocity profile with depth. The hybrid As shown in Fig. 4B, the model achieves the correct dispersive approach, which adds such layers, improves the dispersive behavior. The model of the two-layer internal seiche behaves in a characteristics. very similar manner to the model of the free-surface seiche in The test case to compute the velocity profile of the continu- terms of its performance as a function of kH and the improvement ously-stratified internal seiche uses the same parameters as the of the dispersive properties as layers are added. two-layer velocity profile test case (Section 5.2) except with 100 The test case for the velocity profile for the two-layer internal layers9 in the hybrid configuration. Fig. 5E and F show the horizontal seiche uses the same parameters as above except with H ¼ 16 m, and vertical velocity profiles normalized by their respective maxima
L ¼ 10 m, and Nlayers ¼ 40 which are chosen so that the experiment at locations x ¼ L=2 and x ¼ 0, respectively, at time t ¼ T=4. A similar is strongly nonhydrostatic. Fig. 5C and D show the horizontal and test case for the velocity profile of an internal seiche is given in vertical velocity profiles normalized by their respective maxima Fringer et al. (2006), where the velocity profiles are computed using at locations x ¼ L=2 and x ¼ 0, respectively, at time t ¼ T=4. In each the first-mode linearized eigenfunction analysis of Fringer and Street case the model accurately reproduces the theoretical behavior. As (2003). The eigenfunction analysis requires the wave frequency as seen in Fig. 5C, the hydrostatic horizontal velocity profile does input. In panels E and F of Fig. 5, the wave frequency is computed not vary with depth above and below the interface. In contrast, both from the asymptotic theory in Table 1 (where x ¼ ck) and from the nonhydrostatic horizontal velocity profile decays rapidly away the model (xmodeled). These are denoted as ‘‘NH Theory 1’’ and ‘‘NH from its maximum value at the interface. Thus the ability of the Theory 2’’, respectively, in Fig. 5E and F. As expected, the modal solu- nonhydrostatic model to accurately reproduce the modal solution, tion using the wave frequency of the model more closely follows the particularly one that is strongly nonhydrostatic, depends on the modeled velocity profiles owing to errors in the asymptotic theory number of model layers used to represent the vertical variability which is only valid in the limit of small kdq. As seen in Fig. 5E and of the solution even in regions of constant density. F, the hydrostatic and nonhydrostatic velocity profiles are well-rep- resented using the model. In this case, the hydrostatic velocity pro- 5.3. Continuously-stratified internal seiche file has a smooth variation near the stratified interface (as in Fig. 5E) unlike the velocity profile for the two-layer stratification which is In this test case, the (inviscid) isopycnal model is validated discontinuous across the interface (as in Fig. 5C). against linear theory describing internal gravity waves in a contin- In summary of the results in Sections 5.1–5.3, we find that uously-stratified system. From Table 1, the ratio of the hydrostatic wave speed to the theoretical wave speed, ch=c, for a continuously- 1. Nonhydrostatic dispersion gives rise to depth-dependence stratified internal seiche is identical to Eq. (39). The theoretical even in unstratified regions. Therefore, nonhydrostatic mod- wave speed ratio for a continuously-stratified internal seiche is els require multiple layers to resolve both the vertical depen- identical to the theoretical wave speed ratio for a 2-layer internal dence of the velocity field and the dispersive properties, seiche since the influence of the finite thickness interface (given especially for large values of kH. in Table 1) is removed during the normalization. As in the previous 2. The horizontal velocity in unstratified regions does not vary test case, we compare depth-profiles of the horizontal and vertical with the vertical coordinate for hydrostatic models and thus velocity in the nonhydrostatic and hydrostatic models to theory adding layers in such regions does not affect the velocity pro- from the first-mode linearized eigenfunction analysis of Fringer files or the dispersive properties. and Street (2003). 3. In weakly nonhydrostatic regimes for which kH < 1, the The initial configuration of this numerical experiment on the depth-dependence and dispersion are minimal. Thus, in this behavior of a continuously-stratified internal seiche is shown in regime, a model with a limited number of layers may suffice. Fig. 3(G–I), but with varying domain sizes, number of layers, and a smaller constant seiche amplitude. The model parameters are 5.4. Internal solitary waves: comparison of isopycnal model to KdV identical to those in the two-layer seiche case, with the exception theory of the density profile. The density in this case is given by "# !In this test case, we compare the widths of solitary waves 1 1 2tanh as formed using the current model to Korteweg and de-Vries (1895) qðx; z; t ¼ 0Þ¼q0 þ Dq 1 tanh ðz þ H=2 nÞ 2 dq 9 Note that we use 100 layers for graphical representation. The analytical solution ð40Þ may be well represented using fewer layers. 130 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144
(KdV) and extended KdV (eKdV) theory. The well-known solitary- to broaden and develop flat crests as the waves become more non- wave solution to the KdV equation is linear (Helfrich and Melville, 2006). Fig. 6 demonstrates that for weakly nonlinear (a=h1 1), weakly nonhydrostatic (h1=L0 1) 2 x cit n ¼ a0sech ; ð41Þ waves, the model can reproduce solitary waves consistent with L0 theory. However, for waves with an appreciable degree of nonlin- where the length scale of solitary waves in a two-layer system is earity (a=h1 > 0:15), the KdV theories are not valid; they underpre- given by dict the solitary wave widths (or equivalently overpredict h1=L0 sffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi relative to the modeling results). As shown in Fig. 6, the eKdV the- 2 ory captures the broadening of solitary waves (or equivalently 4 ðÞh1h2 L0 ¼ ; ð42Þ decrease in h1=L0) as the nonlinearity increases (e.g. for 3 ðÞh1 h2 a a=h1 > 0:5). However, the eKdV theory still underpredicts the sol- where a is the amplitude of the solitary wave and h1 and h2 are the itary wave widths relative to the current model for high orders depths of the upper and lower layers, respectively (Bogucki and of nonlinearity. The slight mismatch between the model and the Garrett, 1993). After normalizing and rearranging, we can write theoretical predictions is not due to model error but instead arises Eq. (42) as from the limited range of applicability of the weakly nonlinear, vffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi weakly nonhydrostatic KdV theory. Although in certain dynamical u ! u 1 situations the model can revert to the simple KdV theory, it can h1 h1 t3 h1 a ¼ 1 ; ð43Þ also be applied to situations beyond weakly nonlinear, weakly L0 h2 4 h2 h1 nonhydrostatic regimes as demonstrated in the numerical experi- ments in the next section. which relates the magnitude of nonlinearity a=h1 to the wave aspect ratio h1=L0. The eKdV theory includes cubic nonlinearity and results in expressions similar to (41) and (42) although slightly more com- 5.5. Internal solitary waves: comparison of isopycnal model to z-level plicated as given in Helfrich and Melville (2006). model The simulations in this numerical experiment are performed in In this test case, we compare formation of nonlinear internal a domain of length Ld ¼ 125 km and depth H ¼ 2000 m with a two- 3 solitary-like wave trains using the current isopycnal model to the layer stratification where q1 ¼ q0 ¼ 999:5kgm is the density of 3 nonhydrostatic SUNTANS z-level model (Fringer et al., 2006)ina the upper layer, and q2 ¼ q0 þ Dq ¼ 1000:5kgm is the density of the lower layer. The simulations are performed in an enclosed two-dimensional x–z domain. The parameters for this test case fol- domain with an initial isopycnal displacement of low the numerical experiment in Vitousek and Fringer (2011) "# using SUNTANS with 100 layers. This test case was chosen to 2 2 x approximate the evolution of solitary-like waves in the South nðx; t ¼ 0Þ¼z1 þ h1 ¼ aisech ; ð44Þ China Sea following Zhang et al. (2011). The simulations are per- Lq formed in a domain of length Ld ¼ 300 km and depth H ¼ 2000 m with h1 ¼ 500 m and Lq ¼ 2L0, and varying initial amplitudes ai. The that is initialized with approximate two-layer stratification as an initial wave of depression evolves rapidly into a solitary wave of idealized representation of the South China Sea. The initial stratifi- width given closely by L with a small train of trailing waves. The cation is given by 0 "# model is discretized with 2, 4, and 10 vertical layers each with 1 2tanh 1 a N 1000 grid points in the horizontal. The model is inviscid and s x ¼ qðx; z; t ¼ 0Þ¼q0 Dq tanh ðÞz nðx; t ¼ 0Þþh1 ; is run with a free-surface Courant number of 20 which corresponds 2 dq to a time step of 17.85 s. ð45Þ Fig. 6 shows h1=L0 vs. a=h1 of the leading solitary waves (at where the upper-layer depth is h 250 m, 0:99 [see Fringer t ¼ 16:29 h) for the isopycnal models with 2, 4, and 10 layers in 1 ¼ as ¼ and Street, 2003], d 200 m, 1000 kg m 3, and the density panels A, B, and C, respectively. The computed solitary wave ampli- q ¼ q0 ¼ difference is given by Dq=q0 ¼ 0:001. The initial Gaussian of depres- tude a and width L0 are determined following the procedure used in Vitousek and Fringer (2011). The modeling results are compared sion that evolves into a train of solitary-like waves is given by "# to the KdV and eKdV theories. The main difference between the x 2 two theories is that the eKdV theory (which is valid for higher nðx; t ¼ 0Þ¼ ai exp ; ð46Þ Lq orders of nonlinearity) captures the tendency for solitary waves
2 layers 4 layers 10 layers
model eKdV theory KdV theory −1 10 0 /L 1 h
A B C −2 10 −2 −1 0 −2 −1 0 −2 −1 0 10 10 10 10 10 10 10 10 10 a/h a/h a/h 1 1 1
Fig. 6. The wave aspect ratio h1=L0 vs. the magnitude of nonlinearity a=h1 of the leading solitary waves computed by the isopycnal model at t ¼ 81:27 h compared to the KdV and eKdV theories. S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 131
−1 A SUNTANS model (100 layers) 0 −3 NH isopycnal model (2 layers) z/a t=0.0 T NH isopycnal model (10 layers) −5 s −1 B 0 −3 t=32.7 T s z/a −5 −1 C 0 −3 t=59.9 T s z/a −5 −1 D 0 −3 t=87.1 T s z/a −5 −1 E 0 −3 t=114.3 T s z/a −5 −1 F 0 −3 t=141.5 T s z/a −5 0 20 40 60 80 100 120 140 160 180 200 x/L 0
Fig. 7. The formation of internal solitary waves generated from a Gaussian-shaped initial wave of depression computed by the current isopycnal model with 2 and 10 layers compared to the z-level SUNTANS model with 100 layers following the test case of Vitousek and Fringer (2011). The 2- and 10-layer isopycnal model results are shifted downward by 700 m and 350 m, respectively, to allow comparison of the models.
with ai ¼ 250 m and Lq ¼ 15 km. The boundary conditions are tively, which represent the final solitary wave length and ampli- closed at x ¼ 0 and x ¼ Ld and the bottom at z ¼ H is free-slip with tude scales of the simulations presented in Vitousek and Fringer a free surface at the upper boundary. The model is discretized with (2011). The time scale is normalized by Ts ¼ L0=c1 ¼ 1028:7s, 1 2 and 10 layers in the vertical. The layer heights and densities of the where c1 ¼ 1:396 m s is the speed of a mode-1 wave given in 10-layer model are initialized to follow contour lines of the density Vitousek and Fringer (2011). Here, we adopt the same normaliza- in Eq. (45) which are linearly-spaced in density space. This numer- tion to facilitate comparison with the results presented in ical experiment is also run with 2 and 10 additional hybrid layers Vitousek and Fringer (2011). (distributed linearly in physical space in the upper and lower strat- The speed of the internal waves varies slightly among the differ- ified layers) that are added to the simulation to improve the repre- ent models. The wave speed of the SUNTANS model is slightly sentation of the dispersive properties as discussed in Sections 5.1– reduced due to vertical numerically-induced scalar diffusion of
5.3. The simulations are performed with Nx ¼ 4800 grid points in density which is not present in the isopycnal model. We note that the horizontal. The model is run with a free-surface Courant num- this scalar diffusion is purely numerical because no scalar diffusiv- ber of 10 which corresponds to a time step of 17.85 s. There is no ity is employed. Numerically-induced scalar diffusion reduces the viscosity or drag used in the isopycnal model, although the SUN- wave amplitude and thus the wave speed (which is weakly-depen- 2 1 TANS model uses (constant) viscosities of mH ¼ 0:1m s and dent on amplitude) and also leads to thickening of the density con- 4 2 1 mV ¼ 10 m s to stabilize its central-differencing scheme for tours in the wake of the leading wave in the wave train. The wave momentum advection. No scalar diffusivity is employed in the SUN- speed of the 10-layer isopycnal model is slightly slower than the 2- TANS model. layer isopycnal model due to the finite-thickness of the interface in The SUNTANS model requires approximately 2.0 s per time the 10-layer model which reduces the wave speed by a factor of 10 step using 16 cores on four quad-core Opteron 2356 QC processors f iðkdqÞ as demonstrated in Table 1. Overall, this numerical experi- (Vitousek and Fringer, 2011). The 2-layer isopycnal model with the ment demonstrates consistency between the number and widths same horizontal resolution on the other hand requires approxi- of modeled solitary waves computed by the nonhydrostatic isopyc- mately 0.15 s per time step using only one processor. This reduction nal model and the nonhydrostatic z-level model. The hydrostatic in computational time and resources represents more than an order versions of SUNTANS and the current isopycnal model (not shown) of magnitude improvement in efficiency. The 10-layer isopycnal are also remarkably similar. model requires approximately 0.86 s per time step using one proces- Finally, we present a convergence study of the solitary wave sor and also represents a significant reduction in computational cost. widths as a function of grid resolution. This test case follows As shown in Fig. 7, the initial Gaussian wave of depression Vitousek and Fringer (2011) with the same simulation parameters steepens into a rank-ordered train of solitary waves. The 2- and as above but with a variable number of horizontal grid points,
10-layer isopycnal models are shifted downward by 700 m and Nx ¼½150; 300; 600; 1200; 2400; 4800 and 2 and 10 additional 350 m to allow comparison of the results. In Fig. 7, the x- and ‘‘hybrid’’ layers (discussed in Section 5.3) to improve the dispersive y-axes are normalized by L0 ¼ 1436 m and a0 ¼ 220 m, respec- properties. Fig. 8A shows the convergence study presented in Vitousek and Fringer (2011) using SUNTANS with 100 layers and Fig. 8B shows the convergence study of the current nonhydrostatic 10 We note that SUNTANS requires a time step of Dt ¼ 5 s for these simulations which leads to a significant increase in computational effort compared to the time and hydrostatic isopycnal models with 2 and 10 layers. Fig. 8 step of Dt ¼ 17:85 s needed in the isopycnal model. shows the normalized length scales (L=L0) of the leading solitary 132 S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144
SUNTANS Isopycnal Model
A B 2.5
2
0 1.5 L/L
1 2−layer nh model 2(+2)−layer nh model 2(+10)−layer nh model 10−layer nh model nonhydrostatic scaling 0.5 10(+2)−layer nh model hydrostatic scaling 10(+10)−layer nh model nonhydrostatic model 2−layer h model hydrostatic model 10−layer h model 0 0 2 4 6 8 0 2 4 6 8 λ λ
Fig. 8. Convergence of leading solitary wave widths (at time t ¼ 40:4 h) normalized by L0 ¼ 1436 m as a function of the grid lepticity k ¼ Dx=h1. Panel A shows the results from the SUNTANS model following Vitousek and Fringer (2011). Panel B shows the results from the isopycnal model with different numbers of layers. For reference the theoretical convergence relationships for the nonhydrostatic (blue line) and hydrostatic models (red line) given in Eqs. (47) and (48), respectively, are shown. (For interpretation of the references to color in this figure caption, the reader is referred to the web version of this article.)
wave at the final time step, t ¼ 40:4h(t=Ts ¼ 141:5) as a function x L=2 nðx; t ¼ 0Þ¼ai ; ð49Þ of grid lepticity k ¼ Dx=h1. The procedure to determine solitary L=2 wave length scales is outlined in Vitousek and Fringer (2011).As demonstrated in Vitousek and Fringer (2011), the normalized where the wave amplitude is given by ai = [0.01305,0.0261, length scales of the nonhydrostatic and hydrostatic models behave 0.03915,0.0522,0.0783] m. The model of the laboratory experiments like is run with 2 layers and Nx ¼ 256. The density difference in the lab- qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi oratory experiments is approximately Dq ¼ 0:02 0:002. The model 2 q0 L=L0 ¼ 1 þ Kk ð47Þ is run with a slightly lower density difference of Dq ¼ 0:0175 because q0 and the finite-thickness interface in the laboratory experiment reduces pffiffiffiffi the wave speed slightly when compared to the two-layer configura- Lh=L0 ¼ k K; ð48Þ tion used in the model with (still-water) layer heights h1 ¼ 0:203 m respectively, as a function of lepticity k, where K is a constant that and h2 ¼ 0:087 m. The model is run with a free-surface Courant depends on the numerical method and is obtained with a best-fit of number C ¼ 4 for a total time of 400 s. The model uses a drag coeffi- the model results to expressions (47) and (48). Eqs. (47) and (48) cient Cd ¼ 0:0175 and horizontal and vertical eddy-viscosities of 6 2 1 6 2 1 arise from the second-order accuracy of the numerical method. mH ¼ 1 10 m s and mv ¼ 1 10 m s , respectively. These Numerical dispersion, which is proportional to the grid spacing parameters are chosen to fit the amplitude of the solitary waves squared, mimics physical dispersion and directly contributes to formed during the laboratory experiment. Fig. 9 shows the results the widths of modeled solitary waves. Fig. 8B demonstrates that of the model-predicted time series of the interface displacements the isopycnal model has very similar convergence behavior to SUN- (located at the center of the tank, x ¼ L=2) compared to the labora- TANS with respect to decreasing the grid spacing or grid lepticity. It tory experiments of Horn et al. (2001). Panels A,B,C,D,E of Fig. 9 is not surprising that the behavior of the two models is similar given correspond to the increasing initial interface amplitudes of ai = that they employ similar numerical methods (and the same order of [0.01305,0.0261,0.03915,0.0522,0.0783] m, respectively. The accuracy). However, the isopycnal model requires additional agreement between the model and the laboratory experiments is ‘‘hybrid’’ layers above and below the interface to better resolve excellent for the first half of the experiment (t < 200 s). However, the wave dispersion and thus the solitary wave length scales. for the second half of the experiment there is some mismatch in Fig. 8B shows that adding layers above and below the stratification the phase and amplitude of the waves. Over the course of a labora- interface improves the modeled solitary wave widths. By adding 2 tory experiment Horn et al. (2001) reported ‘‘a gradual thickening hybrid layers (indicated by þ2inFig. 8) the isopycnal model forms of the density interface over the set, typically from approximately solitary waves that are approximately 10% larger than SUNTANS. By 1 cm–2 cm’’. The finite-thickness interface and thickening are partly adding 10 hybrid layers (indicated by þ10 in Fig. 8) the isopycnal responsible for the mismatch with the model (which has a sharp model forms solitary waves that are nearly identical to interface and no interface thickening). Additionally, the model SUNTANS. appears to form slightly wider solitary waves than the laboratory experiment. This indicates that the dispersive properties of the 5.6. Internal solitary waves: comparison of isopycnal model to waves are not captured exactly in the model because of the two-layer laboratory experiments approximation. Overall, however, the model adequately captures the formation of solitary waves in the laboratory experiment. This test case compares the formation of an internal solitary- Fig. 10 shows the same numerical experiment as Fig. 9 except like wave train using the current isopycnal model to the laboratory using the developed isopycnal model in hydrostatic mode. The experiments in Horn et al. (2001). The laboratory experiments hydrostatic model in Fig. 10 forms steep bores as opposed to trains investigate the formation of solitary waves in an approximately of solitary waves as in Fig. 9. This is particularly visible for the two-layer density profile with an interface thickness of experiments with larger initial amplitudes. Although nonhydro- dq ¼ 0:01 m in an enclosed tank of depth H ¼ 0:29 m and length static dispersion does influence the wave speed, the effect is rela- L ¼ 6 m. The internal interface is initialized with a linear tilt which tively weak. Consequently, the wave speed of the nonhydrostatic is given by and hydrostatic models are consistent. This is evidenced by the S. Vitousek, O.B. Fringer / Ocean Modelling 83 (2014) 118–144 133
5 Nonhydrostatic isopycnal model A a = 1.305 cm i Horn 2001
0 [cm] ξ
−5 5 B a = 2.61 cm i
0 [cm] ξ
−5 5 C a = 3.915 cm i
0 [cm] ξ
−5 5 D a = 5.22 cm i
0 [cm] ξ
−5 5 E a = 7.83 cm i
0 [cm] ξ
−5 0 50 100 150 200 250 300 350 400 time [s]
Fig. 9. Comparison of nonhydrostatic model-predicted and measured (from Horn et al. (2001)) interface displacement (n) time series at x ¼ L=2. remarkably similar timing of the modeled hydrostatic wave fronts In this test case, we follow the modeling results of Buijsman compared to the laboratory experiments. Therefore, a hydrostatic et al. (2010) who studied the generation and evolution of nonlinear model may suffice for predicting the arrival time of the initial wave internal waves in the South China Sea with a r-coordinate model fronts. However, the significant difference between the hydrostatic using 60 layers. The model is run with bathymetry that approxi- and nonhydrostatic models is the form of the trailing waves. The mates the eastern ridge of the Luzon Strait with a height of hydrostatic model in Fig. 10 has a tendency to form narrow, ab ¼ 2600 m in a depth of H0 ¼ 3000 m. Following Buijsman et al. numerically-induced11 solitary waves on each wave front. These (2010), the depth profile is given by numerically-induced solitary waves are, in this case, much narrower ! 2 than the waves in the laboratory data because the numerical disper- x H ¼ H0 ab exp 2 ; ð50Þ sion is much smaller than (the unmodeled) physical dispersion due 2Lb to the high grid resolution. The numerical dispersion is smaller than physical dispersion because the grid lepticity, k ¼ Dx ¼ 0:1155 is less where the bathymetry length scale Lb ¼ 12 km. The model domain h1 than unity (Vitousek and Fringer, 2011). In summary, these numer- and bathymetry are shown in Fig. 11. ical experiments demonstrate the necessity of using nonhydrostatic A least squares fit to the density profile in Buijsman et al. (2010) models when simulating nonlinear internal solitary waves like those gives ÀÁ in the experiments of Horn et al. (2001). p 2 qðzÞ¼q0 þ Dq 1 exp ðz=h0Þ þ s1z þ s2z ; ð51Þ