Repository navigation
Expand file tree
/
Copy pathmodel_formulation_3d.html
More file actions
379 lines (366 loc) · 25.3 KB
/
Copy pathmodel_formulation_3d.html
File metadata and controls
379 lines (366 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Baroclinic model formulation — Thetis 2026.10.post0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="_static/thetis.css?v=0f3339d6" />
<script src="_static/documentation_options.js?v=a725081d"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
<![endif]-->
<!-- <link rel="stylesheet" href="_static/featured.css"> -->
<link rel="shortcut icon" href="_static/icon_thetis.ico" />
</head><body>
<div class="wrapper">
<a href="index.html"><img src="_static/banner.jpg" height="180px" alt="Thetis Project Banner" /></a>
<div id="access">
<div class="menu">
<ul>
<li class="page_item"><a href="documentation.html" title="Thetis documentation">Documentation</a></li>
<li class="page_item"><a href="developer_notes.html" title="Developer notes">Developer Notes</a></li>
<li class="page_item"><a href="download.html" title="Install Thetis">Install</a></li>
<li class="page_item"><a href="team.html" title="Development team">Team</a></li>
<li class="page_item"><a href="publications.html" title="Publications">Publications</a></li>
<li class="page_item"><a href="funding.html" title="Our financial supporters">Funding</a></li>
<li class="page_item"><a href="contact.html" title="Getting in touch">Contact</a></li>
<li class="page_item"><a href="https://github.com/thetisproject/thetis" title="Thetis source on GitHub">GitHub</a></li>
</ul>
</div><!-- .menu -->
</div><!-- #access -->
</div><!-- #wrapper -->
<div class="document">
<div class="model_formulation_3d">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="baroclinic-model-formulation">
<h1>Baroclinic model formulation<a class="headerlink" href="#baroclinic-model-formulation" title="Link to this heading">¶</a></h1>
<section id="governing-equations">
<h2>Governing equations<a class="headerlink" href="#governing-equations" title="Link to this heading">¶</a></h2>
<p>The three dimensional model solves the Navier-Stokes equations with Boussinesq
and hydrostatic assumptions.</p>
<p>The model uses mode-splitting, i.e. the three dimensional horizontal
velocity <span class="math notranslate nohighlight">\(\mathbf{u}\)</span> is split into a depth average
<span class="math notranslate nohighlight">\(\bar{\mathbf{u}}\)</span> and a deviation
<span class="math notranslate nohighlight">\(\mathbf{u}' = \mathbf{u} - \bar{\mathbf{u}}\)</span>.
We use the 2D shallow water equations <a class="reference internal" href="thetis.html#equation-swe-freesurf-modesplit">(11)</a>-
<a class="reference internal" href="thetis.html#equation-swe-momentum-modesplit">(12)</a> to solve <span class="math notranslate nohighlight">\(\bar{\mathbf{u}}\)</span>, and the
3D momentum equation <a class="reference internal" href="thetis.html#equation-mom-eq-split">(5)</a> to solve <span class="math notranslate nohighlight">\(\mathbf{u}'\)</span>.
See modules
<a class="reference internal" href="thetis.html#module-thetis.shallowwater_eq" title="thetis.shallowwater_eq"><code class="xref py py-mod docutils literal notranslate"><span class="pre">shallowwater_eq</span></code></a> and <a class="reference internal" href="thetis.html#module-thetis.momentum_eq" title="thetis.momentum_eq"><code class="xref py py-mod docutils literal notranslate"><span class="pre">momentum_eq</span></code></a> for more information.</p>
<p>Since the model is hydrostatic, the vertical velocity is solved diagnostically
from the continuity equation <a class="reference internal" href="thetis.html#equation-continuity-eq-3d">(21)</a>.
The solver is implemented in <a class="reference internal" href="thetis.html#thetis.utility3d.VerticalVelocitySolver" title="thetis.utility3d.VerticalVelocitySolver"><code class="xref py py-class docutils literal notranslate"><span class="pre">VerticalVelocitySolver</span></code></a>.</p>
<p>Water temperature and salinity are modeled as tracers by the means of the
tracer advection-diffusion equation <a class="reference internal" href="thetis.html#equation-tracer-eq">(15)</a>.
Options <a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.solve_temperature" title="thetis.options.ModelOptions3d.solve_temperature"><code class="xref py py-attr docutils literal notranslate"><span class="pre">solve_temperature</span></code></a>, <a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.solve_salinity" title="thetis.options.ModelOptions3d.solve_salinity"><code class="xref py py-attr docutils literal notranslate"><span class="pre">solve_salinity</span></code></a>
determine whether the dynamic equations are solved at run time.
If not, we treat these variables as constants whose value is set with
<a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.constant_temperature" title="thetis.options.ModelOptions3d.constant_temperature"><code class="xref py py-attr docutils literal notranslate"><span class="pre">constant_temperature</span></code></a> and
<a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.constant_salinity" title="thetis.options.ModelOptions3d.constant_salinity"><code class="xref py py-attr docutils literal notranslate"><span class="pre">constant_salinity</span></code></a> options.</p>
<p>In baroclinic simulations the water density, <span class="math notranslate nohighlight">\(\rho\)</span>, depends on the
temperature and salinity via the equation of state:
<span class="math notranslate nohighlight">\(\rho = \rho'(T, S, p) + \rho_0\)</span>, where <span class="math notranslate nohighlight">\(\rho_0\)</span>
is a constant reference density.
The equation of state is set by the option
<a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.equation_of_state_type" title="thetis.options.ModelOptions3d.equation_of_state_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">equation_of_state_type</span></code></a>, and
<span class="math notranslate nohighlight">\(\rho_0\)</span> is defined in the <a class="reference internal" href="thetis.html#module-thetis.physical_constants" title="thetis.physical_constants"><code class="xref py py-mod docutils literal notranslate"><span class="pre">physical_constants</span></code></a> module.
Water density affects the internal pressure gradient through the baroclinic
head, <span class="math notranslate nohighlight">\(r\)</span>, which we can solve diagnostically from <a class="reference internal" href="thetis.html#equation-baroc-head">(3)</a>.
The internal pressure gradient, <span class="math notranslate nohighlight">\(\mathbf{F}_{pg} = g\nabla_h r\)</span>, is
computed weakly as separate field.
The solver is implemented in <a class="reference internal" href="thetis.html#thetis.momentum_eq.InternalPressureGradientCalculator" title="thetis.momentum_eq.InternalPressureGradientCalculator"><code class="xref py py-class docutils literal notranslate"><span class="pre">InternalPressureGradientCalculator</span></code></a>.</p>
<p>Setting option <a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.use_baroclinic_formulation" title="thetis.options.ModelOptions3d.use_baroclinic_formulation"><code class="xref py py-attr docutils literal notranslate"><span class="pre">use_baroclinic_formulation</span></code></a><code class="docutils literal notranslate"><span class="pre">=True</span></code> activates
baroclinicity, i.e. the computation of water density, baroclinic head and
(both 2D and 3D) internal pressure gradients.
If <a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.use_baroclinic_formulation" title="thetis.options.ModelOptions3d.use_baroclinic_formulation"><code class="xref py py-attr docutils literal notranslate"><span class="pre">use_baroclinic_formulation</span></code></a><code class="docutils literal notranslate"><span class="pre">=False</span></code>, water density is not computed. Temperature and
salinity may still be simulated, but they are treated as passive tracers.</p>
<p>The following tables summarize the prognostic and diagnostic variables.</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 18.9%" />
<col style="width: 25.3%" />
<col style="width: 30.5%" />
<col style="width: 25.3%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Symbol</p></th>
<th class="head"><p>Dynamic equation</p></th>
<th class="head"><p>Thetis field name</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Water elevation</p></td>
<td><p><span class="math notranslate nohighlight">\(\eta\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-swe-freesurf-modesplit">(11)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">elev_2d</span></code>, <code class="docutils literal notranslate"><span class="pre">elev_3d</span></code></p></td>
</tr>
<tr class="row-odd"><td><p>Depth av. velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(\bar{\mathbf{u}}\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-swe-momentum-modesplit">(12)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">uv_2d</span></code></p></td>
</tr>
<tr class="row-even"><td><p>3D velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(\mathbf{u}'\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-mom-eq-split">(5)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">uv_3d</span></code></p></td>
</tr>
<tr class="row-odd"><td><p>Water temperature</p></td>
<td><p><span class="math notranslate nohighlight">\(T\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-tracer-eq">(15)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">temp_3d</span></code></p></td>
</tr>
<tr class="row-even"><td><p>Water salinity</p></td>
<td><p><span class="math notranslate nohighlight">\(S\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-tracer-eq">(15)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">salt_3d</span></code></p></td>
</tr>
</tbody>
</table>
<p>Table 1. <em>Prognostic variables in the 3D model.</em></p>
<table class="docutils align-default">
<colgroup>
<col style="width: 19.4%" />
<col style="width: 25.8%" />
<col style="width: 31.2%" />
<col style="width: 23.7%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Symbol</p></th>
<th class="head"><p>Equation</p></th>
<th class="head"><p>Thetis field name</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Vertical velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(w\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-continuity-eq-3d">(21)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">w_3d</span></code></p></td>
</tr>
<tr class="row-odd"><td><p>Water density</p></td>
<td><p><span class="math notranslate nohighlight">\(\rho\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-equation-of-state">(20)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">rho_3d</span></code></p></td>
</tr>
<tr class="row-even"><td><p>Baroclinic head</p></td>
<td><p><span class="math notranslate nohighlight">\(r\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-baroc-head">(3)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">baroc_head_3d</span></code></p></td>
</tr>
<tr class="row-odd"><td><p>Pressure gradient</p></td>
<td><p><span class="math notranslate nohighlight">\(\mathbf{F}_{pg}\)</span></p></td>
<td><p><a class="reference internal" href="thetis.html#equation-int-pg-eq">(4)</a></p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">int_pg_3d</span></code></p></td>
</tr>
</tbody>
</table>
<p>Table 2. <em>Diagnostic variables in the 3D model.</em></p>
</section>
<section id="spatial-discretization">
<h2>Spatial discretization<a class="headerlink" href="#spatial-discretization" title="Link to this heading">¶</a></h2>
<p>Currently Thetis supports two finite element families:
Equal order Discontinuous Galerkin (DG)
(option <code class="docutils literal notranslate"><span class="pre">'dg-dg'</span></code>), and mimetic Raviart-Thomas-DG family (<code class="docutils literal notranslate"><span class="pre">'rt-dg'</span></code>).
The element family is set by the <a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.CommonModelOptions.element_family" title="thetis.options.CommonModelOptions.element_family"><code class="xref py py-attr docutils literal notranslate"><span class="pre">element_family</span></code></a> option.
Currently only linear elements are supported, i.e.
<a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.CommonModelOptions.polynomial_degree" title="thetis.options.CommonModelOptions.polynomial_degree"><code class="xref py py-attr docutils literal notranslate"><span class="pre">polynomial_degree</span></code></a> must be 1.</p>
<p>The function spaces for both element families are summarized in the following
tables.</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 25.4%" />
<col style="width: 33.8%" />
<col style="width: 40.8%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Symbol</p></th>
<th class="head"><p>Function space</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Water elevation</p></td>
<td><p><span class="math notranslate nohighlight">\(\eta\)</span></p></td>
<td><p>P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Depth av. velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(\bar{\mathbf{u}}\)</span></p></td>
<td><p>P1DG</p></td>
</tr>
<tr class="row-even"><td><p>3D velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(\mathbf{u}'\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Water temperature</p></td>
<td><p><span class="math notranslate nohighlight">\(T\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-even"><td><p>Water salinity</p></td>
<td><p><span class="math notranslate nohighlight">\(S\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Vertical velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(w\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-even"><td><p>Water density</p></td>
<td><p><span class="math notranslate nohighlight">\(\rho\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Baroclinic head</p></td>
<td><p><span class="math notranslate nohighlight">\(r\)</span></p></td>
<td><p>P1DG x P2</p></td>
</tr>
<tr class="row-even"><td><p>Pressure gradient</p></td>
<td><p><span class="math notranslate nohighlight">\(\mathbf{F}_{pg}\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
</tbody>
</table>
<p>Table 3. <em>Equal order Discontinuous Galerkin function spaces (degree=1).</em></p>
<table class="docutils align-default">
<colgroup>
<col style="width: 25.4%" />
<col style="width: 33.8%" />
<col style="width: 40.8%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Variable</p></th>
<th class="head"><p>Symbol</p></th>
<th class="head"><p>Function space</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Water elevation</p></td>
<td><p><span class="math notranslate nohighlight">\(\eta\)</span></p></td>
<td><p>P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Depth av. velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(\bar{\mathbf{u}}\)</span></p></td>
<td><p>RT2</p></td>
</tr>
<tr class="row-even"><td><p>3D velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(\mathbf{u}'\)</span></p></td>
<td><p>HDiv(RT2 x P1DG)</p></td>
</tr>
<tr class="row-odd"><td><p>Water temperature</p></td>
<td><p><span class="math notranslate nohighlight">\(T\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-even"><td><p>Water salinity</p></td>
<td><p><span class="math notranslate nohighlight">\(S\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Vertical velocity</p></td>
<td><p><span class="math notranslate nohighlight">\(w\)</span></p></td>
<td><p>HDiv(P1DG x P2)</p></td>
</tr>
<tr class="row-even"><td><p>Water density</p></td>
<td><p><span class="math notranslate nohighlight">\(\rho\)</span></p></td>
<td><p>P1DG x P1DG</p></td>
</tr>
<tr class="row-odd"><td><p>Baroclinic head</p></td>
<td><p><span class="math notranslate nohighlight">\(r\)</span></p></td>
<td><p>P1DG x P2</p></td>
</tr>
<tr class="row-even"><td><p>Pressure gradient</p></td>
<td><p><span class="math notranslate nohighlight">\(\mathbf{F}_{pg}\)</span></p></td>
<td><p>HDiv(RT2 x P1DG)</p></td>
</tr>
</tbody>
</table>
<p>Table 4. <em>Raviart-Thomas Discontinuous Galerkin function spaces (degree=1).</em></p>
<p>In both cases the tracers belong to fully discontinuous P1DG x P1DG function
space. Tracer advection is solved with upwinding method and slope limiters
(see <a class="reference internal" href="thetis.html#thetis.limiter.VertexBasedP1DGLimiter" title="thetis.limiter.VertexBasedP1DGLimiter"><code class="xref py py-class docutils literal notranslate"><span class="pre">VertexBasedP1DGLimiter</span></code></a>).</p>
</section>
<section id="temporal-discretization">
<h2>Temporal discretization<a class="headerlink" href="#temporal-discretization" title="Link to this heading">¶</a></h2>
<p>The system of coupled equations is marched in time with a
<a class="reference internal" href="thetis.html#thetis.coupled_timeintegrator.CoupledTimeIntegrator" title="thetis.coupled_timeintegrator.CoupledTimeIntegrator"><code class="xref py py-class docutils literal notranslate"><span class="pre">CoupledTimeIntegrator</span></code></a>.
The time integration method is set by <a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.timestepper_type" title="thetis.options.ModelOptions3d.timestepper_type"><code class="xref py py-attr docutils literal notranslate"><span class="pre">timestepper_type</span></code></a>
option. Currently supported time integrators are listed below.</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 18.9%" />
<col style="width: 29.9%" />
<col style="width: 6.3%" />
<col style="width: 12.6%" />
<col style="width: 32.3%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Time integrator</p></th>
<th class="head"><p>Thetis class</p></th>
<th class="head"><p>2D mode</p></th>
<th class="head"><p>ALE mesh support</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">'SSPRK22'</span></code></p></td>
<td><p><a class="reference internal" href="thetis.html#thetis.coupled_timeintegrator.CoupledTwoStageRK" title="thetis.coupled_timeintegrator.CoupledTwoStageRK"><code class="xref py py-class docutils literal notranslate"><span class="pre">CoupledTwoStageRK</span></code></a></p></td>
<td><p>implicit</p></td>
<td><p>yes</p></td>
<td><p>Coupled method based on SSPRK(2,2) scheme</p></td>
</tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">'LeapFrog'</span></code></p></td>
<td><p><a class="reference internal" href="thetis.html#thetis.coupled_timeintegrator.CoupledLeapFrogAM3" title="thetis.coupled_timeintegrator.CoupledLeapFrogAM3"><code class="xref py py-class docutils literal notranslate"><span class="pre">CoupledLeapFrogAM3</span></code></a></p></td>
<td><p>implicit</p></td>
<td><p>yes</p></td>
<td><p>Leapfrog Adams-Moulton 3 method</p></td>
</tr>
</tbody>
</table>
<p>Table 5. <em>Supported 3D time integrators.</em></p>
<p>The 2D and 3D time steps can be set via <a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.CommonModelOptions.timestep" title="thetis.options.CommonModelOptions.timestep"><code class="xref py py-attr docutils literal notranslate"><span class="pre">timestep</span></code></a> and
<a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.timestep_2d" title="thetis.options.ModelOptions3d.timestep_2d"><code class="xref py py-attr docutils literal notranslate"><span class="pre">timestep_2d</span></code></a> options.
The 2D mode can be treated either implicitly or explicitly.
In case of an implicit 2D mode, the 2D time step is equal to the 3D time step
and <a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.timestep_2d" title="thetis.options.ModelOptions3d.timestep_2d"><code class="xref py py-attr docutils literal notranslate"><span class="pre">timestep_2d</span></code></a> option is ignored.</p>
<p>Thetis can also estimate the maximum stable time step based on the mesh
resolution, used element family and time integration scheme.
To use this feature, the user should provide the following estimates:</p>
<ul class="simple">
<li><p><a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.CommonModelOptions.horizontal_velocity_scale" title="thetis.options.CommonModelOptions.horizontal_velocity_scale"><code class="xref py py-attr docutils literal notranslate"><span class="pre">horizontal_velocity_scale</span></code></a>: Maximal horizontal velocity scale</p></li>
<li><p><a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.ModelOptions3d.vertical_velocity_scale" title="thetis.options.ModelOptions3d.vertical_velocity_scale"><code class="xref py py-attr docutils literal notranslate"><span class="pre">vertical_velocity_scale</span></code></a>: Maximal vertical velocity scale</p></li>
<li><p><a class="reference internal" href="model_options_3d.html#model-options-3d"><span class="std std-ref">ModelOptions3d</span></a>.<a class="reference internal" href="thetis.html#thetis.options.CommonModelOptions.horizontal_viscosity_scale" title="thetis.options.CommonModelOptions.horizontal_viscosity_scale"><code class="xref py py-attr docutils literal notranslate"><span class="pre">horizontal_viscosity_scale</span></code></a>: Maximal horizontal viscosity scale</p></li>
</ul>
<p>When the simulation initializes, Thetis will compute the maximal feasible time
step:</p>
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span>Coupled time integrator: CoupledTwoStageRK
2D time integrator: TwoStageTrapezoid
3D time integrator: SSPRK22ALE
3D implicit time integrator: BackwardEuler
- dt 2d swe: 7.34794172415
- dt h. advection: 213.200697179
- dt v. advection: 729.166666667
- dt viscosity: 45454.5372777
- CFL adjusted dt: 2D: inf 3D: 213.200697179
- chosen dt: 2D: 213.0 3D: 213.0
- adjusted dt: 2D: 180.0 3D: 180.0
</pre></div>
</div>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer" role="contentinfo">
© Copyright 2016-2026, Tuomas Kärnä et al..
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.1.3.
</div>
</body>
</html>