<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0"><?xmltex \hack{\allowdisplaybreaks}?>
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-11-1161-2018</article-id><title-group><article-title>A fully consistent and conservative vertically adaptive coordinate system for
SLIM 3D v0.4 with an application to the thermocline oscillations of Lake
Tanganyika</article-title><alt-title>A consistent and conservative vertically adaptive coordinate system for
SLIM 3D</alt-title>
      </title-group><?xmltex \runningtitle{A consistent and conservative vertically adaptive coordinate system for
SLIM~3D}?><?xmltex \runningauthor{P.~Delandmeter et al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1 aff2">
          <name><surname>Delandmeter</surname><given-names>Philippe</given-names></name>
          <email>p.b.delandmeter@uu.nl</email>
        <ext-link>https://orcid.org/0000-0003-0100-5834</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Lambrechts</surname><given-names>Jonathan</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Legat</surname><given-names>Vincent</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Vallaeys</surname><given-names>Valentin</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-5025-8822</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Naithani</surname><given-names>Jaya</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3 aff4">
          <name><surname>Thiery</surname><given-names>Wim</given-names></name>
          
        <ext-link>https://orcid.org/0000-0002-5183-6145</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Remacle</surname><given-names>Jean-François</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff5 aff6">
          <name><surname>Deleersnijder</surname><given-names>Eric</given-names></name>
          
        </contrib>
        <aff id="aff1"><label>1</label><institution>Université catholique de Louvain, Institute of Mechanics, Materials and Civil Engineering (IMMC), Avenue Georges Lemaître 4, 1348 Louvain-la-Neuve, Belgium</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Utrecht University, Institute for Marine and Atmospheric Research, Princetonplein 5, 3584 CC Utrecht, the Netherlands</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>ETH Zürich, Institute for Atmospheric and Climate Sciences, Universitätstrasse 16, 8092 Zürich, Switzerland</institution>
        </aff>
        <aff id="aff4"><label>4</label><institution>Vrije Universiteit Brussel, Department of Hydrology and Hydraulic Engineering, Pleinlaan 2, 1050 Brussels, Belgium</institution>
        </aff>
        <aff id="aff5"><label>5</label><institution>Université catholique de Louvain, Institute of Mechanics, Materials and Civil Engineering (IMMC) &amp; Earth and Life Institute (ELI), Avenue Georges Lemaître 4, 1348 Louvain-la-Neuve, Belgium</institution>
        </aff>
        <aff id="aff6"><label>6</label><institution>Delft University of Technology, Delft Institute of Applied Mathematics (DIAM), Mekelweg 4,
2628 CD Delft, the Netherlands</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Philippe Delandmeter (p.b.delandmeter@uu.nl)</corresp></author-notes><pub-date><day>29</day><month>March</month><year>2018</year></pub-date>
      
      <volume>11</volume>
      <issue>3</issue>
      <fpage>1161</fpage><lpage>1179</lpage>
      <history>
        <date date-type="received"><day>7</day><month>September</month><year>2017</year></date>
           <date date-type="rev-request"><day>25</day><month>October</month><year>2017</year></date>
           <date date-type="rev-recd"><day>16</day><month>February</month><year>2018</year></date>
           <date date-type="accepted"><day>4</day><month>March</month><year>2018</year></date>
      </history>
      <permissions>
        
        
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018.html">This article is available from https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018.pdf</self-uri>
      <abstract>
    <p id="d1e180">The discontinuous Galerkin (DG) finite element method is well suited for the
modelling, with a relatively small number of elements, of three-dimensional
flows exhibiting strong velocity or density gradients. Its performance can be
highly enhanced by having recourse to r-adaptivity. Here, a vertical adaptive
mesh method is developed for DG finite elements. This method, originally
designed for finite difference schemes, is based on the vertical diffusion of
the mesh nodes, with the diffusivity controlled by the density jumps at the
mesh element interfaces.</p>
    <p id="d1e183">The mesh vertical movement is determined by means of a conservative arbitrary
Lagrangian–Eulerian (ALE) formulation. Though conservativity is naturally
achieved, tracer consistency is obtained by a suitable construction of the
mesh vertical velocity field, which is defined in such a way that it is fully
compatible with the tracer and continuity equations at a discrete level.</p>
    <p id="d1e186">The vertically adaptive mesh approach is implemented in the three-dimensional version of the geophysical and
environmental flow Second-generation Louvain-la-Neuve Ice-ocean Model
(SLIM 3D; <uri>www.climate.be/slim</uri>). Idealised benchmarks, aimed at simulating the
oscillations of a sharp thermocline, are dealt with. Then, the relevance of the vertical adaptivity technique is
assessed by simulating thermocline oscillations of Lake Tanganyika. The
results are compared to measured vertical profiles of temperature, showing
similar stratification and outcropping events.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <title>Introduction</title>
      <?pagebreak page1162?><p id="d1e199">The vertical discretisation strategy of marine models has
evolved drastically during the last five decades. The first models were using
<inline-formula><mml:math id="M1" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> coordinates <xref ref-type="bibr" rid="bib1.bibx12" id="paren.1"><named-content content-type="pre">e.g.</named-content></xref>, discretising the ocean into fixed
horizontal levels, resulting in a stepwise representation of the ocean
bottom. Later, other discretisations were developed, mainly inspired by the
progress in atmospheric modelling, for which coordinates based on the
pressure field were used <xref ref-type="bibr" rid="bib1.bibx72 bib1.bibx26 bib1.bibx62" id="paren.2"/>. In
oceanography, such developments led to <inline-formula><mml:math id="M2" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> or <inline-formula><mml:math id="M3" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> coordinates
<xref ref-type="bibr" rid="bib1.bibx28 bib1.bibx60 bib1.bibx10 bib1.bibx58 bib1.bibx11" id="paren.3"/>. For the
<inline-formula><mml:math id="M4" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> coordinates, the vertical coordinate is based on the density field.
This method is well suited for tracer transport in the ocean interior, which
occurs mainly along isopycnal surfaces <xref ref-type="bibr" rid="bib1.bibx34" id="paren.4"/>. The
<inline-formula><mml:math id="M5" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> coordinates place a constant number of levels evenly spaced in the
vertical column. This method enables a smooth representation of the bottom
topography, which is particularly appropriate for coastal applications. The
discretisation of the internal pressure gradient constitutes a major
difficulty of the vertical coordinate systems for which none of the
iso-coordinate surface is horizontal, such as the <inline-formula><mml:math id="M6" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>-coordinate system.
Since the iso-<inline-formula><mml:math id="M7" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> surfaces are generally not horizontal, it is difficult
to maintain a vertically stratified water body at rest in a domain with a
steep bottom slope. This problem has been extensively studied and documented
<xref ref-type="bibr" rid="bib1.bibx37 bib1.bibx22 bib1.bibx71 bib1.bibx51 bib1.bibx52" id="paren.5"><named-content content-type="pre">e.g.</named-content></xref>.</p>
      <p id="d1e272">Later on, the general <inline-formula><mml:math id="M8" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula>-coordinate system was developed
<xref ref-type="bibr" rid="bib1.bibx29 bib1.bibx30 bib1.bibx70" id="paren.6"/>, which was also inspired by
generalised coordinates in atmospheric modelling <xref ref-type="bibr" rid="bib1.bibx50" id="paren.7"/>. The
<inline-formula><mml:math id="M9" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> coordinates are able to arbitrarily combine <inline-formula><mml:math id="M10" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M11" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M12" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>
coordinates. With this technique, a single grid is able to cope with
<inline-formula><mml:math id="M13" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> levels close to the ocean surface, <inline-formula><mml:math id="M14" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> levels in the interior and
<inline-formula><mml:math id="M15" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> levels close to the bottom. Those different methods have their own
strengths and weaknesses, which are discussed in detail
in <xref ref-type="bibr" rid="bib1.bibx34" id="text.8"/> for large-scale applications. The modeller is free to
build an a priori optimal mesh, depending on the application.</p>
      <p id="d1e341">The <inline-formula><mml:math id="M16" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> coordinates reach their limits when the optimal vertical distribution
of the mesh nodes should vary in space and time. This is why
<xref ref-type="bibr" rid="bib1.bibx13" id="text.9"/> proposed a non-uniform grid system that adapts the
resolution by moving the nodes during the simulation so as to minimise a
suitably defined error measure <xref ref-type="bibr" rid="bib1.bibx35 bib1.bibx36" id="paren.10"/>. This is
referred to as an r-adaptive method; i.e. the mesh nodes are moved without
modifying the mesh topology. <xref ref-type="bibr" rid="bib1.bibx40" id="text.11"/> implemented this type of
vertical movement of the mesh in a three-dimensional model. This method
reduces the numerical mixing and the errors in the pressure gradient
computation, enabling realistic simulations of large inflows in the Baltic
sea <xref ref-type="bibr" rid="bib1.bibx41" id="paren.12"/>. The price of the reduced numerical mixing is the
computation of the mesh velocity. Dealing with the mesh movement within the
hydrodynamics equations has negligible extra cost. Indeed, free-surface
models do already move the mesh to take into account the surface
motion <xref ref-type="bibr" rid="bib1.bibx68" id="paren.13"><named-content content-type="pre">e.g.</named-content></xref>.</p>
      <p id="d1e369">This r-adaptive method only moves the nodes in the vertical direction. In
contrast, the models using 3-D
hr-adaptation <xref ref-type="bibr" rid="bib1.bibx63 bib1.bibx64 bib1.bibx38" id="paren.14"><named-content content-type="pre">e.g.</named-content></xref> follow a
completely different approach: apart from moving in all directions, nodes can
also be removed or added. Such adaptation is achieved on tetrahedral meshes,
which are unstructured in the three dimensions. The advantages and
limitations of hr-adaptation are discussed in <xref ref-type="bibr" rid="bib1.bibx63" id="text.15"/>.</p>
      <p id="d1e381">To the best of authors' knowledge, the vertically adaptive coordinate method
has only been applied to structured grid models. The objective of this work
is to adapt the method to an unstructured-mesh discontinuous Galerkin (DG)
finite element model, namely the three-dimensional version of the
Second-generation Louvain-la-Neuve Ice-ocean Model (SLIM 3D;
<uri>www.climate.be/slim</uri>).</p>
      <p id="d1e387">SLIM 3D is a baroclinic model for coastal flows that solves the 3-D
hydrostatic equations under the Boussinesq approximation
<xref ref-type="bibr" rid="bib1.bibx9 bib1.bibx17 bib1.bibx49" id="paren.16"/>. The model is based on the DG finite
element method. The latter is well suited for advection-dominated problems
<xref ref-type="bibr" rid="bib1.bibx5 bib1.bibx16 bib1.bibx6" id="paren.17"/> exhibiting strong gradients of the
solution. Furthermore, it has different advantages, such as local and global
conservativity, or the compactness of the stencil, which enables an easy and
efficient parallel implementation <xref ref-type="bibr" rid="bib1.bibx66 bib1.bibx67" id="paren.18"/>. The
inter-element discontinuities of the solution constitute a good estimate of
the discretisation error <xref ref-type="bibr" rid="bib1.bibx1 bib1.bibx6" id="paren.19"/>. Previous
applications of SLIM 3D have focused on coastal flows, estuaries and river
plume dynamics, where a high resolution is required in the surface layer
which is under the direct influence of the wind stress. Accordingly, the mesh
resolution is increased close to the surface <xref ref-type="bibr" rid="bib1.bibx21" id="paren.20"/>.</p>
      <p id="d1e405">In this work, the model is applied to Lake Tanganyika, especially its
thermocline movement, for which the depth and location where high resolution
is desirable vary in time. Lake Tanganyika is the largest of the east African
Great Lakes in terms of water volume and the second largest in terms of
surface <xref ref-type="bibr" rid="bib1.bibx59" id="paren.21"/>. It is shared by four countries: Burundi,
Democratic Republic of the Congo, Tanzania and Zambia
(Fig. <xref ref-type="fig" rid="Ch1.F1"/>). Schematically, the waters of the lake exhibit two
layers separated by a thermocline <xref ref-type="bibr" rid="bib1.bibx18 bib1.bibx54" id="paren.22"/>. The
dynamics of the lake thermocline differs between the dry wind season and the
wet season during which the wind stress is significantly smaller.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1"><caption><p id="d1e418">Lake Tanganyika bathymetry <xref ref-type="bibr" rid="bib1.bibx55" id="paren.23"/>: isobaths (left) and
perspective view of bottom profile along the main axis of the lake
(right).</p></caption>
        <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f01.pdf"/>

      </fig>

      <p id="d1e430">A few 3-D modelling studies were conducted on the lake. <xref ref-type="bibr" rid="bib1.bibx42" id="text.24"/>
used a 3-D barotropic model to simulate the transport of sediment in
subregions of the lake. <xref ref-type="bibr" rid="bib1.bibx65" id="text.25"/> used the same model to study
the lake response to different wind stress regimes. Their simulations were
focused on the diurnal cycle of the water velocity. They did not aim to model
the seasonal variability of the current and the thermocline dynamics, for
which the 3-D model must be baroclinic.</p>
      <p id="d1e440"><xref ref-type="bibr" rid="bib1.bibx78" id="text.26"/> studied the overturning circulation in the lake. In
contrast to the classical overturning circulation in a two-layer lake under
constant wind stress
<xref ref-type="bibr" rid="bib1.bibx53" id="paren.27"><named-content content-type="pre">Fig. <xref ref-type="fig" rid="Ch1.F2"/>,</named-content></xref>, they proposed
a reversed circulation with the deepest water of the epilimnion following the
wind and the surface water flowing in the opposite direction.
<xref ref-type="bibr" rid="bib1.bibx79" id="text.28"/> quantified the conditions for which they proposed a
counter-wind surface circulation, driven by the surface heat flux of the
lake. They used a 3-D model <?pagebreak page1163?><xref ref-type="bibr" rid="bib1.bibx39" id="paren.29"/> to assess their hypothesis by
simulating the lake dynamics in 1996.</p>
      <p id="d1e458">This paper presents the development of a vertically adaptive coordinate
system for SLIM 3D and its validation on simple benchmarks. The improved
model is then applied to Lake Tanganyika to investigate the adaptive
coordinates' efficiency in a realistic application. In
Sect. <xref ref-type="sec" rid="Ch1.S2"/>, the vertical adaptive mesh approach is
defined, and a new computation of the mesh velocity is designed, which
guarantees the tracer mass conservation and the consistency, the latter being
the property of maintaining constant a constant tracer concentration through
the simulation. The formulation of the internal pressure gradient is
detailed. Finally, information about the input data used for the Lake
Tanganyika simulation is provided. In Sect. <xref ref-type="sec" rid="Ch1.S3"/>, the
method performance is evaluated on two benchmarks: the internal seiche and
the steady-state thermocline position under a constant wind stress. A
convergence analysis is performed. Then, the model is applied to the
oscillations of the thermocline in Lake Tanganyika. The results are discussed
in Sect. <xref ref-type="sec" rid="Ch1.S4"/> and conclusions are drawn in
Sect. <xref ref-type="sec" rid="Ch1.S5"/>.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2"><caption><p id="d1e471">Schematic lake configuration with no wind
stress <bold>(a)</bold> and
with the southeasterly wind during the dry season in line with the classical
circulation <xref ref-type="bibr" rid="bib1.bibx53" id="paren.30"><named-content content-type="pre"><bold>b</bold>,</named-content></xref>, such that the surface water follows
the wind, or according to the non-classical circulation
<xref ref-type="bibr" rid="bib1.bibx78" id="paren.31"><named-content content-type="pre"><bold>c</bold>,</named-content></xref> with reversed
currents.</p></caption>
        <?xmltex \igopts{width=213.395669pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f02.pdf"/>

      </fig>

</sec>
<sec id="Ch1.S2">
  <title>Methods</title>
<sec id="Ch1.S2.SS1">
  <title>Governing equations</title>
      <p id="d1e508">SLIM 3D solves the 3-D hydrostatic Boussinesq equations. The main unknowns
are the horizontal velocity
<inline-formula><mml:math id="M17" display="inline"><mml:mrow><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:mi>u</mml:mi><mml:mo>,</mml:mo><mml:mi>v</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, the vertical velocity <inline-formula><mml:math id="M18" display="inline"><mml:mi>w</mml:mi></mml:math></inline-formula>, the pressure <inline-formula><mml:math id="M19" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula>, the
salinity <inline-formula><mml:math id="M20" display="inline"><mml:mi>S</mml:mi></mml:math></inline-formula> and the temperature <inline-formula><mml:math id="M21" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula>.

                <disp-formula specific-use="align" content-type="numbered"><mml:math id="M22" display="block"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd><mml:mrow><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mi>w</mml:mi><mml:mi mathvariant="bold-italic">u</mml:mi></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo mathsize="1.5em">(</mml:mo><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>+</mml:mo><mml:msup><mml:mfenced close=")" open="("><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi mathvariant="bold-italic">u</mml:mi></mml:mrow></mml:mfenced><mml:mi>T</mml:mi></mml:msup></mml:mrow></mml:mfenced><mml:mo mathsize="1.5em">)</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mtr><mml:mlabeledtr id="Ch1.E1"><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">ν</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>-</mml:mo><mml:mi>f</mml:mi><mml:msub><mml:mi mathvariant="bold-italic">e</mml:mi><mml:mi>z</mml:mi></mml:msub><mml:mo>∧</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>-</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>p</mml:mi><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E2"><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E3"><mml:mtd/><mml:mtd><mml:mrow><?xmltex \hack{\hbox\bgroup\fontsize{9.1}{9.15}\selectfont$\displaystyle}?><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>p</mml:mi><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><?xmltex \hack{\hbox\bgroup\fontsize{9.1}{9.1}\selectfont$\displaystyle}?><mml:mo>=</mml:mo><mml:mi>g</mml:mi><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi mathvariant="italic">η</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:munderover><mml:mo movablelimits="false">∫</mml:mo><mml:mi>z</mml:mi><mml:mi mathvariant="italic">η</mml:mi></mml:munderover><mml:mfenced close=")" open="("><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfenced><mml:mtext>d</mml:mtext><mml:mi mathvariant="italic">ζ</mml:mi><mml:mo>,</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E4"><mml:mtd/><mml:mtd><mml:mrow><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>S</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mi>S</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mfenced close=")" open="("><mml:mrow><mml:mi>w</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>S</mml:mi></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced open="(" close=")"><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>S</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>,</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="Ch1.E5"><mml:mtd/><mml:mtd><mml:mrow><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mi>w</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><?xmltex \hack{\hbox\bgroup\fontsize{9.5}{9.5}\selectfont$\displaystyle}?><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>T</mml:mi></mml:mrow></mml:mfenced><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mo>∂</mml:mo><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mfenced close=")" open="("><mml:mrow><mml:mi mathvariant="italic">κ</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>.</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula></p>
      <p id="d1e1073">The different variables defined in this paper as well as the symbols are
listed in Tables <xref ref-type="table" rid="Ch1.T1"/> and <xref ref-type="table" rid="Ch1.T2"/>.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1"><caption><p id="d1e1083">Symbols and physical variables defined in this paper.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="4">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">  
         <oasis:entry namest="col1" nameend="col3">Governing equations </oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M23" display="inline"><mml:mi mathvariant="bold-italic">u</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Horizontal velocity vector</oasis:entry>  
         <oasis:entry colname="col3">(m s<inline-formula><mml:math id="M24" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M25" display="inline"><mml:mi>w</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vertical velocity</oasis:entry>  
         <oasis:entry colname="col3">(m s<inline-formula><mml:math id="M26" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M27" display="inline"><mml:mi mathvariant="italic">η</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Sea surface elevation</oasis:entry>  
         <oasis:entry colname="col3">(m)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M28" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Temperature</oasis:entry>  
         <oasis:entry colname="col3">(<inline-formula><mml:math id="M29" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M30" display="inline"><mml:mi>S</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Salinity</oasis:entry>  
         <oasis:entry colname="col3">(‰)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M31" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Hydrostatic pressure</oasis:entry>  
         <oasis:entry colname="col3">(N m<inline-formula><mml:math id="M32" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M33" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Water density</oasis:entry>  
         <oasis:entry colname="col3">(kg m<inline-formula><mml:math id="M34" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M35" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Reference water density</oasis:entry>  
         <oasis:entry colname="col3">(kg m<inline-formula><mml:math id="M36" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M37" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Water density deviation</oasis:entry>  
         <oasis:entry colname="col3">(kg m<inline-formula><mml:math id="M38" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M39" display="inline"><mml:mi>f</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Coriolis parameter</oasis:entry>  
         <oasis:entry colname="col3">(s<inline-formula><mml:math id="M40" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M41" display="inline"><mml:mi>g</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Gravitational acceleration</oasis:entry>  
         <oasis:entry colname="col3">(m s<inline-formula><mml:math id="M42" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M43" display="inline"><mml:mi mathvariant="italic">ν</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vertical viscosity</oasis:entry>  
         <oasis:entry colname="col3">(m<inline-formula><mml:math id="M44" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> s<inline-formula><mml:math id="M45" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M46" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Horizontal viscosity</oasis:entry>  
         <oasis:entry colname="col3">(m<inline-formula><mml:math id="M47" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> s<inline-formula><mml:math id="M48" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M49" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vertical diffusivity</oasis:entry>  
         <oasis:entry colname="col3">(m<inline-formula><mml:math id="M50" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> s<inline-formula><mml:math id="M51" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row rowsep="1">  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M52" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Horizontal diffusivity</oasis:entry>  
         <oasis:entry colname="col3">(m<inline-formula><mml:math id="M53" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> s<inline-formula><mml:math id="M54" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>)</oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row rowsep="1">  
         <oasis:entry namest="col1" nameend="col3">Coordinates and symbols </oasis:entry>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M55" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">(Moving) domain</oasis:entry>  
         <oasis:entry colname="col3"/>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M56" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M57" display="inline"><mml:mi>y</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Horizontal Eulerian coordinates</oasis:entry>  
         <oasis:entry colname="col3"/>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M58" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vertical Eulerian coordinate</oasis:entry>  
         <oasis:entry colname="col3"/>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M59" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold-italic">e</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vertical unit vector (pointing upward)</oasis:entry>  
         <oasis:entry colname="col3"/>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M60" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Horizontal derivative operator</oasis:entry>  
         <oasis:entry colname="col3"/>  
         <oasis:entry colname="col4"/>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M61" display="inline"><mml:mo>∧</mml:mo></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vector product</oasis:entry>  
         <oasis:entry colname="col3"/>  
         <oasis:entry colname="col4"/>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T2"><caption><p id="d1e1746">Mesh adaptation and finite element specific variables defined in
this paper.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="2">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="left"/>
     <oasis:thead>
       <oasis:row rowsep="1">  
         <oasis:entry namest="col1" nameend="col2">Mesh adaptation </oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M62" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Fixed domain</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M63" display="inline"><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>, <inline-formula><mml:math id="M64" display="inline"><mml:mover accent="true"><mml:mi>y</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>, <inline-formula><mml:math id="M65" display="inline"><mml:mover accent="true"><mml:mi>z</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>, <inline-formula><mml:math id="M66" display="inline"><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">ALE coordinates</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M67" display="inline"><mml:mi>J</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Jacobian of the ALE mapping</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M68" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Moving mesh velocity</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M69" display="inline"><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Adaptive part of the moving mesh velocity</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M70" display="inline"><mml:mi>e</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Adaptive error function</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M71" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Adaptive background error function</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M72" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Relaxation parameter</oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">  
         <oasis:entry namest="col1" nameend="col2">Finite element framework </oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Shape functions, discontinuous piecewise bi-</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"/>  
         <oasis:entry colname="col2">or tri-linear</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M74" display="inline"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>⋅</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〉</mml:mo></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Integral over the domain</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M75" display="inline"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo>⋅</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Integral over the lateral interfaces</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M76" display="inline"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo>⋅</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Integral over the horizontal interfaces</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M77" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Time step</oasis:entry>
       </oasis:row>
       <oasis:row>  
         <oasis:entry colname="col1"><inline-formula><mml:math id="M78" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mo>]</mml:mo><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula></oasis:entry>  
         <oasis:entry colname="col2">Vertical jump of field <inline-formula><mml:math id="M79" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> at node <inline-formula><mml:math id="M80" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e2099">The equation for the pressure <inline-formula><mml:math id="M81" display="inline"><mml:mi>p</mml:mi></mml:math></inline-formula> results from the hydrostatic hypothesis.
The density <inline-formula><mml:math id="M82" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> is given by the state equation <inline-formula><mml:math id="M83" display="inline"><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo mathvariant="normal" stretchy="false">^</mml:mo></mml:mover><mml:mo>(</mml:mo><mml:mi>S</mml:mi><mml:mo>,</mml:mo><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>
<xref ref-type="bibr" rid="bib1.bibx44" id="paren.32"/>, while <inline-formula><mml:math id="M84" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is the reference density, which is
constant. For limnological applications, the salinity equation is not solved.
The symbol <inline-formula><mml:math id="M85" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> stands for the horizontal
derivative operator, such that <inline-formula><mml:math id="M86" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>=</mml:mo><mml:mo>∂</mml:mo><mml:mi>u</mml:mi><mml:mo>/</mml:mo><mml:mo>∂</mml:mo><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:mo>∂</mml:mo><mml:mi>v</mml:mi><mml:mo>/</mml:mo><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:math></inline-formula>. The material parameters are
the Coriolis parameter <inline-formula><mml:math id="M87" display="inline"><mml:mi>f</mml:mi></mml:math></inline-formula>, the horizontal and vertical viscosities
<inline-formula><mml:math id="M88" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M89" display="inline"><mml:mi mathvariant="italic">ν</mml:mi></mml:math></inline-formula> and the horizontal and vertical diffusivities for
<inline-formula><mml:math id="M90" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M91" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula>. Horizontal viscosity <inline-formula><mml:math id="M92" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ν</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>
follows the Smagorinsky parameterisation <xref ref-type="bibr" rid="bib1.bibx69" id="paren.33"/>. Vertical
eddy viscosity <inline-formula><mml:math id="M93" display="inline"><mml:mi mathvariant="italic">ν</mml:mi></mml:math></inline-formula> and diffusivity <inline-formula><mml:math id="M94" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula> can be determined from the
<inline-formula><mml:math id="M95" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula>–<inline-formula><mml:math id="M96" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> turbulence closure model from GOTM <xref ref-type="bibr" rid="bib1.bibx14" id="paren.34"/>
coupled to SLIM 3D <xref ref-type="bibr" rid="bib1.bibx48" id="paren.35"/>. The boundary conditions<?pagebreak page1164?> are
impermeability at the bottom and the coast, bottom friction and surface wind
stress. Further details about the governing equations are given in
<xref ref-type="bibr" rid="bib1.bibx49" id="text.36"/>.<?xmltex \hack{\newpage}?></p>
</sec>
<sec id="Ch1.S2.SS2">
  <title>Numerical modelling</title>
      <p id="d1e2310">SLIM 3D equations are discretised on a mesh composed of prisms that are
either extruded triangles or extruded quads. The equations are approximated
using discontinuous functions, piecewise bi-linear for the triangle-based
mesh and piecewise tri-linear for the quad-based mesh. This approximation is
achieved using the discontinuous-Galerkin finite element method
<xref ref-type="bibr" rid="bib1.bibx49" id="paren.37"/>.</p>
      <p id="d1e2316">In <xref ref-type="bibr" rid="bib1.bibx49" id="text.38"/>, the mesh uniformly moves in the vertical direction to
follow the free surface movement <xref ref-type="bibr" rid="bib1.bibx15" id="paren.39"/>. In the present study, an
additional vertical mesh velocity is developed to obtain the desired mesh
vertical resolution. In order to satisfy the crucial properties of both mass
conservation and consistency, the moving mesh velocity is computed
differently from <xref ref-type="bibr" rid="bib1.bibx49" id="text.40"/> and is based on the discrete formulation
of the continuity and tracer equations. Indeed, the moving mesh velocity used
in previous versions of SLIM 3D was suffering from small errors for the
tracer consistency preservation: a constant concentration did not remain
constant while transported. Those errors were getting worse with the new
vertical adaptive method. The computation of the internal pressure horizontal
gradient is also described.</p>
<sec id="Ch1.S2.SS2.SSS1">
  <title>Moving mesh and ALE formulation</title>
      <?pagebreak page1165?><p id="d1e2333">The model discretises Eqs. (<xref ref-type="disp-formula" rid="Ch1.E1"/>)
to (<xref ref-type="disp-formula" rid="Ch1.E5"/>) using the arbitrary Lagrangian–Eulerian (ALE)
formulation <xref ref-type="bibr" rid="bib1.bibx27" id="paren.41"/>. Those equations are originally formulated
in a moving domain <inline-formula><mml:math id="M97" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, since the free surface moves vertically.
Consequently, Eqs. (<xref ref-type="disp-formula" rid="Ch1.E1"/>) to (<xref ref-type="disp-formula" rid="Ch1.E5"/>)
cannot be discretised directly, since a mesh does not move continuously but
discretely in time. Considering a fixed domain <inline-formula><mml:math id="M98" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula> for which the
free surface is constant through time, the equations could be discretised in
such a domain, but they are defined in <inline-formula><mml:math id="M99" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, not in <inline-formula><mml:math id="M100" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>.
However, there exists an invertible mapping <inline-formula><mml:math id="M101" display="inline"><mml:mi mathvariant="script">A</mml:mi></mml:math></inline-formula> from
<inline-formula><mml:math id="M102" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula> to <inline-formula><mml:math id="M103" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> <xref ref-type="bibr" rid="bib1.bibx23" id="paren.42"><named-content content-type="pre">similar to</named-content></xref> that
enables us to write the governing equations in <inline-formula><mml:math id="M104" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>:

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M105" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="Ch1.E6"><mml:mtd/><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi mathvariant="script">A</mml:mi><mml:mo>:</mml:mo><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>⟶</mml:mo><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mspace linebreak="nobreak" width="1em"/><mml:mi mathvariant="script">A</mml:mi><mml:mo mathsize="1.1em">(</mml:mo><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>y</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>z</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo mathsize="1.1em">)</mml:mo><mml:mo>=</mml:mo><mml:mo mathsize="1.1em">(</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo>,</mml:mo><mml:mi>z</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi><mml:mo mathsize="1.1em">)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mfenced open="{" close=""><mml:mtable class="cases" rowspacing="0.2ex" columnspacing="1em" columnalign="left" framespacing="0em"><mml:mtr><mml:mtd><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi>y</mml:mi><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mi>y</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi>z</mml:mi><mml:mo>=</mml:mo><mml:mi>z</mml:mi><mml:mo>(</mml:mo><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>y</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>z</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>

              The vertical moving mesh velocity <inline-formula><mml:math id="M106" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, which denotes the movement
of the moving domain <inline-formula><mml:math id="M107" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> with respect to the fixed domain
<inline-formula><mml:math id="M108" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>, in the ALE framework, reads

                  <disp-formula id="Ch1.E7" content-type="numbered"><mml:math id="M109" display="block"><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            Mapping <inline-formula><mml:math id="M110" display="inline"><mml:mi mathvariant="script">A</mml:mi></mml:math></inline-formula> enables us to formulate the equations from <inline-formula><mml:math id="M111" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> to
<inline-formula><mml:math id="M112" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>, called the ALE formulation.<?xmltex \hack{\newpage}?></p>
</sec>
<sec id="Ch1.S2.SS2.SSS2">
  <title>A conservative and consistent moving mesh</title>
      <p id="d1e2708">The temperature <inline-formula><mml:math id="M113" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula> equation reads in the moving domain <inline-formula><mml:math id="M114" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> using the
Eulerian coordinates

                  <disp-formula id="Ch1.E8" content-type="numbered"><mml:math id="M115" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mo>(</mml:mo><mml:mi>w</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>D</mml:mi><mml:mi>T</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M116" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>∂</mml:mo><mml:mo>(</mml:mo><mml:mi>u</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>∂</mml:mo><mml:mo>(</mml:mo><mml:mi>v</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>y</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula> and
<inline-formula><mml:math id="M117" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi>T</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> represents the diffusive terms of the temperature equation
(Eq. <xref ref-type="disp-formula" rid="Ch1.E5"/>).</p>
      <p id="d1e2869">The Jacobian of the mapping (Eq. <xref ref-type="disp-formula" rid="Ch1.E6"/>) is <inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:mi>J</mml:mi><mml:mo>=</mml:mo><mml:mo>∂</mml:mo><mml:mi>z</mml:mi><mml:mo>/</mml:mo><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>z</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:mrow></mml:math></inline-formula>. Following the steps defined in <xref ref-type="bibr" rid="bib1.bibx27" id="text.43"/>,
the temperature equation transforms to

                  <disp-formula id="Ch1.E9" content-type="numbered"><mml:math id="M119" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mi>J</mml:mi></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mo>(</mml:mo><mml:mi>J</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mfenced open="(" close=")"><mml:mrow><mml:mo>(</mml:mo><mml:mi>w</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mi>T</mml:mi></mml:mrow></mml:mfenced></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:msub><mml:mi>D</mml:mi><mml:mi>T</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where the time derivative is calculated on the fixed mesh. This conservative
formulation preserves the total heat by construction in a finite element
scheme <xref ref-type="bibr" rid="bib1.bibx27" id="paren.44"/>.</p>
      <p id="d1e2992">Equation (<xref ref-type="disp-formula" rid="Ch1.E9"/>) is then discretised using the finite
element formalism. The diffusive terms <inline-formula><mml:math id="M120" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi>T</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, detailed in <xref ref-type="bibr" rid="bib1.bibx49" id="text.45"/>,
are zero as long as temperature is constant and hence are ignored
hereinafter. The DG approximation <inline-formula><mml:math id="M121" display="inline"><mml:mover accent="true"><mml:mi>T</mml:mi><mml:mo mathvariant="normal" stretchy="false">^</mml:mo></mml:mover></mml:math></inline-formula> of <inline-formula><mml:math id="M122" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula> is the interpolation of
the discontinuous nodal values <inline-formula><mml:math id="M123" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> using the polynomial shape functions
<inline-formula><mml:math id="M124" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, bi-linear in the case of a mesh composed of extruded triangles and
tri-linear in the case of extruded quads:

                  <disp-formula id="Ch1.E10" content-type="numbered"><mml:math id="M125" display="block"><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mover accent="true"><mml:mi>T</mml:mi><mml:mo stretchy="false" mathvariant="normal">^</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:munder><mml:mo movablelimits="false">∑</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>T</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            The fields <inline-formula><mml:math id="M126" display="inline"><mml:mi mathvariant="bold-italic">u</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M127" display="inline"><mml:mi>w</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M128" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are discretised
similarly. For clarity, the hat sign is removed from the notation
hereinafter. The weak DG formulation of Eq. (<xref ref-type="disp-formula" rid="Ch1.E9"/>) reads

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M129" display="block"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mtext>d</mml:mtext><mml:mrow><mml:mtext>d</mml:mtext><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:mi>T</mml:mi><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:mi>T</mml:mi><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>(</mml:mo><mml:msup><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>(</mml:mo><mml:msup><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:mi>T</mml:mi><mml:mo>(</mml:mo><mml:mi>w</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>)</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo mathsize="1.5em">〉</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mlabeledtr id="Ch1.E11"><mml:mtd/><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>(</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msup><mml:mo>-</mml:mo><mml:msubsup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msubsup><mml:mo>)</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi>z</mml:mi></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace width="1em" linebreak="nobreak"/><mml:mo>∀</mml:mo><mml:mi>j</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              <inline-formula><mml:math id="M130" display="inline"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:mo>⋅</mml:mo><mml:mo mathsize="1.5em">〉</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M131" display="inline"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mo>⋅</mml:mo><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">l</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mo>⋅</mml:mo><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are the integral over the domain, the
lateral and the horizontal interfaces, respectively. All those integrals are
computed over the fixed domain <inline-formula><mml:math id="M133" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula>. At the interfaces, the
velocity <inline-formula><mml:math id="M134" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> is evaluated with an approximated Riemann solver
<xref ref-type="bibr" rid="bib1.bibx49" id="paren.46"/>, <inline-formula><mml:math id="M135" display="inline"><mml:mrow><mml:msup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M136" display="inline"><mml:mrow><mml:msubsup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> are the
values of <inline-formula><mml:math id="M137" display="inline"><mml:mi>w</mml:mi></mml:math></inline-formula> corresponding to the lower element, and <inline-formula><mml:math id="M138" display="inline"><mml:mrow><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula> is the temperature
taken from the upstream element. <inline-formula><mml:math id="M139" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M140" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> refer
to the horizontal and vertical components of the normal vector to the
interfaces.</p>
      <p id="d1e3529">In <xref ref-type="bibr" rid="bib1.bibx49" id="text.47"/>, the discrete moving mesh velocity <inline-formula><mml:math id="M141" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is
obtained by interpolating Eq. (<xref ref-type="disp-formula" rid="Ch1.E7"/>) at nodes. However, this
approach breaks the consistency. In this work, the mesh velocity is
constructed from the position of the new mesh in a way that ensures tracer
consistency at a discrete level. The consistency of the method relies on the
compatibility of the tracer equation (Eq. <xref ref-type="disp-formula" rid="Ch1.E9"/>) with the
continuity equation:

                  <disp-formula id="Ch1.E12" content-type="numbered"><mml:math id="M142" display="block"><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            whose weak formulation reads

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M143" display="block"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd><mml:mstyle displaystyle="true" class="stylechange"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>w</mml:mi><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo mathsize="1.5em">〉</mml:mo><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msup><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi>n</mml:mi><mml:mi>z</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mlabeledtr id="Ch1.E13"><mml:mtd/><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:msup><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:msup><mml:mi mathvariant="bold-italic">u</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="1em"/><mml:mo>∀</mml:mo><mml:mi>j</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              Inserting Eq. (<xref ref-type="disp-formula" rid="Ch1.E13"/>) into Eq. (<xref ref-type="disp-formula" rid="Ch1.E11"/>) and
assuming that <inline-formula><mml:math id="M144" display="inline"><mml:mi>T</mml:mi></mml:math></inline-formula> is constant, one obtains the following equality which, if
satisfied for <inline-formula><mml:math id="M145" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, guarantees the consistency:

                  <disp-formula id="Ch1.E14" content-type="numbered"><mml:math id="M146" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mtext>d</mml:mtext><mml:mrow><mml:mtext>d</mml:mtext><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.25em"/></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>J</mml:mi><mml:msubsup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msubsup><mml:msub><mml:mi>n</mml:mi><mml:mi>z</mml:mi></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="1em"/><mml:mo>∀</mml:mo><mml:mi>j</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            To solve Eq. (<xref ref-type="disp-formula" rid="Ch1.E14"/>), the equation is here integrated in time
using an explicit Euler time scheme (other time schemes follow a similar
development):

                  <disp-formula id="Ch1.E15" content-type="numbered"><mml:math id="M147" display="block"><mml:mrow><?xmltex \hack{\hbox\bgroup\fontsize{9.1}{9.1}\selectfont$\displaystyle}?><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo mathsize="1.5em">〈</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msubsup><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msubsup><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msubsup><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi>n</mml:mi></mml:msubsup></mml:mrow><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>z</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:msubsup><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi>n</mml:mi></mml:msubsup><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:msubsup><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">d</mml:mi></mml:msubsup><mml:msub><mml:mi>n</mml:mi><mml:mi>z</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi mathvariant="italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msubsup><mml:mi/><mml:mi mathvariant="normal">h</mml:mi><mml:mi>n</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>∀</mml:mo><mml:mi>j</mml:mi><mml:mo>.</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:math></disp-formula>

            It is noteworthy that the Jacobian <inline-formula><mml:math id="M148" display="inline"><mml:mi>J</mml:mi></mml:math></inline-formula> which appeared in
Eq. (<xref ref-type="disp-formula" rid="Ch1.E14"/>) is not present in Eq. (<xref ref-type="disp-formula" rid="Ch1.E15"/>).
This is because while the integrals were computed on the fixed domain
<inline-formula><mml:math id="M149" display="inline"><mml:mover accent="true"><mml:mi mathvariant="normal">Ω</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover></mml:math></inline-formula> in Eq. (<xref ref-type="disp-formula" rid="Ch1.E14"/>), they are computed on the
moving domain in Eq. (<xref ref-type="disp-formula" rid="Ch1.E15"/>). The mesh on which the integral
is computed is referred to by using the superscripts <inline-formula><mml:math id="M150" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> or <inline-formula><mml:math id="M151" display="inline"><mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e4079">Starting from the bottom boundary condition <inline-formula><mml:math id="M152" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="normal">|</mml:mi><mml:mrow><mml:mi>z</mml:mi><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mi>h</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula>,
Eq. (<xref ref-type="disp-formula" rid="Ch1.E15"/>) can be integrated element by element from bottom
to top to obtain the moving mesh velocity. Note that, in the interface
integrals, the normal <inline-formula><mml:math id="M153" display="inline"><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is pointing outward.</p>
      <p id="d1e4122">Using this method, the temperature equation reduces by construction to the
continuity equation if the temperature is constant, and therefore the
consistency property holds valid. Salinity and tracer equations follow
exactly the same scheme.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS3">
  <title>Internal pressure gradient</title>
      <p id="d1e4132">In finite difference models using terrain-following meshes, the computation
of the horizontal gradient of the internal pressure gradient is complex.
Considerable efforts were made to reduce the errors in this computation and
to limit the spurious pressure gradient
<xref ref-type="bibr" rid="bib1.bibx73 bib1.bibx7 bib1.bibx8" id="paren.48"><named-content content-type="pre">e.g.</named-content></xref>. For the case of
vertically adaptive meshes, <xref ref-type="bibr" rid="bib1.bibx33" id="text.49"/> showed that the internal
pressure gradient problem is reduced because of the horizontal smoothing of
the mesh.</p>
      <p id="d1e4143">The pressure gradient formulation in SLIM 3D is different from the finite
difference schemes; the equations are in <inline-formula><mml:math id="M154" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> coordinates and not in <inline-formula><mml:math id="M155" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>
or <inline-formula><mml:math id="M156" display="inline"><mml:mi>s</mml:mi></mml:math></inline-formula> coordinates. The fact that<?pagebreak page1166?> the levels are not horizontal is handled
by the finite element formulation. However, having a steep slope also induces
difficulties. The weak formulation of the horizontal gradient of a field <inline-formula><mml:math id="M157" display="inline"><mml:mi>f</mml:mi></mml:math></inline-formula>
reads

                  <disp-formula specific-use="align" content-type="numbered"><mml:math id="M158" display="block"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>f</mml:mi><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>f</mml:mi><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/></mml:msub><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>f</mml:mi><mml:msub><mml:mi mathvariant="bold-italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mrow><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mlabeledtr id="Ch1.E16"><mml:mtd/><mml:mtd><mml:mstyle class="stylechange" displaystyle="true"/></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo>+</mml:mo><mml:mo mathsize="1.5em">〈</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mo mathsize="1.5em">〈</mml:mo><mml:mi>f</mml:mi><mml:msub><mml:mi mathvariant="bold-italic">ϕ</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo>⋅</mml:mo><mml:msub><mml:mi mathvariant="bold-italic">n</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mo mathsize="1.5em">〉</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mo mathsize="1.5em">〉</mml:mo><mml:msub><mml:mi/><mml:mi mathvariant="normal">l</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="1em"/><mml:mo>∀</mml:mo><mml:mi>j</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

              Since first-order shape functions are used in the finite element formulation,
only first-order polynomials are interpolated exactly at the integration
points in order to compute the integrals of the right-hand side of
Eq. (<xref ref-type="disp-formula" rid="Ch1.E16"/>).</p>
      <p id="d1e4316">In the previous version of SLIM 3D <xref ref-type="bibr" rid="bib1.bibx49" id="paren.50"/>, the internal pressure
gradient was obtained by first integrating the density deviation
<inline-formula><mml:math id="M159" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, with <inline-formula><mml:math id="M160" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M161" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> the water density and the water
reference density, and then computing its horizontal gradient:

                  <disp-formula id="Ch1.E17" content-type="numbered"><mml:math id="M162" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:msub><mml:munder><mml:mrow><mml:munderover><mml:mo movablelimits="false">∫</mml:mo><mml:mi>z</mml:mi><mml:mi mathvariant="italic">η</mml:mi></mml:munderover><mml:msup><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:mtext>d</mml:mtext><mml:mi mathvariant="italic">ζ</mml:mi></mml:mrow><mml:mo mathvariant="normal">︸</mml:mo></mml:munder><mml:mi>r</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            Even for a vertically linear <inline-formula><mml:math id="M163" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M164" display="inline"><mml:mi>r</mml:mi></mml:math></inline-formula> is a quadratic function that cannot
be represented exactly. Those integration errors generate errors in the
gradient <inline-formula><mml:math id="M165" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>p</mml:mi></mml:mrow></mml:math></inline-formula>.</p>
      <p id="d1e4459">The new approach consists in computing the horizontal derivative before the
vertical integration

                  <disp-formula id="Ch1.E18" content-type="numbered"><mml:math id="M166" display="block"><mml:mrow><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:munderover><mml:mo movablelimits="false">∫</mml:mo><mml:mi>z</mml:mi><mml:mi mathvariant="italic">η</mml:mi></mml:munderover><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:msup><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:mtext>d</mml:mtext><mml:mi mathvariant="italic">ζ</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mi>g</mml:mi><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:msup><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:msub><mml:mi mathvariant="normal">|</mml:mi><mml:mi mathvariant="italic">η</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="bold">∇</mml:mi><mml:mi mathvariant="normal">h</mml:mi></mml:msub><mml:mi mathvariant="italic">η</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            Using Eq. (<xref ref-type="disp-formula" rid="Ch1.E18"/>), the computation of the gradient of a
linearly stratified sea does not involve a quadratic field, and the computed
internal pressure gradient is zero, up to the machine accuracy.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS4">
  <title>Vertical adaptive mesh velocity</title>
      <p id="d1e4558">To obtain accurate results at a reasonable computational cost, the mesh
vertical resolution should be high in areas with strong stratification or
shear, and low elsewhere. In this study, the refinement is achieved as a
function of the stratification only. The shear is thus ignored, but it could
be taken into account similarly to what is developed hereinafter for the
stratification. The mesh velocity reads

                  <disp-formula id="Ch1.E19" content-type="numbered"><mml:math id="M167" display="block"><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>w</mml:mi><mml:mi mathvariant="normal">m</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mi>h</mml:mi><mml:mo>+</mml:mo><mml:mi>z</mml:mi></mml:mrow><mml:mrow><mml:mi>h</mml:mi><mml:mo>+</mml:mo><mml:mi mathvariant="italic">η</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:mi mathvariant="italic">η</mml:mi></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:msup><mml:mi>w</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            The first term of the right-hand side is the mesh velocity due to the free
surface movement, while the second term is the mesh adaptive velocity.<?xmltex \hack{\newpage}?></p>
      <p id="d1e4613">The mesh resolution variation results from a diffusion process of the
Eulerian vertical coordinate <inline-formula><mml:math id="M168" display="inline"><mml:mrow><mml:mi>z</mml:mi><mml:mo>(</mml:mo><mml:mover accent="true"><mml:mi>x</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>y</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>z</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mi>t</mml:mi><mml:mo mathvariant="normal">̃</mml:mo></mml:mover><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>,
leading to the vertical displacement of the mesh nodes. In contrast to
<xref ref-type="bibr" rid="bib1.bibx13" id="text.51"/> and <xref ref-type="bibr" rid="bib1.bibx40" id="text.52"/>, the diffusion process is not
defined in the continuous domain but directly on the discrete mesh. The mesh
is made up of vertically extruded triangles or quads to form columns of
prisms. As a consequence, the mesh also consists of vertical columns of
nodes, which are the vertices of the prisms. Those nodes are connected by
vertical segments. For each column composed of <inline-formula><mml:math id="M169" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> vertical segments, the
nodes are labelled with an index <inline-formula><mml:math id="M170" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> varying between <inline-formula><mml:math id="M171" display="inline"><mml:mn mathvariant="normal">0</mml:mn></mml:math></inline-formula> at the bottom and
<inline-formula><mml:math id="M172" display="inline"><mml:mi>n</mml:mi></mml:math></inline-formula> at the top. Segment <inline-formula><mml:math id="M173" display="inline"><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula> joins nodes <inline-formula><mml:math id="M174" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M175" display="inline"><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>. The objective of
the mesh adaptation is to distribute the nodes of a column such that

                  <disp-formula id="Ch1.E20" content-type="numbered"><mml:math id="M176" display="block"><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mspace width="0.25em" linebreak="nobreak"/><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>j</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mspace width="1em" linebreak="nobreak"/><mml:mo>∀</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mi mathvariant="normal">…</mml:mi><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M177" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the segment height and <inline-formula><mml:math id="M178" display="inline"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> is
a relevant measure of the segment error. The mesh is in equilibrium when the
product of the segment height and the segment error is constant over a
vertical column. A finite difference diffusion equation is implemented:

                  <disp-formula id="Ch1.E21" content-type="numbered"><mml:math id="M179" display="block"><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mfenced open="{" close=""><mml:mtable class="cases" columnspacing="1em" rowspacing="0.2ex" columnalign="left left" framespacing="0em"><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>w</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mrow><mml:mi>z</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mfenced><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mrow><mml:mi>z</mml:mi><mml:mspace linebreak="nobreak" width="0.33em"/><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mfenced open="(" close=")"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:mfenced><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow/></mml:mtd><mml:mtd><mml:mrow><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mo>∀</mml:mo><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mi mathvariant="normal">…</mml:mi><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mi>n</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msubsup><mml:mi>w</mml:mi><mml:mn mathvariant="normal">0</mml:mn><mml:mo>*</mml:mo></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mi>w</mml:mi><mml:mi>n</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced></mml:mrow></mml:math></disp-formula>

            The mesh “diffusivity” <inline-formula><mml:math id="M180" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mi>z</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (which has the physical unit s<inline-formula><mml:math id="M181" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>) is
then defined by

                  <disp-formula id="Ch1.E22" content-type="numbered"><mml:math id="M182" display="block"><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi mathvariant="italic">κ</mml:mi><mml:mrow><mml:mi>z</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msubsup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi mathvariant="normal">e</mml:mi><mml:mspace width="0.33em" linebreak="nobreak"/><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mi mathvariant="italic">τ</mml:mi></mml:mfrac></mml:mstyle><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

            The dependency in <inline-formula><mml:math id="M183" display="inline"><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> ensures that, at a given level, if the upper segment
error is larger than the lower segment error, the diffusion process will tend
to reduce the upper segment size, and vice versa. The background diffusivity
<inline-formula><mml:math id="M184" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mspace linebreak="nobreak" width="0.33em"/><mml:msup><mml:mi mathvariant="italic">τ</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> allows for manual control of the mesh resolution
independently of the discretisation error. The time <inline-formula><mml:math id="M185" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> is a relaxation
parameter controlling the speed of the adaptation process.</p>
      <?pagebreak page1167?><p id="d1e5170">The main difference between the original approach and the implementation in
SLIM 3D is the definition of the error density <inline-formula><mml:math id="M186" display="inline"><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula>.
In <xref ref-type="bibr" rid="bib1.bibx40" id="text.53"/>, a function of shear and stratification is used. In
DG finite element methods, the discretisation error converges at the same
rate as the inter-element discontinuities (jumps) of the solution
<xref ref-type="bibr" rid="bib1.bibx1 bib1.bibx6" id="paren.54"/>. The error density is then defined as a
function of the vertical jumps:

                  <disp-formula id="Ch1.E23" content-type="numbered"><mml:math id="M187" display="block"><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msubsup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>[</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msubsup><mml:mo>]</mml:mo><mml:mi>i</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup><mml:mo>+</mml:mo><mml:mo>[</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msubsup><mml:mo>]</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:msubsup></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi mathvariant="italic">ρ</mml:mi><mml:msup><mml:mo>)</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            where <inline-formula><mml:math id="M188" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:msub><mml:mo>]</mml:mo><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> refers to the maximum jump between all the upper DG values
adjacent to continuous node <inline-formula><mml:math id="M189" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> (blue nodes in
Fig. <xref ref-type="fig" rid="Ch1.F3"/>) and lower DG values adjacent to this same
node (red nodes in Fig. <xref ref-type="fig" rid="Ch1.F3"/>).</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3"><caption><p id="d1e5290">Simple mesh composed of four prisms, formed by the extrusion of two
triangles. Examples of horizontal and vertical interfaces are highlighted.
The discontinuous nodes are illustrated in blue (upper nodes) and red (lower
nodes). The indices on the left correspond to the indexing of the vertical
columns.</p></caption>
            <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f03.pdf"/>

          </fig>

      <p id="d1e5300">This diffusion algorithm is valid for meshes with both <inline-formula><mml:math id="M190" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> and
<inline-formula><mml:math id="M191" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> levels. On a mesh with <inline-formula><mml:math id="M192" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula> levels, the number of levels is constant
over the entire mesh and the bathymetry is continuous
(Fig. <xref ref-type="fig" rid="Ch1.F4"/>a). On a mesh with <inline-formula><mml:math id="M193" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> levels, the
bathymetry is discontinuous (Fig. <xref ref-type="fig" rid="Ch1.F4"/>b) and
the number of levels is not constant over the domain, although it is constant
in time, since adaptation only moves the nodes vertically, without removing
them or adding new ones.</p>
      <p id="d1e5336">The discrete mesh is updated by interpolating the function defined in
Eq. (<xref ref-type="disp-formula" rid="Ch1.E19"/>) at the element vertices. Then, the
<inline-formula><mml:math id="M194" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> coordinates of the vertices are smoothed in the horizontal direction,
except on the mesh lateral boundaries. This smoothing is achieved with a
simple two-step algorithm (Fig. <xref ref-type="fig" rid="Ch1.F5"/>). First, for
each element of the mesh, the <inline-formula><mml:math id="M195" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> coordinates of the upper and lower nodes
are set to the mean value of those upper and lower nodes, respectively. The
<inline-formula><mml:math id="M196" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> field is now discontinuous. Second, <inline-formula><mml:math id="M197" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> is projected onto a continuous
field, such that the mean value of every vertex is preserved. This simple
algorithm smooths the <inline-formula><mml:math id="M198" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> coordinates in the horizontal direction.
Eventually, <inline-formula><mml:math id="M199" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> is corrected such that all the elements have a thickness
between appropriate minimal and maximal values. This correction is achieved
by a double loop over each segment column. First, looping from bottom to top,
the top node of each segment is moved if necessary. Second, looping from top
to bottom, the bottom node of each segment is moved.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F4"><caption><p id="d1e5388">Comparison between an adapted <inline-formula><mml:math id="M200" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>-level mesh <bold>(a)</bold> and
an adapted <inline-formula><mml:math id="M201" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula>-level mesh <bold>(b)</bold>. The nodes marked with a red dot are
fixed during the mesh vertical diffusion process, which is independent of the
movement necessary to accommodate to the motion of the free surface
(Eq. <xref ref-type="disp-formula" rid="Ch1.E19"/>).</p></caption>
            <?xmltex \igopts{width=221.931496pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f04.pdf"/>

          </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5"><caption><p id="d1e5421">Illustration of the horizontal smoothing algorithm on a 2-D
<inline-formula><mml:math id="M202" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M203" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> mesh. First, for each element, the upper and lower nodal values
of the vertical coordinate <inline-formula><mml:math id="M204" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> are set to their mean value; then, <inline-formula><mml:math id="M205" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> is
projected onto a continuous field. The numbers refer to the depth of the mesh
levels.</p></caption>
            <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f05.pdf"/>

          </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F6" specific-use="star"><caption><p id="d1e5461">Along-lake component of the daily-averaged wind stress measured in
Mpulungu, at the southern tip of the lake. Positive values indicate northwestward
blowing wind <xref ref-type="bibr" rid="bib1.bibx43" id="paren.55"/>.</p></caption>
            <?xmltex \igopts{width=312.980315pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f06.pdf"/>

          </fig>

</sec>
</sec>
<sec id="Ch1.S2.SS3">
  <title>Thermocline oscillations of Lake Tanganyika model set-up</title>
<sec id="Ch1.S2.SS3.SSS1">
  <title>Summary of Lake Tanganyika dynamics</title>
      <p id="d1e5485">Lake Tanganyika is very long (<inline-formula><mml:math id="M206" display="inline"><mml:mo>∼</mml:mo></mml:math></inline-formula> 650 km in length), narrow
(<inline-formula><mml:math id="M207" display="inline"><mml:mo>∼</mml:mo></mml:math></inline-formula> 50 km wide on average) and deep, with an average depth of 570 m
and a maximum depth of 1470 m (Fig. <xref ref-type="fig" rid="Ch1.F1"/>), making it the
second deepest lake in the world. The two layers composing the lake are
called the epilimnion and the hypolimnion. The epilimnion, which is the
shallow upper layer, is relatively warm (24–28 <inline-formula><mml:math id="M208" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C;
<xref ref-type="bibr" rid="bib1.bibx18 bib1.bibx56" id="altparen.56"/>) and has a typical depth of about 50 m.
Below the thermocline, the deep hypolimnion is composed of cooler water
(<inline-formula><mml:math id="M209" display="inline"><mml:mo>∼</mml:mo></mml:math></inline-formula> 23.5 <inline-formula><mml:math id="M210" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C). Forced by the surface wind stress, the
thermocline oscillates. There are two main seasons in the region. During the
dry season, approximately from April or May to September, strong
southeasterly wind blows along the main axis of the lake
<xref ref-type="bibr" rid="bib1.bibx25" id="paren.57"/>. The wind pushes the epilimnion water towards the north,
causing upwelling at the southern tip and downwelling at the northern tip
(Fig. <xref ref-type="fig" rid="Ch1.F2"/>), and resulting in a thermocline tilted
towards the north. The wind oscillations are characterised by a period of 3
to 4 weeks <xref ref-type="bibr" rid="bib1.bibx55" id="paren.58"/>, which is of the same order of magnitude as
the period of the first free mode of oscillation of the thermocline
<xref ref-type="bibr" rid="bib1.bibx56" id="paren.59"/>, giving rise to quasi-resonance. Thus, during the
abovementioned season, the thermocline oscillations are essentially a direct
response to the wind forcing, i.e. large-amplitude, forced oscillations
<xref ref-type="bibr" rid="bib1.bibx32" id="paren.60"/>. The thermocline is deep and sharp at the northern tip
but becomes diffuse at the southern tip <xref ref-type="bibr" rid="bib1.bibx18" id="paren.61"/>. During strong
wind events, the oscillations are so large that the thermocline outcrops.
Besides the hydrodynamical effect, the mixed layer also deepens during the
dry season. This mixing is due to evaporative-driven cooling
<xref ref-type="bibr" rid="bib1.bibx74 bib1.bibx75" id="paren.62"/>. On the other hand, during<?pagebreak page1168?> the wet season
(from October to March), the wind stress is significantly smaller, leading to
thermocline oscillations that may be viewed as progressively decaying
internal seiches.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F7" specific-use="star"><caption><p id="d1e5556">Along-lake component of the daily-averaged wind stress, at the
northern, central and southern parts of the lake, between April 2002 and 2004,
as modelled by the regional climate model COSMO-CLM<inline-formula><mml:math id="M211" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>
<xref ref-type="bibr" rid="bib1.bibx76" id="paren.63"/>.</p></caption>
            <?xmltex \igopts{width=312.980315pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f07.pdf"/>

          </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F8" specific-use="star"><caption><p id="d1e5579">Time series of the surface temperature at Kigoma (red curve) and
Mpulungu (green curve), as modelled by COSMO-CLM<inline-formula><mml:math id="M212" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>
<xref ref-type="bibr" rid="bib1.bibx76" id="paren.64"/>.</p></caption>
            <?xmltex \igopts{width=284.527559pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f08.pdf"/>

          </fig>

</sec>
<sec id="Ch1.S2.SS3.SSS2">
  <title>Wind forcing</title>
      <p id="d1e5606">Two wind data sets are available: a time series of measurements at one
location and a modelled spatial wind map.</p>
      <p id="d1e5609">Wind speed and direction were measured every hour from April 1993 to August
1994 <xref ref-type="bibr" rid="bib1.bibx43" id="paren.65"/> in Mpulungu, at the southern tip of the lake
(8<inline-formula><mml:math id="M213" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>45<inline-formula><mml:math id="M214" display="inline"><mml:msup><mml:mi/><mml:mo>′</mml:mo></mml:msup></mml:math></inline-formula> S, 31<inline-formula><mml:math id="M215" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>6<inline-formula><mml:math id="M216" display="inline"><mml:msup><mml:mi/><mml:mo>′</mml:mo></mml:msup></mml:math></inline-formula> E). These wind speed observations were
used for earlier studies using a 2-D reduced gravity model
<xref ref-type="bibr" rid="bib1.bibx56 bib1.bibx57 bib1.bibx54 bib1.bibx31 bib1.bibx32" id="paren.66"/>.
Figure <xref ref-type="fig" rid="Ch1.F6"/> shows the daily-averaged wind stress
along the main axis of the lake.</p>
      <p id="d1e5657">On the other hand, non-uniform wind data were obtained from the COSMO-CLM<inline-formula><mml:math id="M217" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula>
model, which couples the non-hydrostatic regional climate model COSMO-CLM
version 4.8 to the Community Land Model version 3.5 (CLM3.5) and the
Freshwater Lake model <xref ref-type="bibr" rid="bib1.bibx20" id="paren.67"><named-content content-type="pre">FLake;</named-content></xref>. The COSMO-CLM<inline-formula><mml:math id="M218" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> model
was recently applied in its tropical configuration
<xref ref-type="bibr" rid="bib1.bibx2 bib1.bibx61" id="paren.68"/> to assess the two-way interactions between
the African Great Lakes and the surrounding climate
<xref ref-type="bibr" rid="bib1.bibx76 bib1.bibx77 bib1.bibx25" id="paren.69"/>, as well as evaluate natural
hazards in the region <xref ref-type="bibr" rid="bib1.bibx45 bib1.bibx46" id="paren.70"/>. The climate
simulations were conducted at a horizontal resolution of 0.0625<inline-formula><mml:math id="M219" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>
(<inline-formula><mml:math id="M220" display="inline"><mml:mo>∼</mml:mo></mml:math></inline-formula> 7 km) for the period 1996–2008 and provide near-surface wind
fields at a temporal resolution of 3 h.</p>
      <p id="d1e5709">Figure <xref ref-type="fig" rid="Ch1.F7"/> shows the component of the surface wind
stress along the main axis of the lake at three locations. While the wind is
mostly blowing northwestward during the dry season (April–September), it is
much weaker and does not have a dominant direction during the wet season. The
wind is weaker in the northern part of the lake <xref ref-type="bibr" rid="bib1.bibx25" id="paren.71"/>.<?xmltex \hack{\newpage}?></p>
</sec>
<sec id="Ch1.S2.SS3.SSS3">
  <title>Model set-up</title>
      <p id="d1e5724">Two configurations of the model are run. In the first configuration, aimed to
analyse the effect of adaptive coordinates, no vertical diffusivity is
applied to the temperature field, such that the modelled thermocline should
remain sharp. The vertical viscosity is determined from the
<inline-formula><mml:math id="M221" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula>–<inline-formula><mml:math id="M222" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> turbulence closure model implemented in GOTM
<xref ref-type="bibr" rid="bib1.bibx14" id="paren.72"/> and coupled to SLIM 3D <xref ref-type="bibr" rid="bib1.bibx48" id="paren.73"/>. Moreover, the
homogeneous wind stress from Mpulungu measurement is applied at the entire
lake surface and no surface heat flux is applied.</p>
      <?pagebreak page1169?><p id="d1e5747">In the second set-up, the vertical diffusivity and viscosity are taken into
account. They are determined from the <inline-formula><mml:math id="M223" display="inline"><mml:mi mathvariant="italic">κ</mml:mi></mml:math></inline-formula>–<inline-formula><mml:math id="M224" display="inline"><mml:mi mathvariant="italic">ϵ</mml:mi></mml:math></inline-formula> turbulence closure
model. The spatial wind from COSMO-CLM<inline-formula><mml:math id="M225" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> is applied. The surface heat flux
is parameterised by adding a relaxation term, in the upper layer of the lake.
The relaxation term is defined as

                  <disp-formula id="Ch1.E24" content-type="numbered"><mml:math id="M226" display="block"><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">relax</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>max⁡</mml:mo><mml:mo>(</mml:mo><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>z</mml:mi><mml:mo>,</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>(</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">ref</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:mi>T</mml:mi><mml:mo>)</mml:mo><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

            with <inline-formula><mml:math id="M227" display="inline"><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mi mathvariant="normal">ref</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> the reference temperature, <inline-formula><mml:math id="M228" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> the depth of
the relaxation zone and <inline-formula><mml:math id="M229" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> the relaxation time parameter. This
simple parameterisation <xref ref-type="bibr" rid="bib1.bibx47" id="paren.74"><named-content content-type="pre">similar to</named-content></xref> has the
advantage of only requiring the surface temperature as input data
<xref ref-type="bibr" rid="bib1.bibx4" id="paren.75"/>. Other parameterisations, which require more data to
compute the heat flux, can lead to spurious results in the case of discrepancies
between the dynamics of the lake model and the model providing those input
data. They are more sensitive to the level of uncertainty of the data than
the simple parameterisation used in this study. The surface reference
temperature comes from the same data set as the wind data, i.e. from the
COSMO-CLM<inline-formula><mml:math id="M230" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> model. Furthermore, the depth of the relaxation zone is set to
<inline-formula><mml:math id="M231" display="inline"><mml:mrow><mml:msub><mml:mi>z</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">12</mml:mn></mml:mrow></mml:math></inline-formula> m, which corresponds to a typical value for the photic
depth <xref ref-type="bibr" rid="bib1.bibx24" id="paren.76"/>, which is used as a proxy for the water column
influenced by solar radiation and other heat fluxes. The relaxation time is
equal to <inline-formula><mml:math id="M232" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi mathvariant="normal">r</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">10</mml:mn></mml:mrow></mml:math></inline-formula> days, which was obtained after calibration.
Figure <xref ref-type="fig" rid="Ch1.F8"/> illustrates the evolution of this
temperature at two locations: Kigoma, in the northern basin, and Mpulungu, at
the southern tip of the lake. It is observed that at both locations the
surface temperature drops during the dry season.</p>
</sec>
<sec id="Ch1.S2.SS3.SSS4">
  <title>Lake temperature vertical profile</title>
      <p id="d1e5928">Within the framework of the CLIMLAKE project <xref ref-type="bibr" rid="bib1.bibx24" id="paren.77"/>, the water
temperature was measured at Kigoma and Mpulungu (see location in
Fig. <xref ref-type="fig" rid="Ch1.F8"/>) between 2002 and 2004, at vertical intervals
of 20 m between 0 and 100 m depth. This vertical profile temporal series is
used for model validation. It is noteworthy that the surface temperature at
Kigoma and Mpulungu from the CLIMLAKE in situ measurements exhibits
significant discrepancies with the data from the COSMO-CLM<inline-formula><mml:math id="M233" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> data set,
which are used as input data for the model simulations.</p>
</sec>
</sec>
</sec>
<sec id="Ch1.S3">
  <title>Results</title>
      <p id="d1e5953">Before applying SLIM 3D to Lake Tanganyika, the model is evaluated on simpler
test cases. First, the internal seiche benchmark of <xref ref-type="bibr" rid="bib1.bibx40" id="text.78"/> is
used to assess the model ability to preserve a sharp interface. Second, a
convergence analysis is performed on this benchmark. Third, the accuracy of
the steady-state thermocline position under constant wind stress forcing is
evaluated. Then, preliminary simulations of the Lake Tanganyika hydrodynamics
are undertaken. For those runs, no vertical diffusivity is applied to the
temperature field, and the wind stress measured at<?pagebreak page1170?> Mpulungu is forced
uniformly at the lake surface. Adaptive and fixed meshes are compared on this
set-up for both a 2-D <inline-formula><mml:math id="M234" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M235" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> and a 3-D model. Eventually, the complete
model for Lake Tanganyika is run.</p>
<sec id="Ch1.S3.SS1">
  <title>Internal seiche</title>
      <p id="d1e5978">The first test to evaluate the adaptive coordinate system is the internal
seiche modelling of <xref ref-type="bibr" rid="bib1.bibx40" id="text.79"/>. This two-layer benchmark bears
similarities with the dynamics of the thermocline of Lake Tanganyika. It is
fully defined in <xref ref-type="bibr" rid="bib1.bibx40" id="text.80"/>. The objective is to simulate the
oscillations of the interface in a long (64 km long) and shallow (20 m
deep) channel. In contrast to Lake Tanganyika, the density is here a function
of salinity, not of temperature. Also, since the original test case is
defined using a two-layer model, there is no vertical mixing. The goal is
therefore to diffuse the interface as little as possible.</p>
      <p id="d1e5987">For this application, the error measure used to diffuse vertically the mesh
is a function of the vertical jumps in the density field, with a small
background error <inline-formula><mml:math id="M236" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula>. The time constant is set to
<inline-formula><mml:math id="M237" display="inline"><mml:mrow><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">100</mml:mn></mml:mrow></mml:math></inline-formula> s, and the minimum and maximum heights of an element are set to
0.1 and 1.5 m, respectively.</p>
      <p id="d1e6023">Figure <xref ref-type="fig" rid="Ch1.F9"/> compares the salinity vertical profile
after half an oscillation for a fixed mesh (a) and the adaptive mesh (b),
both with 20 levels. For both runs, the initial mesh is set such that it
captures perfectly the interface initial position. While the fixed mesh
induces large numerical mixing in one case, the mesh adapts and follows
perfectly the interface due to the vertical adaptivity in the other case.</p>
</sec>
<sec id="Ch1.S3.SS2">
  <title>Convergence analysis</title>
      <p id="d1e6034">To evaluate the model accuracy, a convergence analysis is performed for the
internal seiche. The evolution of the interface depth at the right boundary
of the domain is compared for different simulations using a number of fixed
levels, varying between 10 and 320, which induces a level thickness varying
between 2 m and 6.25 cm, using the same time step for all the simulations
(<inline-formula><mml:math id="M238" display="inline"><mml:mrow><mml:mi mathvariant="normal">Δ</mml:mi><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">60</mml:mn></mml:mrow></mml:math></inline-formula> s). Two simulations are also performed using adaptive
meshes, with 6 and 20 levels, respectively. In the simulations using a
coarse-resolution fixed mesh, the interface is diffused
(Fig. <xref ref-type="fig" rid="Ch1.F9"/>a), and the seiche oscillates too slowly
compared to the 320-level run. While the first oscillation is rather well
captured by all the simulations, the coarse-resolution simulations miss the
correct dynamics during the next oscillations. After two oscillations, the
simulation with 20 fixed levels fails to reproduce the dynamics
(Fig. <xref ref-type="fig" rid="Ch1.F10"/>). In contrast, the simulation with 20
adaptive levels is as accurate as the simulation with 320 fixed levels. The
minimal number of adaptive levels for an acceptable simulation is six. With
this number, two thin levels stick to the upper part of the interface and two
others to the lower part, while the two last levels cover the remaining part
of the domain (one on the top and one on the bottom). The six-level simulation
with the adaptive method thereby produces results as good as the simulation
with 80 fixed levels. Considering that the CPU time of the simulations is
proportional to the number of levels (Fig. <xref ref-type="fig" rid="Ch1.F11"/>) and that
the computational overhead of adaptive levels is negligible, the adaptive
method is about 16 times faster for a similar accuracy.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F9"><caption><p id="d1e6059">Comparison between the internal seiche modelling with
<bold>(a)</bold> fixed and <bold>(b)</bold> adaptive meshes. The black lines show the
different mesh levels. While the first one induces important numerical mixing
at the interface, the interface remains sharp in the second one.
<bold>(c)</bold> Zoom of the area delimited by the green rectangle in
<bold>(b)</bold>, showing two levels with the highest vertical permitted
resolution on both sides of the interface.</p></caption>
          <?xmltex \igopts{width=236.157874pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f09.pdf"/>

        </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F10" specific-use="star"><caption><p id="d1e6082">Convergence analysis for the internal seiche modelling. The graph
shows the third oscillation of the seiche, at which moment the results are
beginning to diverge from the high-resolution
solution.</p></caption>
          <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f10.pdf"/>

        </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F11"><caption><p id="d1e6094">CPU time of the simulations for a different number of levels (using
a log–log scale). CPU times are normalised by the 10 fixed levels of simulation
time. As expected, CPU time is proportional to the number of levels.
Moreover, the computational overhead of adaptive levels is negligible. For
the same computational cost, the adaptive method is then much more accurate
(Fig. <xref ref-type="fig" rid="Ch1.F10"/>).</p></caption>
          <?xmltex \igopts{width=213.395669pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f11.pdf"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS3">
  <title>Steady-state thermocline position under constant wind stress</title>
      <?pagebreak page1171?><p id="d1e6111">To assess the model, the equilibrium position of the thermocline under a
constant wind stress is evaluated in a 2-D <inline-formula><mml:math id="M239" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M240" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> domain. The position
of the thermocline is approximated using the analytical solution of a 1-D
two-layer model, which simulates the epilimnion and hypolimnion vertically
averaged velocity and the thermocline depth <xref ref-type="bibr" rid="bib1.bibx19" id="paren.81"/>. At the
steady-state equilibrium, the pressure gradient due to the slope of the
thermocline depth <inline-formula><mml:math id="M241" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mtext>t</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is balanced by the wind stress:

                <disp-formula id="Ch1.E25" content-type="numbered"><mml:math id="M242" display="block"><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi>g</mml:mi><mml:msub><mml:mi>h</mml:mi><mml:mtext>t</mml:mtext></mml:msub><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mo>∂</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mtext>t</mml:mtext></mml:msub></mml:mrow><mml:mrow><mml:mo>∂</mml:mo><mml:mi>x</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi>x</mml:mi></mml:msub></mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi></mml:mfrac></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

          where <inline-formula><mml:math id="M243" display="inline"><mml:mrow><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:mi mathvariant="italic">ρ</mml:mi><mml:mo>-</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is the relative density difference
between the upper and the lower layers, with <inline-formula><mml:math id="M244" display="inline"><mml:mi mathvariant="italic">ρ</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M245" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">ρ</mml:mi><mml:mn mathvariant="normal">0</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> being the
epilimnion and hypolimnion densities, respectively. <inline-formula><mml:math id="M246" display="inline"><mml:mi>g</mml:mi></mml:math></inline-formula> is the gravitational
acceleration and <inline-formula><mml:math id="M247" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi>x</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> the wind stress. The solution of
Eq. (<xref ref-type="disp-formula" rid="Ch1.E25"/>) reads

                <disp-formula id="Ch1.E26" content-type="numbered"><mml:math id="M248" display="block"><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msub><mml:mi>h</mml:mi><mml:mtext>t</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:mi>A</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi>x</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi>g</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mi>x</mml:mi></mml:mrow></mml:msqrt><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>

          where constant <inline-formula><mml:math id="M249" display="inline"><mml:mi>A</mml:mi></mml:math></inline-formula> is such that the total epilimnion volume is conserved:

                <disp-formula id="Ch1.E27" content-type="numbered"><mml:math id="M250" display="block"><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:munderover><mml:mo movablelimits="false">∫</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mi>L</mml:mi></mml:munderover><mml:msqrt><mml:mrow><mml:mi>A</mml:mi><mml:mo>+</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi mathvariant="italic">τ</mml:mi><mml:mi>x</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mi mathvariant="italic">ρ</mml:mi><mml:mi mathvariant="italic">ϵ</mml:mi><mml:mi>g</mml:mi></mml:mrow></mml:mfrac></mml:mstyle><mml:mi>x</mml:mi></mml:mrow></mml:msqrt><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mtext>d</mml:mtext><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mtext>t0</mml:mtext></mml:msub><mml:mi>L</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>

          <inline-formula><mml:math id="M251" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mtext>t0</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> is the initial epilimnion height (when the thermocline is horizontal)
and <inline-formula><mml:math id="M252" display="inline"><mml:mi>L</mml:mi></mml:math></inline-formula> is the length of the lake.</p>
      <p id="d1e6378">The thermocline depth is simulated for a wind stress of 0.02 N m<inline-formula><mml:math id="M253" display="inline"><mml:msup><mml:mi/><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>,
for which there is no outcropping. The simulation starts with the thermocline
located at <inline-formula><mml:math id="M254" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mtext>t0</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">50</mml:mn></mml:mrow></mml:math></inline-formula> m and the model runs until a steady-state is arrived
at, resulting in an average difference of 0.5 % and a maximum difference
of 2.5 % between the 2-D <inline-formula><mml:math id="M255" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M256" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> simulation and the 1-D analytical
solution (Fig. <xref ref-type="fig" rid="Ch1.F12"/>). The maximum difference
occurs close to the southern tip of the lake, where the thermocline is
slightly diffused close to the model boundary.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F12"><caption><p id="d1e6426">Comparison between the analytical steady-state thermocline profile
using the 1-D two-layer approximation and the 2-D <inline-formula><mml:math id="M257" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M258" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> simulation,
under a constant wind stress. The dashed line represents the thermocline
position without wind stress.</p></caption>
          <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f12.pdf"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS4">
  <title>Lake Tanganyika simulation without vertical diffusion</title>
      <?pagebreak page1172?><p id="d1e6456">Lake Tanganyika hydrodynamics is simulated using the first model
configuration. The model ability to preserve a sharp thermocline is assessed
for simulations with and without the vertically adaptive mesh. First, the
lake dynamics is simulated with a simple 2-D <inline-formula><mml:math id="M259" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M260" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> mesh, representing
the south–north thermocline position (Fig. <xref ref-type="fig" rid="Ch1.F13"/>).
Then, it is simulated using a full 3-D mesh, and the thermocline position
along the main axis is extracted from the results
(Fig. <xref ref-type="fig" rid="Ch1.F14"/>). For both 2-D <inline-formula><mml:math id="M261" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M262" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> and 3-D
simulations, a sharp thermocline is maintained using an adaptive mesh, while
a fixed mesh results in the blurring of the thermocline. Again, this confirms
that SLIM 3D with vertically adaptive mesh is able to simulate the
thermocline dynamics much more accurately than without adaptation.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F13" specific-use="star"><caption><p id="d1e6494">Temperature profile using the uniform wind on 8 July 1993, with the
2-D <inline-formula><mml:math id="M263" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M264" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> model, with a fixed mesh <bold>(a)</bold> and an adaptive
mesh <bold>(b, c)</bold> having an equal number of elements. Panel <bold>(c)</bold> also
shows the levels position for the moving mesh
simulation.</p></caption>
          <?xmltex \igopts{width=369.885827pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f13.pdf"/>

        </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F14" specific-use="star"><caption><p id="d1e6528">Temperature profile using the uniform wind on 8 July 1993, with the
3-D model, with a fixed mesh <bold>(a)</bold> and an adaptive mesh <bold>(b)</bold>
having an equal number of elements. The temperature profile is given along
the lake main axis.</p></caption>
          <?xmltex \igopts{width=369.885827pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f14.pdf"/>

        </fig>

</sec>
<sec id="Ch1.S3.SS5">
  <title>Lake Tanganyika simulation</title>
      <p id="d1e6549">Lake Tanganyika dynamics is simulated from December 2000 to April 2004 with
the second model configuration. The model is run on parallel on a cluster on
eight CPUs. The mesh is built using a simple horizontal mesh of <inline-formula><mml:math id="M265" display="inline"><mml:mo>∼</mml:mo></mml:math></inline-formula> 1000
triangles with a resolution of 10 km, extruded to form <inline-formula><mml:math id="M266" display="inline"><mml:mo>∼</mml:mo></mml:math></inline-formula> 13 000
triangular prisms. The horizontal levels are initially located at 0, 2 and 5 m,
then every 10 m down to 100 m. The next levels are located at 150, 200,
300, 500, 700, 950, 1200, 1400 and 1500 m. The model time step is 10 min.
The mesh adaptation is driven by the vertical jump in the density field, with
<inline-formula><mml:math id="M267" display="inline"><mml:mrow><mml:mi mathvariant="italic">τ</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> h. The background error is set to <inline-formula><mml:math id="M268" display="inline"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi mathvariant="normal">e</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msup><mml:mn mathvariant="normal">10</mml:mn><mml:mrow><mml:mo>-</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> at the
surface and is then defined such that if there is no vertical jump, the mesh
stays at its initial position. Indeed, with a constant background error, the
mesh would adapt to reach a situation with the same depth for all the levels
at each vertical column. The first 16 months of the simulation are used as a
spin-up period, after which the results are analysed.</p>
      <p id="d1e6599">The temporal evolution of the vertical profile of the temperature is analysed
at Mpulungu (Fig. <xref ref-type="fig" rid="Ch1.F15"/>) and Kigoma
(Fig. <xref ref-type="fig" rid="Ch1.F16"/>). The model performs well to
reproduce most of the observed features of the lake. Outcropping events are
observed at Mpulungu in July and August of both 2002 and 2003
(Fig. <xref ref-type="fig" rid="Ch1.F15"/>b), such as observed in situ
(Fig. <xref ref-type="fig" rid="Ch1.F15"/>c). However, the 2003 outcropping
lasts much longer in the model than in the data, due to the surface input
forcing. The model reproduces the evolution of the 26 <inline-formula><mml:math id="M269" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C isotherm
during the December 2002–April 2003 period but fails during the same period of
the following year.</p>
      <p id="d1e6619">At Kigoma, the modelled temperature matches the observations better than at
Mpulungu. The 26 <inline-formula><mml:math id="M270" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C isotherm profile follows the data profile,
evolving from 10 to 60 m deep during the December 2002–July 2003 period,
then from 10 to 50 m from November 2003 to April 2004. This 26 <inline-formula><mml:math id="M271" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C
isotherm outcrops during the dry season strong wind period. A similar
observation can be done for the cooler temperatures. The surface temperature
is too high during almost the entire year, probably due to the surface heat
flux being biased by the input data.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F15" specific-use="star"><caption><p id="d1e6642">Lake water temperature (<inline-formula><mml:math id="M272" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C) at Mpulungu as predicted by the
model <bold>(b)</bold> and from in situ observations (<bold>c</bold>,
<xref ref-type="bibr" rid="bib1.bibx24" id="altparen.82"/>). Panel <bold>(a)</bold> shows the surface temperature used
to force the temperature flux at the lake surface
<xref ref-type="bibr" rid="bib1.bibx76" id="paren.83"/>.</p></caption>
          <?xmltex \igopts{width=369.885827pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f15.pdf"/>

        </fig>

      <?xmltex \floatpos{t}?><fig id="Ch1.F16" specific-use="star"><caption><p id="d1e6679">Lake water temperature (<inline-formula><mml:math id="M273" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C) at Kigoma as predicted by the
model <bold>(b)</bold> and from in situ observations (<bold>c</bold>,
<xref ref-type="bibr" rid="bib1.bibx24" id="altparen.84"/>). Panel <bold>(a)</bold> shows the surface temperature used
to force the temperature flux at the lake surface
<xref ref-type="bibr" rid="bib1.bibx76" id="paren.85"/>.</p></caption>
          <?xmltex \igopts{width=369.885827pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f16.pdf"/>

        </fig>

      <p id="d1e6713">The thermocline profile along the main axis shows the different regimes of
the lake dynamics during the year 2003. At the end of the wet season
(1 March, Fig. <xref ref-type="fig" rid="Ch1.F17"/>a), the lake is strongly stratified
and the thermocline is approximately horizontal. Then, the dry season begins
with strong southeasterly winds (15 May), the surface water flows towards the
north (Fig. <xref ref-type="fig" rid="Ch1.F18"/>b) and the thermocline is tilted
(Fig. <xref ref-type="fig" rid="Ch1.F17"/>b). At the end of the dry season, there is a
marked outcropping at the southern part of the lake
(Fig. <xref ref-type="fig" rid="Ch1.F17"/>c), the wind weakens and the water circulation
reverses (Fig. <xref ref-type="fig" rid="Ch1.F18"/>c). The mesh adapts to follow the
stratification. Unlike the previous benchmarks in which there was one single
large interface, the Tanganyika stratification is not that sharp, but still
the mesh resolution is increased where the stratification is stronger or
where there is outcropping (Fig. <xref ref-type="fig" rid="Ch1.F19"/>).</p>

      <?xmltex \floatpos{p}?><fig id="Ch1.F17" specific-use="star"><caption><p id="d1e6731">South–north temperature transect on 1 March <bold>(a)</bold>,
15 May <bold>(b)</bold> and 3 August <bold>(c)</bold> 2003. Only the 150 upper
metres of the vertical profile are displayed in the
figure.</p></caption>
          <?xmltex \igopts{width=355.659449pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f17.pdf"/>

        </fig>

      <?xmltex \floatpos{p}?><fig id="Ch1.F18" specific-use="star"><caption><p id="d1e6751">South–north velocity transect on 1 March <bold>(a)</bold>,
15 May <bold>(b)</bold> and 3 August <bold>(c)</bold> 2003. Only the 150 upper
metres of the vertical profile are displayed in the figure. A positive value indicates
northward current.</p></caption>
          <?xmltex \igopts{width=355.659449pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f18.pdf"/>

        </fig>

      <?xmltex \floatpos{p}?><fig id="Ch1.F19" specific-use="star"><caption><p id="d1e6772">South–north level thickness distribution transect on
1 March <bold>(a)</bold>, 15 May <bold>(b)</bold> and 3 August <bold>(c)</bold> 2003.
Only the 150 upper metres of the vertical profile are displayed in the figure. The
colour map is cropped at 20 m.</p></caption>
          <?xmltex \igopts{width=355.659449pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f19.pdf"/>

        </fig>

      <p id="d1e6790">Figure <xref ref-type="fig" rid="Ch1.F20"/> shows the 26 <inline-formula><mml:math id="M274" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C isotherm
distribution on (a) 1 March and (b) 15 May, and the 25 <inline-formula><mml:math id="M275" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C isotherm
on 3 August (c). Figure <xref ref-type="fig" rid="Ch1.F20"/>a shows that the
temperature is not homogeneous in the direction perpendicular to the main
lake axis. East–west temperature gradients may change sign during different
periods of the year. This suggests that internal Kelvin waves are travelling
along the lake boundary. This temperature gradient switch can occur within a
few days in the southern basin of the lake. Moreover, during the dry season,
large outcroppings of water cooler than 26 <inline-formula><mml:math id="M276" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C (15 May) and
25 <inline-formula><mml:math id="M277" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C (3 August) are observed in the southern basin.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F20" specific-use="star"><caption><p id="d1e6836">Isotherm depths in Lake Tanganyika on 1 March (26 <inline-formula><mml:math id="M278" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C),
15 May (26 <inline-formula><mml:math id="M279" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C) and 3 April (25 <inline-formula><mml:math id="M280" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C). It is important to note
that range of the colour bar is not the same through the different maps.
Regions in gray represent areas where the bottom water is warmer than the
limit temperature. Green regions represent outcropping
zones.</p></caption>
          <?xmltex \igopts{width=312.980315pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/11/1161/2018/gmd-11-1161-2018-f20.pdf"/>

        </fig>

</sec>
</sec>
<sec id="Ch1.S4">
  <title>Discussion</title>
<sec id="Ch1.S4.SS1">
  <title>Internal seiche and convergence analysis</title>
      <p id="d1e6884">The internal seiche test case is the typical application for which adaptive
coordinates are necessary. The strong discontinuity cannot be preserved using
a fixed mesh, which introduces large numerical mixing at the interface
(Fig. <xref ref-type="fig" rid="Ch1.F9"/>a). The adaptive method introduced in
this paper results in a smooth alignment of the levels in the vicinity of the
interface (Fig. <xref ref-type="fig" rid="Ch1.F9"/>b, c). The method reaches its
goal for this benchmark, which is to have one level on each side of the
interface with the maximal resolution. It is noteworthy that the numerical
mixing at the interface affects the complete dynamics of the lake
oscillations. An unresolved interface leads to oscillations with too large a
period (Fig. <xref ref-type="fig" rid="Ch1.F10"/>). The convergence analysis
quantifies the benefit of mesh adaptation, with a gain of the order of 16 in
the number of elements and in computation time for a similar error. The
decrease of 1 order of magnitude in the number of elements is similar to
the result obtained by <xref ref-type="bibr" rid="bib1.bibx6" id="text.86"/> with a h-adaptive DG finite
element method.</p>
      <?pagebreak page1173?><p id="d1e6896">One drawback of the method is that it is necessary to manually set up the
adaptation parameters. In the case of this application, the objective is to
maintain the discontinuity at the interface, such that the error is a
function of the vertical jumps in the density field. The background error
function is a small function just big enough to avoid that small error in
the density field perturbing the mesh smoothness. Eventually, the time
relaxation <inline-formula><mml:math id="M281" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> must be small to obtain a fast adaptation. However, if
<inline-formula><mml:math id="M282" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> is too small compared to the simulation time step, the smoothness of
the moving mesh can be affected.<?xmltex \hack{\newpage}?></p>
</sec>
<sec id="Ch1.S4.SS2">
  <title>Steady-state thermocline position</title>
      <p id="d1e6920">The thermocline slope under a weak constant wind stress test case results in
a thermocline slope similar to the analytical solution under the 1-D
two-layer approximation, with a small deviation close to the southern
boundary. This difference is most likely due to the hydrostatic assumption of
the model. Indeed, in the overturning circulation, there is an increase of
the pressure close to the wall, but this increased pressure is not captured
by the model. As a consequence, the boundary layer is not captured by the
model and small errors appear in the area irrespective of the horizontal
resolution close to the wall. This is not a problem for the 1-D model which
does not model the overturning circulation within the epilimnion.</p>
      <p id="d1e6923">For a small, constant wind stress, the analytical 1-D solution and the 2-D
<inline-formula><mml:math id="M283" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M284" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> model simulation match very well
(Fig. <xref ref-type="fig" rid="Ch1.F12"/>). However, for stronger stresses,
the epilimnion height decreases such that the two-layer model hypothesis no
longer holds. In this situation, the 2-D <inline-formula><mml:math id="M285" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M286" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> model simulates an
outcropping of the hypolimnion layer while the 1-D model retains a thin
epilimnion layer, as it cannot represent outcropping by construction.</p>
</sec>
<sec id="Ch1.S4.SS3">
  <title>Lake Tanganyika modelling</title>
      <p id="d1e6962">While the aforementioned test cases are 2-D <inline-formula><mml:math id="M287" display="inline"><mml:mi>x</mml:mi></mml:math></inline-formula>-<inline-formula><mml:math id="M288" display="inline"><mml:mi>z</mml:mi></mml:math></inline-formula> applications, the
Lake Tanganyika 3-D modelling is more difficult due to the complex coastline,
spatial wind patterns and Coriolis effect. Despite this challenge, SLIM 3D
realistically represents thermocline oscillations with the adaptive mesh,
although a larger relaxation time parameter <inline-formula><mml:math id="M289" display="inline"><mml:mi mathvariant="italic">τ</mml:mi></mml:math></inline-formula> is necessary to maintain a
smooth mesh. In the preliminary simulations, the model runs without vertical
diffusivity. In this configuration, a sharp thermocline is maintained under
weak wind stress conditions. For a stronger wind that generates outcropping,
the thermocline is slightly diffused near the southern tip of the lake.
Indeed, when outcropping occurs, the thermocline is vertical at the border of
the outcropping region, and its sharpness depends on the horizontal
resolution, which is fixed, independently of the vertical adaptation. During
outcropping, the vertical thermocline is thus diffused horizontally.<?pagebreak page1174?> After
the wind stress decreases, the thermocline comes back to its original
position, but the numerical mixing introduced during the outcropping period
cannot be cancelled. However, the thermocline diffusion is much weaker with
the adaptive mesh than using a fixed mesh
(Figs. <xref ref-type="fig" rid="Ch1.F13"/> and
<xref ref-type="fig" rid="Ch1.F14"/>).</p>
      <p id="d1e6990">For the actual Tanganyika runs, vertical diffusivity and viscosity are taken
into account. While data scarcity limits a complete validation, the
comparison between the model and the available data indicates a good
representation of the dynamics of Lake Tanganyika by SLIM 3D. The surface
temperature used in the relaxation boundary condition does not match well
with the vertical profiles available at Mpulungu and Kigoma, so the modelled
vertical profile is biased by construction. However, a comparison can still be
achieved based on the modelled and observed patterns, such as stratification
and thermocline position. While the modelled stratification is similar to the
observed one, it is still slightly higher, especially close to the surface
where there is the mismatch issue. This stronger stratification induces lower
vertical eddy diffusivity, which explains why further deep the stratification
is less affected by surface forcings and is closer to the observations.</p>
      <p id="d1e6993">The south–north lake transects of Fig. <xref ref-type="fig" rid="Ch1.F17"/> are
consistent with the results shown in Fig. 8 from <xref ref-type="bibr" rid="bib1.bibx79" id="text.87"/>, which
modelled the 1996 lake dynamics. In May, which corresponds to the beginning
of the strong wind season, the 26.5 <inline-formula><mml:math id="M290" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C isotherm outcrops at the
middle of the lake in both studies, while the 25.5 <inline-formula><mml:math id="M291" display="inline"><mml:msup><mml:mi/><mml:mo>∘</mml:mo></mml:msup></mml:math></inline-formula>C isotherm
outcrops only at the southern tip of the lake. The agreement between SLIM 3D
and <xref ref-type="bibr" rid="bib1.bibx79" id="text.88"/> is also good at the end of this wind season, which
corresponds to beginning of August in 2003 and July in 1996.</p>
      <?pagebreak page1176?><p id="d1e7022">The southward surface current going in the opposite direction of the wind, as
it was suggested by <xref ref-type="bibr" rid="bib1.bibx79" id="text.89"/>, is also observed in SLIM results,
although this current is most likely due to the weakening of the wind stress
and pressure gradient pushing the water mass back to its equilibrium
position. This comparison with the results of <xref ref-type="bibr" rid="bib1.bibx79" id="text.90"/> for the
year 1996 motivates to investigate further the lake circulation, for a longer
period using weather forcings from the COSMO-CLM<inline-formula><mml:math id="M292" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> model <xref ref-type="bibr" rid="bib1.bibx20" id="paren.91"/>.
This will enable us to study the occurrence of events during which there is a
reversed overturning circulation.</p>
      <p id="d1e7044">The presence of internal Kelvin waves in the lake, which was first simulated
by means of a 2-D reduced gravity model <xref ref-type="bibr" rid="bib1.bibx54" id="paren.92"/> and then
demonstrated using scaling arguments supported by laboratory and field
investigations <xref ref-type="bibr" rid="bib1.bibx3" id="paren.93"/>, is also shown with the 3-D modelling
(Fig. <xref ref-type="fig" rid="Ch1.F20"/>). Those waves are more visible during the
wet season when the thermocline is almost horizontal.</p>
</sec>
</sec>
<sec id="Ch1.S5" sec-type="conclusions">
  <title>Conclusions</title>
      <p id="d1e7063">A non-uniform vertically adaptive
mesh is adjusted for the DG finite element method
and implemented into the geophysical and environmental flow model SLIM 3D.
The adaptation routine is based on the diffusion of the vertical coordinates,
controlled by the vertical jump in the density field.</p>
      <p id="d1e7066">The adaptation efficiency was tested on simple benchmarks consisting in
preserving a sharp interface between two layers of different densities. While
the fixed mesh diffuses the interface and produces global errors in the
hydrodynamics, the adaptive mesh is able to preserve the interface profile
by aligning thin levels along it. The DG formulation with the mesh adaptation
controlled by the vertical jumps preserves the expected field discontinuity
with minimal mixing. The necessary manual configuration of the adaptation
parameters remains a limitation.</p>
      <p id="d1e7069">A new formulation for the computation of the mesh vertical velocity, both
conservative and consistent, was developed for the adaptive mesh. It is
noteworthy that this formulation solves the tracer consistency problem with
and without adaptation.</p>
      <p id="d1e7072">The adaptation was then evaluated by modelling the oscillations of the Lake
Tanganyika thermocline. First, a simulation was run without vertical
diffusivity and a uniform wind stress, showing the good behaviour of the
adaptive mesh. Then, a full simulation of the lake dynamics was performed and
compared to time series of vertical temperature profile in the south and the
centre of the lake. Overall, the outcropping events and the stratification
observed in the data are well reproduced by the model. The remaining
differences are partially due to discrepancies between the data used to force
the surface heat flux and the validation data.</p>
      <p id="d1e7076">During the 2-year simulation, the along-axis velocity shows similar patterns
to the results from <xref ref-type="bibr" rid="bib1.bibx79" id="text.94"/>. To understand better the
interactions between the wind velocity, the surface heat flux and the water
dynamics, additional simulations would be necessary. They could be achieved
using the full data set available from the COSMO-CLM<inline-formula><mml:math id="M293" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> model and the
adaptive mesh model SLIM 3D. The<?pagebreak page1177?> model has a strong potential for different
applications about the lake hydrodynamics, such as the impact of interannual
variability and climate change.</p>
</sec>

      
      </body>
    <back><notes notes-type="codedataavailability">

      <p id="d1e7095">The SLIM 3D v0.4 code is licensed under GNU GPL v3. It
is available through GitLab at <uri>https://git.immc.ucl.ac.be/slim/slim</uri>. It
is archived at Zenodo with <ext-link xlink:href="https://doi.org/10.5281/zenodo.1002221" ext-link-type="DOI">10.5281/zenodo.1002221</ext-link>. The
COSMO-CLM<inline-formula><mml:math id="M294" display="inline"><mml:msup><mml:mi/><mml:mn mathvariant="normal">2</mml:mn></mml:msup></mml:math></inline-formula> climate data are also available. They can be obtained by
contacting Wim Thiery (wim.thiery@vub.be).</p>
  </notes><notes notes-type="competinginterests">

      <p id="d1e7116">The authors declare that they have no conflict of
interest.</p>
  </notes><notes notes-type="sistatement">

      <p id="d1e7122">This article is part of the special issue “Modelling lakes in the climate
system (GMD/HESS inter-journal SI)”. It is a result of the 5th workshop on “Parameterization of
Lakes in Numerical Weather Prediction and Climate Modelling”, Berlin, Germany, 16–19 October 2017.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e7128">Computational resources were provided by the Consortium des Équipements de
Calcul Intensif (CÉCI), funded by the Belgian Fund for Scientific Research
(F.R.S.-FNRS) under grant no. 2.5020.11. The authors thank the FAO/FINNIDA
project GCP/RAF/271/FIN for the measurements used in this study. Eric
Deleersnijder is an honorary research associate of the F.R.S-FNRS. Wim Thiery
is supported by an ETH Zürich Fellowship (Fel-45 15-1).<?xmltex \hack{\newline}?><?xmltex \hack{\newline}?>
Edited by: James R. Maddison <?xmltex \hack{\newline}?>
Reviewed by: Jon Hill and one anonymous referee</p></ack><ref-list>
    <title>References</title>

      <ref id="bib1.bibx1"><label>Ainsworth(2004)</label><mixed-citation>
Ainsworth, M.: Dispersive and dissipative behaviour of high order
discontinuous Galerkin finite element methods, J. Computat. Phys., 198,
106–130, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx2"><label>Akkermans et al.(2014)</label><mixed-citation>
Akkermans, T., Thiery, W., and van Lipzig, N. P. M.: The regional climate
impact of a realistic future deforestation scenario in the Congo Basin,
J. Climate, 27, 2714–2734, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx3"><label>Antenucci(2005)</label><mixed-citation>Antenucci, J. P.: Comment on “Are there internal Kelvin waves in Lake
Tanganyika?” by Jaya Naithani and Eric Deleersnijder, Geophys. Res. Lett.,
32, L22601, <ext-link xlink:href="https://doi.org/10.1029/2005GL024403" ext-link-type="DOI">10.1029/2005GL024403</ext-link>, 2005.</mixed-citation></ref>
      <ref id="bib1.bibx4"><label>Barnier et al.(1995)</label><mixed-citation>
Barnier, B., Siefridt, L., and Marchesiello, P.: Thermal forcing for a global
ocean circulation model using a three-year climatology of ECMWF analyses,
J. Marine Syst., 6, 363–380, 1995.</mixed-citation></ref>
      <ref id="bib1.bibx5"><label>Bassi and Rebay(1997)</label><mixed-citation>
Bassi, F. and Rebay, S.: High-order accurate discontinuous finite element
solution of the 2D Euler equations, J. Comput. Phys., 138, 251–285, 1997.</mixed-citation></ref>
      <ref id="bib1.bibx6"><label>Bernard et al.(2007)</label><mixed-citation>
Bernard, P.-E., Chevaugeon, N., Legat, V., Deleersnijder, E., and Remacle,
J.-F.: High-order h-adaptive discontinuous Galerkin methods for ocean
modelling, Ocean Dynam., 57, 109–121, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx7"><label>Berntsen and Oey(2010)</label><mixed-citation>Berntsen, J. and Oey, L.-Y.: Estimation of the internal pressure gradient in
<inline-formula><mml:math id="M295" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>-coordinate ocean models: comparison of second-, fourth-, and
sixth-order schemes, Ocean Dynam., 60, 317–330, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx8"><label>Berntsen et al.(2015)</label><mixed-citation>Berntsen, J., Thiem, Ø., and Avlesen, H.: Internal pressure gradient
errors in <inline-formula><mml:math id="M296" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>-coordinate ocean models in high resolution fjord studies,
Ocean Model., 92, 42–55, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx9"><label>Blaise et al.(2010)</label><mixed-citation>
Blaise, S., Comblen, R., Legat, V., Remacle, J.-F., Deleersnijder, E., and
Lambrechts, J.: A discontinuous finite element baroclinic marine model on
unstructured prismatic meshes. Part I: space discretization, Ocean Dynam.,
60, 1371–1393, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx10"><label>Bleck and Boudra(1986)</label><mixed-citation>
Bleck, R. and Boudra, D.: Wind-driven spin-up in eddy-resolving ocean models
formulated in isopycnic and isobaric coordinates, J. Geophys. Res., 91,
7611–7621, 1986.</mixed-citation></ref>
      <ref id="bib1.bibx11"><label>Blumberg and Mellor(1987)</label><mixed-citation>Blumberg, A. F. and Mellor, G. L.: A description of a three-dimensional
coastal ocean circulation model, in: Three-dimensional coastal ocean models,
edited by: Heaps, N. S., American Geophysical Union, Washington, D.C., 1–16,
<ext-link xlink:href="https://doi.org/10.1029/CO004p0001" ext-link-type="DOI">10.1029/CO004p0001</ext-link>, 1987.</mixed-citation></ref>
      <ref id="bib1.bibx12"><label>Bryan(1969)</label><mixed-citation>
Bryan, K.: A numerical method for the study of the circulation of the world
ocean, J. Comput. Phys., 4, 347–376, 1969.</mixed-citation></ref>
      <ref id="bib1.bibx13"><label>Burchard and Beckers(2004)</label><mixed-citation>
Burchard, H. and Beckers, J.-M.: Non-uniform adaptive vertical grids in
one-dimensional numerical ocean models, Ocean Model., 6, 51–81, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx14"><label>Burchard et al.(1999)</label><mixed-citation>
Burchard, H., Bolding, K., and Villarreal, M. R.: GOTM, a general ocean
turbulence model. Theory, implementation and test cases, Tech. Rep.
EUR 18745, European Commission, 1999.</mixed-citation></ref>
      <ref id="bib1.bibx15"><label>Campin et al.(2004)</label><mixed-citation>
Campin, J.-M., Adcroft, A., Hill, C., and Marshall, J.: Conservation of
properties in a free-surface model, Ocean Model., 6, 221–244, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx16"><label>Cockburn et al.(2000)</label><mixed-citation>
Cockburn, B., Karniadakis, G. E., and Shu, C.-W. (Eds.): The Development of
Discontinuous Galerkin Methods, in: Discontinuous Galerkin Methods. Lecture
Notes in Computational Science and Engineering, vol. 11, Springer, Berlin,
Heidelberg, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx17"><label>Comblen et al.(2010)</label><mixed-citation>
Comblen, R., Blaise, S., Legat, V., Remacle, J.-F., Deleersnijder, E., and
Lambrechts, J.: A discontinuous finite element baroclinic marine model on
unstructured prismatic meshes. Part II: implicit/explicit time
discretization, Ocean Dynam., 60, 1395–1414, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx18"><label>Coulter and Spigel(1991)</label><mixed-citation>
Coulter, G.-W. and Spigel, R.-H.: Hydrodynamics, in: Lake Tanganyika and its
life, edited by: Coulter, G.-W., Oxford University Press, 49–75, 1991.</mixed-citation></ref>
      <ref id="bib1.bibx19"><label>Cushman-Roisin and Beckers(2011)</label><mixed-citation>
Cushman-Roisin, B. and Beckers, J.-M.: Introduction to geophysical fluid
dynamics: physical and numerical aspects, 2nd Edn., Academic Press, 101,
875 pp., 2011.</mixed-citation></ref>
      <ref id="bib1.bibx20"><label>Davin and Seneviratne(2012)</label><mixed-citation>Davin, E. L. and Seneviratne, S. I.: Role of land surface processes and
diffuse/direct radiation partitioning in simulating the European climate,
Biogeosciences, 9, 1695–1707,<ext-link xlink:href="https://doi.org/10.5194/bg-9-1695-2012" ext-link-type="DOI">10.5194/bg-9-1695-2012</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx21"><label>Delandmeter et al.(2015)</label><mixed-citation>
Delandmeter, P., Lewis, S. E., Lambrechts, J., Deleersnijder, E., Legat, V.,
and Wolanski, E.: The transport and fate of riverine fine sediment exported
to a semi-open system, Estuar. Coast. Shelf S., 167, 336–346, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx22"><label>Deleersnijder and Beckers(1992)</label><mixed-citation>Deleersnijder, E. and Beckers, J.-M.: On the use of the <inline-formula><mml:math id="M297" display="inline"><mml:mi mathvariant="italic">σ</mml:mi></mml:math></inline-formula>-coordinate
system in regions of large bathymetric variations, J. Marine Syst., 3,
381–390, 1992.</mixed-citation></ref>
      <?pagebreak page1178?><ref id="bib1.bibx23"><label>Deleersnijder and Ruddick(1992)</label><mixed-citation>
Deleersnijder, E. and Ruddick, K.: A generalized vertical coordinate for 3D
marine models, Bulletin de la Société Royale des Sciences de
Liège, 61, 489–502, 1992.</mixed-citation></ref>
      <ref id="bib1.bibx24"><label>Descy et al.(2006)</label><mixed-citation>Descy, J., Plisnier, P., Leporcq, B., et al.: Climate variability as recorded
in Lake Tanganyika (Climlake), Final report, Belgian Science Policy,
Brussels, available at
<uri>http://www.belspo.be/belspo/organisation/publ/pub_ostc/EV/rappEV02_en.pdf</uri>
(last access: 1 May 2017), 2006.</mixed-citation></ref>
      <ref id="bib1.bibx25"><label>Docquier et al.(2016)</label><mixed-citation>
Docquier, D., Thiery, W., Lhermitte, S., and van Lipzig, N. P. M.: Multi-year wind
dynamics around Lake Tanganyika, Clim. Dynam., 47, 3191–3202, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx26"><label>Eliassen(1949)</label><mixed-citation>
Eliassen, A.: The quasi-static equations of motion with pressure as
independent variable, vol. 17, Grøndahl &amp; Sons boktr., I kommisjon hos
Cammermeyers boghandel, 1949.</mixed-citation></ref>
      <ref id="bib1.bibx27"><label>Formaggia and Nobile(2004)</label><mixed-citation>
Formaggia, L. and Nobile, F.: Stability analysis of second-order time
accurate schemes for ALE–FEM, Comput. Method. Appl. M., 193, 4097–4116,
2004.</mixed-citation></ref>
      <ref id="bib1.bibx28"><label>Freeman et al.(1972)</label><mixed-citation>
Freeman, N., Hale, A., and Danard, M.: A modified sigma equations' approach
to the numerical modeling of Great Lakes hydrodynamics, J. Geophys. Res.,
77, 1050–1060, 1972.</mixed-citation></ref>
      <ref id="bib1.bibx29"><label>Gerdes(1993a)</label><mixed-citation>
Gerdes, R.: A primitive equation ocean circulation model using a general
vertical coordinate transformation: 1. Description and testing of the model,
J. Geophys. Res., 98, 14683–14701, 1993a.</mixed-citation></ref>
      <ref id="bib1.bibx30"><label>Gerdes(1993b)</label><mixed-citation>
Gerdes, R.: A primitive equation ocean circulation model using a general
vertical coordinate transformation: 2. Application to an overflow problem,
J. Geophys. Res., 98, 14703–14726, 1993b.</mixed-citation></ref>
      <ref id="bib1.bibx31"><label>Gourgue et al.(2007)</label><mixed-citation>
Gourgue, O., Deleersnijder, E., and White, L.: Toward a generic method for
studying water renewal, with application to the epilimnion of Lake
Tanganyika, Estuar. Coast. Shelf S., 74, 628–640, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx32"><label>Gourgue et al.(2011)</label><mixed-citation>
Gourgue, O., Deleersnijder, E., Legat, V., et al.: Free and forced thermocline oscillations in Lake
Tanganyika, Factor separation in the atmosphere: applications and future
prospects, edited by: Alpert, P. and Sholokhman, T., Cambridge University
Press, Cambridge, UK, 146–162, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx33"><label>Gräwe et al.(2015)</label><mixed-citation>
Gräwe, U., Holtermann, P., Klingbeil, K., and Burchard, H.: Advantages of
vertically adaptive coordinates in numerical models of stratified shelf seas,
Ocean Model., 92, 56–68, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx34"><label>Griffies et al.(2000)</label><mixed-citation>
Griffies, S. M., Böning, C., Bryan, F. O., Chassignet, E. P., Gerdes, R.,
Hasumi, H., Hirst, A., Treguier, A.-M., and Webb, D.: Developments in ocean
climate modelling, Ocean Model., 2, 123–192, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx35"><label>Hanert et al.(2006)</label><mixed-citation>
Hanert, E., Deleersnijder, E., and Legat, V.: An adaptive finite element
water column model using the Mellor–Yamada level 2.5 turbulence closure
scheme, Ocean Model., 12, 205–223, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx36"><label>Hanert et al.(2007)</label><mixed-citation>
Hanert, E., Deleersnijder, E., Blaise, S., and Remacle, J.-F.: Capturing the
bottom boundary layer in finite element ocean models, Ocean Model., 17,
153–162, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx37"><label>Haney(1991)</label><mixed-citation>
Haney, R. L.: On the pressure gradient force over steep topography in sigma
coordinate ocean models, J. Phys. Oceanogr., 21, 610–619, 1991.</mixed-citation></ref>
      <ref id="bib1.bibx38"><label>Hill et al.(2012)</label><mixed-citation>
Hill, J., Piggott, M., Ham, D. A., Popova, E., and Srokosz, M.: On the
performance of a generic length scale turbulence model within an adaptive
finite element ocean model, Ocean Model., 56, 1–15, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx39"><label>Hodges et al.(2000)</label><mixed-citation>
Hodges, B. R., Imberger, J., Saggio, A., and Winters, K. B.: Modeling
basin-scale internal waves in a stratified lake, Limnol. Oceanogr., 45,
1603–1620, 2000.</mixed-citation></ref>
      <ref id="bib1.bibx40"><label>Hofmeister et al.(2010)</label><mixed-citation>
Hofmeister, R., Burchard, H., and Beckers, J.-M.: Non-uniform adaptive
vertical grids for 3D numerical ocean models, Ocean Model., 33, 70–86,
2010.</mixed-citation></ref>
      <ref id="bib1.bibx41"><label>Hofmeister et al.(2011)</label><mixed-citation>
Hofmeister, R., Beckers, J.-M., and Burchard, H.: Realistic modelling of the
exceptional inflows into the central Baltic Sea in 2003 using
terrain-following coordinates, Ocean Model., 39, 233–247, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx42"><label>Huttula(1997)</label><mixed-citation>
Huttula, T. (Ed.): Flow, thermal regime and sediment transport studies in
Lake Tanganyika, Kuopio University Publications C. Natural and Environmental
Sciences 73, 173 pp., 1997.</mixed-citation></ref>
      <ref id="bib1.bibx43"><label>Huttula et al.(1999)</label><mixed-citation>Huttula, T., Peltonen, A., Podsetchine, V., Kotilainen, P., Kakogozo, B.,
Makasa, L., Muhoza, S., and Tumba, J.-M.: Chapter 2: Hydrodynamics and
Hydrodynamic Modelling, FAO/FINNIDA Research for the Management of the
Fisheries of Lake Tanganyika, gCP/RAF/271/FIN-TD/94 (En): 10–25, available
at: (<uri>http://www.fao.org/fi/ltr</uri> (last access: 1 May 2017), 1999.</mixed-citation></ref>
      <ref id="bib1.bibx44"><label>Jackett et al.(2006)</label><mixed-citation>
Jackett, D. R., McDougall, T. J., Feistel, R., Wright, D. G., and Griffies,
S. M.: Algorithms for density, potential temperature, conservative
temperature, and the freezing temperature of seawater, J. Atmos. Ocean.
Tech., 23, 1709–1728, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx45"><label>Jacobs et al.(2016a)</label><mixed-citation>
Jacobs, L., Dewitte, O., Poesen, J., Delvaux, D., Thiery, W., and Kervyn, M.:
The Rwenzori Mountains, a landslide-prone region?, Landslides, 13,
519–536, 2016a.</mixed-citation></ref>
      <ref id="bib1.bibx46"><label>Jacobs et al.(2016b)</label><mixed-citation>
Jacobs, L., Maes, J., Mertens, K., Sekajugo, J., Thiery, W., van Lipzig, N. P. M.,
Poesen, J., Kervyn, M., and Dewitte, O.: Reconstruction of a flash flood
event through a multi-hazard approach: focus on the Rwenzori Mountains,
Uganda, Nat. Hazards, 84, 851–876, 2016b.</mixed-citation></ref>
      <ref id="bib1.bibx47"><label>Kamenkovich and Sarachik(2004)</label><mixed-citation>
Kamenkovich, I. V. and Sarachik, E.: Mechanisms controlling the sensitivity
of the Atlantic thermohaline circulation to the parameterization of eddy
transports in ocean GCMs, J. Phys. Oceanogr., 34, 1628–1647, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx48"><label>Kärnä et al.(2012)</label><mixed-citation>
Kärnä, T., Legat, V., Deleersnijder, E., and Burchard, H.: Coupling
of a discontinuous Galerkin finite element marine model with a finite
difference turbulence closure model, Ocean Model., 47, 55–64, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx49"><label>Kärnä et al.(2013)</label><mixed-citation>
Kärnä, T., Legat, V., and Deleersnijder, E.: A baroclinic
discontinuous Galerkin finite element model for coastal flows, Ocean
Model., 61, 1–20, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx50"><label>Kasahara(1974)</label><mixed-citation>
Kasahara, A.: Various vertical coordinate systems used for numerical weather
prediction, Mon. Weather Rev., 102, 509–522, 1974.</mixed-citation></ref>
      <ref id="bib1.bibx51"><label>Mellor et al.(1994)Mellor, Ezer, and Oey</label><mixed-citation>
Mellor, G. L., Ezer, T., and Oey, L.-Y.: The pressure gradient conundrum of
sigma coordinate ocean models, J. Atmos. Ocean. Tech., 11, 1126–1134, 1994.</mixed-citation></ref>
      <ref id="bib1.bibx52"><label>Mellor et al.(1998)Mellor, Oey, and Ezer</label><mixed-citation>
Mellor, G. L., Oey, L.-Y., and Ezer, T.: Sigma coordinate pressure gradient
errors and the seamount problem, J. Atmos. Ocean. Tech., 15, 1122–1131,
1998.</mixed-citation></ref>
      <ref id="bib1.bibx53"><label>Mortimer(1961)</label><mixed-citation>
Mortimer, C.-H.: Motion in thermoclines, Verh. Internat. Verein. Limnol., 14,
79–83, 1961.</mixed-citation></ref>
      <ref id="bib1.bibx54"><label>Naithani and Deleersnijder(2004)</label><mixed-citation>Naithani, J. and Deleersnijder, E.: Are there internal Kelvin waves in Lake
Tanganyika?, Geophys. Res. Lett., 31, L06303, <ext-link xlink:href="https://doi.org/10.1029/2003GL019156" ext-link-type="DOI">10.1029/2003GL019156</ext-link>,
2004.</mixed-citation></ref>
      <ref id="bib1.bibx55"><label>Naithani et al.(2002)</label><mixed-citation>Naithani, J., Deleersnijder, E., and Plisnier, P.-D.: Origin of intraseasonal
variability in Lake Tanganyika, Geophys. Res. Lett., 29, 2093,
<ext-link xlink:href="https://doi.org/10.1029/2002GL015843" ext-link-type="DOI">10.1029/2002GL015843</ext-link>, 2002.</mixed-citation></ref>
      <ref id="bib1.bibx56"><label>Naithani et al.(2003)</label><mixed-citation>
Naithani, J., Deleersnijder, E., and Plisnier, P.-D.: Analysis of
wind-induced thermocline oscillations of Lake Tanganyika, Environ. Fluid
Mech., 3, 23–39, 2003.</mixed-citation></ref>
      <?pagebreak page1179?><ref id="bib1.bibx57"><label>Naithani et al.(2007)</label><mixed-citation>
Naithani, J., Plisnier, P.-D., and Deleersnijder, E.: A simple model of the
eco-hydrodynamics of the epilimnion of Lake Tanganyika, Freshwater Biol.,
52, 2087–2100, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx58"><label>Nihoul et al.(1986)</label><mixed-citation>
Nihoul, J. C., Waleffe, F., and Djenidi, S.: A 3D-numerical model of the
Northern Bering Sea, Environ. Softw., 1, 76–81, 1986.</mixed-citation></ref>
      <ref id="bib1.bibx59"><label>Ogutu-Ohwayo et al.(1997)</label><mixed-citation>
Ogutu-Ohwayo, R., Hecky, R. E., Cohen, A. S., and Kaufman, L.: Human impacts
on the African Great Lakes, Environ. Biol. Fish., 50, 117–131, 1997.</mixed-citation></ref>
      <ref id="bib1.bibx60"><label>Owen(1980)</label><mixed-citation>
Owen, A.: A three-dimensional model of the Bristol Channel, J. Phys.
Oceanogr., 10, 1290–1302, 1980.</mixed-citation></ref>
      <ref id="bib1.bibx61"><label>Panitz et al.(2014)</label><mixed-citation>
Panitz, H.-J., Dosio, A., Büchner, M., Lüthi, D., and Keuler, K.:
COSMO-CLM (CCLM) climate simulations over CORDEX-Africa domain: analysis of
the ERA-Interim driven simulations at 0.44 and 0.22 resolution, Clim.
Dynam., 42, 3015–3038, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx62"><label>Phillips(1957)</label><mixed-citation>
Phillips, N. A.: A coordinate system having some special advantages for
numerical forecasting, J. Meteorol., 14, 184–185, 1957.</mixed-citation></ref>
      <ref id="bib1.bibx63"><label>Piggott et al.(2005)</label><mixed-citation>Piggott, M., Pain, C., Gorman, G., Power, P., and Goddard, A.: <inline-formula><mml:math id="M298" display="inline"><mml:mi>h</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M299" display="inline"><mml:mi>r</mml:mi></mml:math></inline-formula>, and
<inline-formula><mml:math id="M300" display="inline"><mml:mrow><mml:mi>h</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:math></inline-formula> adaptivity with applications in numerical ocean modelling, Ocean Model.,
10, 95–113, 2005.</mixed-citation></ref>
      <ref id="bib1.bibx64"><label>Piggott et al.(2008)</label><mixed-citation>
Piggott, M., Gorman, G., Pain, C., Allison, P., Candy, A., Martin, B., and
Wells, M.: A new computational framework for multi-scale ocean modelling
based on adapting unstructured meshes, Int. J. Numer. Meth. Fl., 56,
1003–1015, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx65"><label>Podsetchine et al.(1999)</label><mixed-citation>Podsetchine, V., Huttula, T., and Savijärvi, H.: A three
dimensional-circulation model of Lake Tanganyika, Hydrobiologia, 407,
25–35, <ext-link xlink:href="https://doi.org/10.1023/A:1003758003034" ext-link-type="DOI">10.1023/A:1003758003034</ext-link>, 1999.</mixed-citation></ref>
      <ref id="bib1.bibx66"><label>Seny et al.(2013)</label><mixed-citation>
Seny, B., Lambrechts, J., Comblen, R., Legat, V., and Remacle, J.-F.:
Multirate time stepping for accelerating explicit discontinuous Galerkin
computations with application to geophysical flows, Int. J. Numer. Meth.
Fl., 71, 41–64, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx67"><label>Seny et al.(2014)</label><mixed-citation>
Seny, B., Lambrechts, J., Toulorge, T., Legat, V., and Remacle, J.-F.: An
efficient parallel implementation of explicit multirate Runge–Kutta schemes
for discontinuous Galerkin computations, J. Comput. Phys., 256, 135–160,
2014.</mixed-citation></ref>
      <ref id="bib1.bibx68"><label>Shchepetkin and McWilliams(2005)</label><mixed-citation>
Shchepetkin, A. F. and McWilliams, J. C.: The regional oceanic modeling
system (ROMS): a split-explicit, free-surface,
topography-following-coordinate oceanic model, Ocean Model., 9, 347–404,
2005.</mixed-citation></ref>
      <ref id="bib1.bibx69"><label>Smagorinsky(1963)</label><mixed-citation>Smagorinsky, J.: General circulation experiments with the primitive
equations: I. the basic experiment*, Mon. Weather Rev., 91, 99–164, 1963.
 </mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bibx70"><label>Song and Haidvogel(1994)</label><mixed-citation>
Song, Y. and Haidvogel, D.: A semi-implicit ocean circulation model using a
generalized topography-following coordinate system, J. Comput. Phys., 115,
228–244, 1994.</mixed-citation></ref>
      <ref id="bib1.bibx71"><label>Stelling and Van Kester(1994)</label><mixed-citation>
Stelling, G. S. and Van Kester, J. A. T. M.: On the approximation of
horizontal gradients in sigma co-ordinates for bathymetry with steep bottom
slopes, Int. J. Numer. Meth. Fl., 18, 915–935, 1994.</mixed-citation></ref>
      <ref id="bib1.bibx72"><label>Sutcliffe(1947)</label><mixed-citation>
Sutcliffe, R.: A contribution to the problem of development, Q. J. Roy.
Meteor. Soc., 73, 370–383, 1947.</mixed-citation></ref>
      <ref id="bib1.bibx73"><label>Thiem and Berntsen(2006)</label><mixed-citation>
Thiem, Ø. and Berntsen, J.: Internal pressure errors in sigma-coordinate
ocean models due to anisotropy, Ocean Model., 12, 140–156, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx74"><label>Thiery et al.(2014a)</label><mixed-citation>Thiery, W., Stepanenko, V. M., Fang, X., Jöhnk, K. D., Li, Z., Martynov,
A., Perroud, M., Subin, Z. M., Darchambeau, F., Mironov, D., and van Lipzig,
N. P. M.: LakeMIP Kivu: evaluating the representation of a large, deep
tropical lake by a set of one-dimensional lake models, Tellus A, 66, 21390,
<ext-link xlink:href="https://doi.org/10.3402/tellusa.v66.21390" ext-link-type="DOI">10.3402/tellusa.v66.21390</ext-link>, 2014a.</mixed-citation></ref>
      <ref id="bib1.bibx75"><label>Thiery et al.(2014b)</label><mixed-citation>Thiery, W., Martynov, A., Darchambeau, F., Descy, J.-P., Plisnier, P.-D.,
Sushama, L., and van Lipzig, N. P. M.: Understanding the performance of the
FLake model over two African Great Lakes, Geosci. Model Dev., 7, 317–337,
<ext-link xlink:href="https://doi.org/10.5194/gmd-7-317-2014" ext-link-type="DOI">10.5194/gmd-7-317-2014</ext-link>, 2014b.</mixed-citation></ref>
      <ref id="bib1.bibx76"><label>Thiery et al.(2015)</label><mixed-citation>
Thiery, W., Davin, E. L., Panitz, H.-J., Demuzere, M., Lhermitte, S., and
van Lipzig, N. P. M.: The impact of the African Great Lakes on the regional
climate, J. Climate, 28, 4061–4085, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx77"><label>Thiery et al.(2016)</label><mixed-citation>Thiery, W., Davin, E. L., Seneviratne, S. I., Bedka, K., Lhermitte, S., and
van Lipzig, N. P. M.: Hazardous thunderstorm intensification over Lake
Victoria, Nat. Commun., 7, 12786, <ext-link xlink:href="https://doi.org/10.1038/ncomms12786" ext-link-type="DOI">10.1038/ncomms12786</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx78"><label>Verburg et al.(2008)</label><mixed-citation>
Verburg, P., Antenucci, J. P., and Hecky, R. E.: Large scale overturning
circulation against the direction of the wind in Lake Tanganyika, Verh.
Internat. Verein. Limnol., 30, 612–622, 2008.</mixed-citation></ref>
      <ref id="bib1.bibx79"><label>Verburg et al.(2011)</label><mixed-citation>
Verburg, P., Antenucci, J. P., and Hecky, R. E.: Differential cooling drives
large-scale convective circulation in Lake Tanganyika, Limnol. Oceanogr., 56,
910–926, 2011.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>A fully consistent and conservative vertically adaptive coordinate system for SLIM 3D v0.4 with an application to the thermocline oscillations of Lake Tanganyika</article-title-html>
<abstract-html><p>The discontinuous Galerkin (DG) finite element method is well suited for the
modelling, with a relatively small number of elements, of three-dimensional
flows exhibiting strong velocity or density gradients. Its performance can be
highly enhanced by having recourse to r-adaptivity. Here, a vertical adaptive
mesh method is developed for DG finite elements. This method, originally
designed for finite difference schemes, is based on the vertical diffusion of
the mesh nodes, with the diffusivity controlled by the density jumps at the
mesh element interfaces.</p><p>The mesh vertical movement is determined by means of a conservative arbitrary
Lagrangian–Eulerian (ALE) formulation. Though conservativity is naturally
achieved, tracer consistency is obtained by a suitable construction of the
mesh vertical velocity field, which is defined in such a way that it is fully
compatible with the tracer and continuity equations at a discrete level.</p><p>The vertically adaptive mesh approach is implemented in the three-dimensional version of the geophysical and
environmental flow Second-generation Louvain-la-Neuve Ice-ocean Model
(SLIM 3D; <a href="www.climate.be/slim" target="_blank">www.climate.be/slim</a>). Idealised benchmarks, aimed at simulating the
oscillations of a sharp thermocline, are dealt with. Then, the relevance of the vertical adaptivity technique is
assessed by simulating thermocline oscillations of Lake Tanganyika. The
results are compared to measured vertical profiles of temperature, showing
similar stratification and outcropping events.</p></abstract-html>
<ref-html id="bib1.bib1"><label>Ainsworth(2004)</label><mixed-citation>
Ainsworth, M.: Dispersive and dissipative behaviour of high order
discontinuous Galerkin finite element methods, J. Computat. Phys., 198,
106–130, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>Akkermans et al.(2014)</label><mixed-citation>
Akkermans, T., Thiery, W., and van Lipzig, N. P. M.: The regional climate
impact of a realistic future deforestation scenario in the Congo Basin,
J. Climate, 27, 2714–2734, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>Antenucci(2005)</label><mixed-citation>
Antenucci, J. P.: Comment on “Are there internal Kelvin waves in Lake
Tanganyika?” by Jaya Naithani and Eric Deleersnijder, Geophys. Res. Lett.,
32, L22601, <a href="https://doi.org/10.1029/2005GL024403" target="_blank">https://doi.org/10.1029/2005GL024403</a>, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>Barnier et al.(1995)</label><mixed-citation>
Barnier, B., Siefridt, L., and Marchesiello, P.: Thermal forcing for a global
ocean circulation model using a three-year climatology of ECMWF analyses,
J. Marine Syst., 6, 363–380, 1995.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>Bassi and Rebay(1997)</label><mixed-citation>
Bassi, F. and Rebay, S.: High-order accurate discontinuous finite element
solution of the 2D Euler equations, J. Comput. Phys., 138, 251–285, 1997.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>Bernard et al.(2007)</label><mixed-citation>
Bernard, P.-E., Chevaugeon, N., Legat, V., Deleersnijder, E., and Remacle,
J.-F.: High-order h-adaptive discontinuous Galerkin methods for ocean
modelling, Ocean Dynam., 57, 109–121, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>Berntsen and Oey(2010)</label><mixed-citation>
Berntsen, J. and Oey, L.-Y.: Estimation of the internal pressure gradient in
<i>σ</i>-coordinate ocean models: comparison of second-, fourth-, and
sixth-order schemes, Ocean Dynam., 60, 317–330, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>Berntsen et al.(2015)</label><mixed-citation>
Berntsen, J., Thiem, Ø., and Avlesen, H.: Internal pressure gradient
errors in <i>σ</i>-coordinate ocean models in high resolution fjord studies,
Ocean Model., 92, 42–55, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>Blaise et al.(2010)</label><mixed-citation>
Blaise, S., Comblen, R., Legat, V., Remacle, J.-F., Deleersnijder, E., and
Lambrechts, J.: A discontinuous finite element baroclinic marine model on
unstructured prismatic meshes. Part I: space discretization, Ocean Dynam.,
60, 1371–1393, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>Bleck and Boudra(1986)</label><mixed-citation>
Bleck, R. and Boudra, D.: Wind-driven spin-up in eddy-resolving ocean models
formulated in isopycnic and isobaric coordinates, J. Geophys. Res., 91,
7611–7621, 1986.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>Blumberg and Mellor(1987)</label><mixed-citation>
Blumberg, A. F. and Mellor, G. L.: A description of a three-dimensional
coastal ocean circulation model, in: Three-dimensional coastal ocean models,
edited by: Heaps, N. S., American Geophysical Union, Washington, D.C., 1–16,
<a href="https://doi.org/10.1029/CO004p0001" target="_blank">https://doi.org/10.1029/CO004p0001</a>, 1987.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>Bryan(1969)</label><mixed-citation>
Bryan, K.: A numerical method for the study of the circulation of the world
ocean, J. Comput. Phys., 4, 347–376, 1969.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>Burchard and Beckers(2004)</label><mixed-citation>
Burchard, H. and Beckers, J.-M.: Non-uniform adaptive vertical grids in
one-dimensional numerical ocean models, Ocean Model., 6, 51–81, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>Burchard et al.(1999)</label><mixed-citation>
Burchard, H., Bolding, K., and Villarreal, M. R.: GOTM, a general ocean
turbulence model. Theory, implementation and test cases, Tech. Rep.
EUR 18745, European Commission, 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>Campin et al.(2004)</label><mixed-citation>
Campin, J.-M., Adcroft, A., Hill, C., and Marshall, J.: Conservation of
properties in a free-surface model, Ocean Model., 6, 221–244, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>Cockburn et al.(2000)</label><mixed-citation>
Cockburn, B., Karniadakis, G. E., and Shu, C.-W. (Eds.): The Development of
Discontinuous Galerkin Methods, in: Discontinuous Galerkin Methods. Lecture
Notes in Computational Science and Engineering, vol. 11, Springer, Berlin,
Heidelberg, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>Comblen et al.(2010)</label><mixed-citation>
Comblen, R., Blaise, S., Legat, V., Remacle, J.-F., Deleersnijder, E., and
Lambrechts, J.: A discontinuous finite element baroclinic marine model on
unstructured prismatic meshes. Part II: implicit/explicit time
discretization, Ocean Dynam., 60, 1395–1414, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>Coulter and Spigel(1991)</label><mixed-citation>
Coulter, G.-W. and Spigel, R.-H.: Hydrodynamics, in: Lake Tanganyika and its
life, edited by: Coulter, G.-W., Oxford University Press, 49–75, 1991.
</mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>Cushman-Roisin and Beckers(2011)</label><mixed-citation>
Cushman-Roisin, B. and Beckers, J.-M.: Introduction to geophysical fluid
dynamics: physical and numerical aspects, 2nd Edn., Academic Press, 101,
875 pp., 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>Davin and Seneviratne(2012)</label><mixed-citation>
Davin, E. L. and Seneviratne, S. I.: Role of land surface processes and
diffuse/direct radiation partitioning in simulating the European climate,
Biogeosciences, 9, 1695–1707,<a href="https://doi.org/10.5194/bg-9-1695-2012" target="_blank">https://doi.org/10.5194/bg-9-1695-2012</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>Delandmeter et al.(2015)</label><mixed-citation>
Delandmeter, P., Lewis, S. E., Lambrechts, J., Deleersnijder, E., Legat, V.,
and Wolanski, E.: The transport and fate of riverine fine sediment exported
to a semi-open system, Estuar. Coast. Shelf S., 167, 336–346, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>Deleersnijder and Beckers(1992)</label><mixed-citation>
Deleersnijder, E. and Beckers, J.-M.: On the use of the <i>σ</i>-coordinate
system in regions of large bathymetric variations, J. Marine Syst., 3,
381–390, 1992.
</mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>Deleersnijder and Ruddick(1992)</label><mixed-citation>
Deleersnijder, E. and Ruddick, K.: A generalized vertical coordinate for 3D
marine models, Bulletin de la Société Royale des Sciences de
Liège, 61, 489–502, 1992.
</mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>Descy et al.(2006)</label><mixed-citation>
Descy, J., Plisnier, P., Leporcq, B., et al.: Climate variability as recorded
in Lake Tanganyika (Climlake), Final report, Belgian Science Policy,
Brussels, available at
<a href="http://www.belspo.be/belspo/organisation/publ/pub_ostc/EV/rappEV02_en.pdf" target="_blank">http://www.belspo.be/belspo/organisation/publ/pub_ostc/EV/rappEV02_en.pdf</a>
(last access: 1 May 2017), 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>Docquier et al.(2016)</label><mixed-citation>
Docquier, D., Thiery, W., Lhermitte, S., and van Lipzig, N. P. M.: Multi-year wind
dynamics around Lake Tanganyika, Clim. Dynam., 47, 3191–3202, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>Eliassen(1949)</label><mixed-citation>
Eliassen, A.: The quasi-static equations of motion with pressure as
independent variable, vol. 17, Grøndahl &amp; Sons boktr., I kommisjon hos
Cammermeyers boghandel, 1949.
</mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>Formaggia and Nobile(2004)</label><mixed-citation>
Formaggia, L. and Nobile, F.: Stability analysis of second-order time
accurate schemes for ALE–FEM, Comput. Method. Appl. M., 193, 4097–4116,
2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>Freeman et al.(1972)</label><mixed-citation>
Freeman, N., Hale, A., and Danard, M.: A modified sigma equations' approach
to the numerical modeling of Great Lakes hydrodynamics, J. Geophys. Res.,
77, 1050–1060, 1972.
</mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>Gerdes(1993a)</label><mixed-citation>
Gerdes, R.: A primitive equation ocean circulation model using a general
vertical coordinate transformation: 1. Description and testing of the model,
J. Geophys. Res., 98, 14683–14701, 1993a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>Gerdes(1993b)</label><mixed-citation>
Gerdes, R.: A primitive equation ocean circulation model using a general
vertical coordinate transformation: 2. Application to an overflow problem,
J. Geophys. Res., 98, 14703–14726, 1993b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>Gourgue et al.(2007)</label><mixed-citation>
Gourgue, O., Deleersnijder, E., and White, L.: Toward a generic method for
studying water renewal, with application to the epilimnion of Lake
Tanganyika, Estuar. Coast. Shelf S., 74, 628–640, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>Gourgue et al.(2011)</label><mixed-citation>
Gourgue, O., Deleersnijder, E., Legat, V., et al.: Free and forced thermocline oscillations in Lake
Tanganyika, Factor separation in the atmosphere: applications and future
prospects, edited by: Alpert, P. and Sholokhman, T., Cambridge University
Press, Cambridge, UK, 146–162, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>Gräwe et al.(2015)</label><mixed-citation>
Gräwe, U., Holtermann, P., Klingbeil, K., and Burchard, H.: Advantages of
vertically adaptive coordinates in numerical models of stratified shelf seas,
Ocean Model., 92, 56–68, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>Griffies et al.(2000)</label><mixed-citation>
Griffies, S. M., Böning, C., Bryan, F. O., Chassignet, E. P., Gerdes, R.,
Hasumi, H., Hirst, A., Treguier, A.-M., and Webb, D.: Developments in ocean
climate modelling, Ocean Model., 2, 123–192, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>Hanert et al.(2006)</label><mixed-citation>
Hanert, E., Deleersnijder, E., and Legat, V.: An adaptive finite element
water column model using the Mellor–Yamada level 2.5 turbulence closure
scheme, Ocean Model., 12, 205–223, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>Hanert et al.(2007)</label><mixed-citation>
Hanert, E., Deleersnijder, E., Blaise, S., and Remacle, J.-F.: Capturing the
bottom boundary layer in finite element ocean models, Ocean Model., 17,
153–162, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>Haney(1991)</label><mixed-citation>
Haney, R. L.: On the pressure gradient force over steep topography in sigma
coordinate ocean models, J. Phys. Oceanogr., 21, 610–619, 1991.
</mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>Hill et al.(2012)</label><mixed-citation>
Hill, J., Piggott, M., Ham, D. A., Popova, E., and Srokosz, M.: On the
performance of a generic length scale turbulence model within an adaptive
finite element ocean model, Ocean Model., 56, 1–15, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>Hodges et al.(2000)</label><mixed-citation>
Hodges, B. R., Imberger, J., Saggio, A., and Winters, K. B.: Modeling
basin-scale internal waves in a stratified lake, Limnol. Oceanogr., 45,
1603–1620, 2000.
</mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>Hofmeister et al.(2010)</label><mixed-citation>
Hofmeister, R., Burchard, H., and Beckers, J.-M.: Non-uniform adaptive
vertical grids for 3D numerical ocean models, Ocean Model., 33, 70–86,
2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>Hofmeister et al.(2011)</label><mixed-citation>
Hofmeister, R., Beckers, J.-M., and Burchard, H.: Realistic modelling of the
exceptional inflows into the central Baltic Sea in 2003 using
terrain-following coordinates, Ocean Model., 39, 233–247, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>Huttula(1997)</label><mixed-citation>
Huttula, T. (Ed.): Flow, thermal regime and sediment transport studies in
Lake Tanganyika, Kuopio University Publications C. Natural and Environmental
Sciences 73, 173 pp., 1997.
</mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>Huttula et al.(1999)</label><mixed-citation>
Huttula, T., Peltonen, A., Podsetchine, V., Kotilainen, P., Kakogozo, B.,
Makasa, L., Muhoza, S., and Tumba, J.-M.: Chapter 2: Hydrodynamics and
Hydrodynamic Modelling, FAO/FINNIDA Research for the Management of the
Fisheries of Lake Tanganyika, gCP/RAF/271/FIN-TD/94 (En): 10–25, available
at: (<a href="http://www.fao.org/fi/ltr" target="_blank">http://www.fao.org/fi/ltr</a> (last access: 1 May 2017), 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>Jackett et al.(2006)</label><mixed-citation>
Jackett, D. R., McDougall, T. J., Feistel, R., Wright, D. G., and Griffies,
S. M.: Algorithms for density, potential temperature, conservative
temperature, and the freezing temperature of seawater, J. Atmos. Ocean.
Tech., 23, 1709–1728, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>Jacobs et al.(2016a)</label><mixed-citation>
Jacobs, L., Dewitte, O., Poesen, J., Delvaux, D., Thiery, W., and Kervyn, M.:
The Rwenzori Mountains, a landslide-prone region?, Landslides, 13,
519–536, 2016a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>Jacobs et al.(2016b)</label><mixed-citation>
Jacobs, L., Maes, J., Mertens, K., Sekajugo, J., Thiery, W., van Lipzig, N. P. M.,
Poesen, J., Kervyn, M., and Dewitte, O.: Reconstruction of a flash flood
event through a multi-hazard approach: focus on the Rwenzori Mountains,
Uganda, Nat. Hazards, 84, 851–876, 2016b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>Kamenkovich and Sarachik(2004)</label><mixed-citation>
Kamenkovich, I. V. and Sarachik, E.: Mechanisms controlling the sensitivity
of the Atlantic thermohaline circulation to the parameterization of eddy
transports in ocean GCMs, J. Phys. Oceanogr., 34, 1628–1647, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>Kärnä et al.(2012)</label><mixed-citation>
Kärnä, T., Legat, V., Deleersnijder, E., and Burchard, H.: Coupling
of a discontinuous Galerkin finite element marine model with a finite
difference turbulence closure model, Ocean Model., 47, 55–64, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib49"><label>Kärnä et al.(2013)</label><mixed-citation>
Kärnä, T., Legat, V., and Deleersnijder, E.: A baroclinic
discontinuous Galerkin finite element model for coastal flows, Ocean
Model., 61, 1–20, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib50"><label>Kasahara(1974)</label><mixed-citation>
Kasahara, A.: Various vertical coordinate systems used for numerical weather
prediction, Mon. Weather Rev., 102, 509–522, 1974.
</mixed-citation></ref-html>
<ref-html id="bib1.bib51"><label>Mellor et al.(1994)Mellor, Ezer, and Oey</label><mixed-citation>
Mellor, G. L., Ezer, T., and Oey, L.-Y.: The pressure gradient conundrum of
sigma coordinate ocean models, J. Atmos. Ocean. Tech., 11, 1126–1134, 1994.
</mixed-citation></ref-html>
<ref-html id="bib1.bib52"><label>Mellor et al.(1998)Mellor, Oey, and Ezer</label><mixed-citation>
Mellor, G. L., Oey, L.-Y., and Ezer, T.: Sigma coordinate pressure gradient
errors and the seamount problem, J. Atmos. Ocean. Tech., 15, 1122–1131,
1998.
</mixed-citation></ref-html>
<ref-html id="bib1.bib53"><label>Mortimer(1961)</label><mixed-citation>
Mortimer, C.-H.: Motion in thermoclines, Verh. Internat. Verein. Limnol., 14,
79–83, 1961.
</mixed-citation></ref-html>
<ref-html id="bib1.bib54"><label>Naithani and Deleersnijder(2004)</label><mixed-citation>
Naithani, J. and Deleersnijder, E.: Are there internal Kelvin waves in Lake
Tanganyika?, Geophys. Res. Lett., 31, L06303, <a href="https://doi.org/10.1029/2003GL019156" target="_blank">https://doi.org/10.1029/2003GL019156</a>,
2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib55"><label>Naithani et al.(2002)</label><mixed-citation>
Naithani, J., Deleersnijder, E., and Plisnier, P.-D.: Origin of intraseasonal
variability in Lake Tanganyika, Geophys. Res. Lett., 29, 2093,
<a href="https://doi.org/10.1029/2002GL015843" target="_blank">https://doi.org/10.1029/2002GL015843</a>, 2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib56"><label>Naithani et al.(2003)</label><mixed-citation>
Naithani, J., Deleersnijder, E., and Plisnier, P.-D.: Analysis of
wind-induced thermocline oscillations of Lake Tanganyika, Environ. Fluid
Mech., 3, 23–39, 2003.
</mixed-citation></ref-html>
<ref-html id="bib1.bib57"><label>Naithani et al.(2007)</label><mixed-citation>
Naithani, J., Plisnier, P.-D., and Deleersnijder, E.: A simple model of the
eco-hydrodynamics of the epilimnion of Lake Tanganyika, Freshwater Biol.,
52, 2087–2100, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib58"><label>Nihoul et al.(1986)</label><mixed-citation>
Nihoul, J. C., Waleffe, F., and Djenidi, S.: A 3D-numerical model of the
Northern Bering Sea, Environ. Softw., 1, 76–81, 1986.
</mixed-citation></ref-html>
<ref-html id="bib1.bib59"><label>Ogutu-Ohwayo et al.(1997)</label><mixed-citation>
Ogutu-Ohwayo, R., Hecky, R. E., Cohen, A. S., and Kaufman, L.: Human impacts
on the African Great Lakes, Environ. Biol. Fish., 50, 117–131, 1997.
</mixed-citation></ref-html>
<ref-html id="bib1.bib60"><label>Owen(1980)</label><mixed-citation>
Owen, A.: A three-dimensional model of the Bristol Channel, J. Phys.
Oceanogr., 10, 1290–1302, 1980.
</mixed-citation></ref-html>
<ref-html id="bib1.bib61"><label>Panitz et al.(2014)</label><mixed-citation>
Panitz, H.-J., Dosio, A., Büchner, M., Lüthi, D., and Keuler, K.:
COSMO-CLM (CCLM) climate simulations over CORDEX-Africa domain: analysis of
the ERA-Interim driven simulations at 0.44 and 0.22 resolution, Clim.
Dynam., 42, 3015–3038, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib62"><label>Phillips(1957)</label><mixed-citation>
Phillips, N. A.: A coordinate system having some special advantages for
numerical forecasting, J. Meteorol., 14, 184–185, 1957.
</mixed-citation></ref-html>
<ref-html id="bib1.bib63"><label>Piggott et al.(2005)</label><mixed-citation>
Piggott, M., Pain, C., Gorman, G., Power, P., and Goddard, A.: <i>h</i>, <i>r</i>, and
<i>h</i><i>r</i> adaptivity with applications in numerical ocean modelling, Ocean Model.,
10, 95–113, 2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib64"><label>Piggott et al.(2008)</label><mixed-citation>
Piggott, M., Gorman, G., Pain, C., Allison, P., Candy, A., Martin, B., and
Wells, M.: A new computational framework for multi-scale ocean modelling
based on adapting unstructured meshes, Int. J. Numer. Meth. Fl., 56,
1003–1015, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib65"><label>Podsetchine et al.(1999)</label><mixed-citation>
Podsetchine, V., Huttula, T., and Savijärvi, H.: A three
dimensional-circulation model of Lake Tanganyika, Hydrobiologia, 407,
25–35, <a href="https://doi.org/10.1023/A:1003758003034" target="_blank">https://doi.org/10.1023/A:1003758003034</a>, 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib66"><label>Seny et al.(2013)</label><mixed-citation>
Seny, B., Lambrechts, J., Comblen, R., Legat, V., and Remacle, J.-F.:
Multirate time stepping for accelerating explicit discontinuous Galerkin
computations with application to geophysical flows, Int. J. Numer. Meth.
Fl., 71, 41–64, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib67"><label>Seny et al.(2014)</label><mixed-citation>
Seny, B., Lambrechts, J., Toulorge, T., Legat, V., and Remacle, J.-F.: An
efficient parallel implementation of explicit multirate Runge–Kutta schemes
for discontinuous Galerkin computations, J. Comput. Phys., 256, 135–160,
2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib68"><label>Shchepetkin and McWilliams(2005)</label><mixed-citation>
Shchepetkin, A. F. and McWilliams, J. C.: The regional oceanic modeling
system (ROMS): a split-explicit, free-surface,
topography-following-coordinate oceanic model, Ocean Model., 9, 347–404,
2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib69"><label>Smagorinsky(1963)</label><mixed-citation>
Smagorinsky, J.: General circulation experiments with the primitive
equations: I. the basic experiment*, Mon. Weather Rev., 91, 99–164, 1963.

</mixed-citation></ref-html>
<ref-html id="bib1.bib70"><label>Song and Haidvogel(1994)</label><mixed-citation>
Song, Y. and Haidvogel, D.: A semi-implicit ocean circulation model using a
generalized topography-following coordinate system, J. Comput. Phys., 115,
228–244, 1994.
</mixed-citation></ref-html>
<ref-html id="bib1.bib71"><label>Stelling and Van Kester(1994)</label><mixed-citation>
Stelling, G. S. and Van Kester, J. A. T. M.: On the approximation of
horizontal gradients in sigma co-ordinates for bathymetry with steep bottom
slopes, Int. J. Numer. Meth. Fl., 18, 915–935, 1994.
</mixed-citation></ref-html>
<ref-html id="bib1.bib72"><label>Sutcliffe(1947)</label><mixed-citation>
Sutcliffe, R.: A contribution to the problem of development, Q. J. Roy.
Meteor. Soc., 73, 370–383, 1947.
</mixed-citation></ref-html>
<ref-html id="bib1.bib73"><label>Thiem and Berntsen(2006)</label><mixed-citation>
Thiem, Ø. and Berntsen, J.: Internal pressure errors in sigma-coordinate
ocean models due to anisotropy, Ocean Model., 12, 140–156, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib74"><label>Thiery et al.(2014a)</label><mixed-citation>
Thiery, W., Stepanenko, V. M., Fang, X., Jöhnk, K. D., Li, Z., Martynov,
A., Perroud, M., Subin, Z. M., Darchambeau, F., Mironov, D., and van Lipzig,
N. P. M.: LakeMIP Kivu: evaluating the representation of a large, deep
tropical lake by a set of one-dimensional lake models, Tellus A, 66, 21390,
<a href="https://doi.org/10.3402/tellusa.v66.21390" target="_blank">https://doi.org/10.3402/tellusa.v66.21390</a>, 2014a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib75"><label>Thiery et al.(2014b)</label><mixed-citation>
Thiery, W., Martynov, A., Darchambeau, F., Descy, J.-P., Plisnier, P.-D.,
Sushama, L., and van Lipzig, N. P. M.: Understanding the performance of the
FLake model over two African Great Lakes, Geosci. Model Dev., 7, 317–337,
<a href="https://doi.org/10.5194/gmd-7-317-2014" target="_blank">https://doi.org/10.5194/gmd-7-317-2014</a>, 2014b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib76"><label>Thiery et al.(2015)</label><mixed-citation>
Thiery, W., Davin, E. L., Panitz, H.-J., Demuzere, M., Lhermitte, S., and
van Lipzig, N. P. M.: The impact of the African Great Lakes on the regional
climate, J. Climate, 28, 4061–4085, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib77"><label>Thiery et al.(2016)</label><mixed-citation>
Thiery, W., Davin, E. L., Seneviratne, S. I., Bedka, K., Lhermitte, S., and
van Lipzig, N. P. M.: Hazardous thunderstorm intensification over Lake
Victoria, Nat. Commun., 7, 12786, <a href="https://doi.org/10.1038/ncomms12786" target="_blank">https://doi.org/10.1038/ncomms12786</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib78"><label>Verburg et al.(2008)</label><mixed-citation>
Verburg, P., Antenucci, J. P., and Hecky, R. E.: Large scale overturning
circulation against the direction of the wind in Lake Tanganyika, Verh.
Internat. Verein. Limnol., 30, 612–622, 2008.
</mixed-citation></ref-html>
<ref-html id="bib1.bib79"><label>Verburg et al.(2011)</label><mixed-citation>
Verburg, P., Antenucci, J. P., and Hecky, R. E.: Differential cooling drives
large-scale convective circulation in Lake Tanganyika, Limnol. Oceanogr., 56,
910–926, 2011.
</mixed-citation></ref-html>--></article>
