Skip to content

Commit e3573b8

Browse files
committed
expand continuous equations
1 parent 3282f6c commit e3573b8

File tree

2 files changed

+66
-51
lines changed

2 files changed

+66
-51
lines changed

components/omega/doc/design/OmegaV1GoverningEqns.md

Lines changed: 66 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add later, if it seems necessary. There is a toc on the left bar.
1111
-->
1212

1313

14-
## Overview
14+
## 1. Overview
1515

1616
This design document describes the governing equations for Omega, the Ocean Model for E3SM Global Applications. Overall, Omega is an unstructured-mesh ocean model based on TRiSK numerical methods ([Thuburn et al. 2009](https://www.sciencedirect.com/science/article/pii/S0021999109004434)) that is specifically designed for modern exascale computing architectures. The algorithms in Omega will be mostly identical to those in MPAS-Ocean, but it will be written in c++ rather than Fortran in order to take advantage of libraries to run on GPUs, such as Kokkos ([Trott et al. 2022](https://ieeexplore.ieee.org/document/9485033)). Significant differences between MPAS-Ocean and Omega are:
1717

@@ -24,28 +24,28 @@ The planned versions of Omega are:
2424
- **Omega-1.0: Layered ocean, idealized, no surface fluxes.** This adds active temperature, salinity, and density as a function of pressure in the vertical. Vertical advection and diffusion terms are added to the momentum and tracer equations. An equation of state and simple vertical mixing, such as constant coefficient, are needed. Capability and testing are similar to [Petersen et al. 2015](http://www.sciencedirect.com/science/article/pii/S1463500314001796). Tests include overflow, internal gravity wave, baroclinic channel, seamount, and vertical merry-go-round.
2525
- **Omega-1.1: Layered ocean, idealized, with surface fluxes.** Addition of simple vertical mixing scheme such as Pacanowski & Philander; nonlinear equation of state (TEOS10); tracer surface restoring to a constant field; constant wind forcing; and flux-corrected transport for horizontal advection. Testing will be with the baroclinic gyre and single column tests of surface fluxes and vertical mixing.
2626
- **Omega-2.0: Coupled within E3SM, ocean only.** Ability to run C cases (active ocean only) within E3SM. Requires addition of E3SM coupling infrastructure; simple analysis (time-averaged output of mean, min, max); split baroclinic-barotropic time; global bounds checking on state. Testing and analysis similar to [Ringler et al. 2013](https://www.sciencedirect.com/science/article/pii/S1463500313000760), except Omega uses a non-Boussinesq formulation.
27-
- **Omega-2.1: E3SM fully coupled** Ability to run G cases (active ocean and sea ice) and B cases (all components active) within E3SM. This will include: a full vertical mixing scheme, such as KPP; frazil ice formation in the ocean; and a submosescale parameterization. Parameterizations mean for lower resolutions, such as Gent-McWilliams and Redi mixing, will not be in this version. Simulations can be run at high resolution and compared to previous E3SM simulations, including [Petersen et al. 2019](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2018MS001373) and [Caldwell et al. 2019](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2019MS001870).
27+
- **Omega-2.1: E3SM fully coupled** Ability to run G cases (active ocean and sea ice) and B cases (all components active) within E3SM. This will include: a full vertical mixing scheme, such as KPP; frazil ice formation in the ocean; and a submosescale parameterization. Omega 2.1 will mostly be run at eddy-resolving resolutions, and will not include parameterizations for lower resolutions such as Gent-McWilliams and Redi mixing. Simulations will be compared to previous E3SM simulations, including [Caldwell et al. 2019](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2019MS001870) and [Petersen et al. 2019](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2018MS001373).
2828

2929
This document describes the governing equations for the layered ocean model, which are applicable for Omega-1.0 onwards. Specific terms, such as the pressure gradient, vertical mixing, and parameterizations, are left in their general form here but are described in more detail in other design documents.
3030

31-
## Requirements
31+
## 2. Requirements
3232

3333
The requirements in the [Omega-0 design document](OmegaV0ShallowWater) still apply. Additional design requirements for Omega-1 are:
3434

3535
### Omega will be an incompressible, hydrostatic, non-Boussinesq ocean model.
3636
See discussion in introduction. Non-Boussinesq changes the independant vertical variable to pressure, and mass conservation equation to be pressure-thickness, $h=\Delta p$.
3737

3838
### Omega will use TEOS10 for the equation of state.
39-
See additional EOS design document.
39+
See additional [EOS design document](EOS)
4040

4141
### Omega-1.0 will add new terms for the pressure gradient, vertical mixing, and vertical advection.
4242
See individual design documents for each term.
4343

44-
## Governing Equations
44+
## 3. Governing Equations
4545

4646
### MPAS-Ocean Equations of Motion
4747

48-
The MPAS-Ocean layered formulation solves the following equations for momentum, thickness, and tracers at layer $k$. These are continuous in the horizontal and discrete in the vertical.
48+
The MPAS-Ocean layered formulation are provided here for reference. MPAS-Ocean solves for momentum, thickness, and tracers at layer $k$. These are continuous in the horizontal and discrete in the vertical.
4949

5050
$$
5151
\frac{\partial {\mathbf u}_k}{\partial t}
@@ -74,17 +74,15 @@ $$ (mpaso-continuous-tracer)
7474
The layer thickness $h$, vertical velocity $w$, pressure $p$, and tracer $\varphi$, are cell-centered quantities, while the horizontal velocity ${\mathbf u}$ and $e$ superscript are variables interpolated to the cell edges.
7575
7676
### Continuous Equations
77-
The continuous form of the conservation equations are as follows [Kundu et al. 2024](https://www.amazon.com/Fluid-Mechanics-Pijush-K-Kundu/dp/012405935X), chapter 4, eqns 4.7 and 4.22. This is before any assumptions are made, so this is a compressible, non-hydrostatic, non-Boussinesq fluid. Here all variables are a function of $(x,y,z)$, $\bf u$ denotes the horizontal velocity vector, $w$ is the vertical velocity, ${\bf u} \otimes {\bf u} = {\bf u}{\bf u}^T$ is the tensor product, $\nabla$ is the horizontal gradient, and other variables defined in the [section below](#variable-definitions).
77+
The continuous form of the conservation equations are as follows [Kundu et al. 2024](https://www.amazon.com/Fluid-Mechanics-Pijush-K-Kundu/dp/012405935X), chapter 4, eqns 4.7 and 4.22. This is before any assumptions are made, so this is a compressible, non-hydrostatic, non-Boussinesq fluid. Here all variables are a function of $(x,y,z)$, ${\bf u}_{3D}$ denotes the three-dimensional velocity vector, ${\bf u}_{3D} \otimes {\bf u}_{3D} = {\bf u}_{3D}{\bf u}_{3D}^T$ is the tensor product, $\nabla_{3D}$ is the three-dimensional gradient, $D/Dt$ is the material derivative, and other variables defined in the [Variable Defitionion Section below](#variable-definitions).
7878
7979
momentum:
8080
8181
$$
82-
\frac{D \rho {\bf u} }{D t} \equiv
83-
\frac{\partial \rho {\bf u}}{\partial t}
84-
+ \nabla \cdot \left( \rho {\bf u} \otimes {\bf u} \right)
85-
+ w\frac{\partial \rho {\bf u}}{\partial z}
86-
= - \nabla p
87-
- \rho f {\bf k} \times {\bf u}
82+
\frac{D \rho {\bf u}_{3D} }{D t} \equiv
83+
\frac{\partial \rho {\bf u}_{3D}}{\partial t}
84+
+ \nabla_{3D} \cdot \left( \rho {\bf u}_{3D} \otimes {\bf u}_{3D} \right)
85+
= - \nabla_{3D} p
8886
+ \rho {\bf D}^u + \rho {\bf F}^u
8987
$$ (continuous-momentum-R13App)
9088
@@ -93,8 +91,7 @@ mass:
9391
$$
9492
\frac{D \rho}{D t} \equiv
9593
\frac{\partial \rho }{\partial t}
96-
+ \nabla \cdot \left( \rho {\bf u} \right)
97-
+ \frac{\partial}{\partial z} \left( \rho w \right)
94+
+ \nabla_{3D} \cdot \left( \rho {\bf u}_{3D} \right)
9895
= 0
9996
$$ (continuous-mass-R13App)
10097
@@ -103,24 +100,23 @@ tracer:
103100
$$
104101
\frac{D \rho \varphi }{D t} \equiv
105102
\frac{\partial \rho \varphi}{\partial t}
106-
+ \nabla \cdot \left( \rho \varphi {\bf u} \right)
107-
+ \frac{\partial}{\partial z} \left( \rho \varphi w \right)
103+
+ \nabla_{3D} \cdot \left( \rho \varphi {\bf u}_{3D} \right)
108104
= D^\varphi + S^\varphi
109105
$$ (continuous-tracer-R13App)
110106
111107
Here we have express the following terms as a general operators, with examples of specific forms provided below: the dissipation ${\bf D}^u$, momemtum forcing ${\bf F}^u$, tracer diffusion $D^\varphi$, and tracer sources and sinks $S^\varphi$. The momentum equation can be rewritten using the product rule on $\rho {\bf u}$, mass conservation, and dividing by $\rho$, as:
112108
113109
$$
114-
\frac{D {\bf u} }{D t} \equiv
115-
\frac{\partial {\bf u}}{\partial t}
116-
+ \nabla \cdot \left( {\bf u} \otimes {\bf u} \right)
117-
+ w\frac{\partial {\bf u}}{\partial z}
118-
= - \frac{1}{\rho} \nabla p
119-
- f {\bf k} \times {\bf u}
120-
+ {\bf D}^u + {\bf F}^u
110+
\frac{D {\bf u}_{3D} }{D t} \equiv
111+
\frac{\partial {\bf u}_{3D}}{\partial t}
112+
+ \nabla_{3D} \cdot \left( {\bf u}_{3D} \otimes {\bf u}_{3D} \right)
113+
= - \frac{1}{\rho} \nabla_{3D} p
114+
+ {\bf D}^u + {\bf F}^u
121115
$$ (continuous-momentum-rho)
122116
123-
Note that the advective term may be replaced with the vector identity
117+
Geophysical fluids such as the ocean and atmosphere are rotating and stratified, and horizontal velocities are orders of magnitude larger than vertical velocities. It is therefore convenient to separate the horizontal and vertical as ${\bf u}_{3D} = \left( {\bf u}, w \right)$ and $\nabla_{3D} = \left( \nabla, d/dz \right)$ where $z$ is the vertical direction in a local coordinate frame on the earth's surface and $w$ is the vertical velocity. The gravitational force $g {\bf k}$ is added in the vertical. The rotating frame of reference results in the Coriolis force $f {\bf k} \times {\bf u} \equiv f {\bf u}^\perp$, where $f$ is the Coriolis parameter and ${\bf u}^\perp$ is the horizontal velocity rotated $90^o$ from $\bf u$. See any textbook in the [References](#references) for a full derivation.
118+
119+
The horizontal parts of the advective term may be replaced with the vector identity
124120
125121
$$
126122
\nabla \cdot \left( {\bf u} \otimes {\bf u} \right) =
@@ -129,7 +125,7 @@ $$
129125
&= \zeta \boldsymbol{u}^{\perp} + \nabla K.
130126
$$ (advection-identity)
131127
132-
where $\zeta$ is relative vorticity and $K$ is kinetic energy. This is used to produce the final formulation below.
128+
where $\zeta$ is relative vorticity and $K$ is kinetic energy. This step separates the horizontal advection into non-divergent and non-rotational components, which is useful in the final TRiSK formulation.
133129
134130
For a primitive equation ocean model, we assume the fluid is incompressible and hydrostatic. For Omega we are not making the Boussinesq assumption, so all density terms are the full density. In particular, the density coefficient of the pressure gradient in [](#continuous-momentum-R13App) is not a constant, as it is in primitive equation models like POP and MPAS-Ocean.
135131
@@ -147,7 +143,7 @@ $$
147143
- \frac{1}{\rho} \frac{\partial p}{\partial z} - g + {\bf D}^u + {\bf F}^u
148144
$$ (continuous-vert-mom)
149145
150-
assume that advection of vertical momentum $Dw/Dt$, dissipation, and forcing are small, and that the first order balance is between pressure gradient and gravity,
146+
assume that advection of vertical momentum $Dw/Dt$, dissipation, and forcing are small, and that the first order balance is between pressure gradient and buoyancy,
151147
152148
$$
153149
\frac{\partial p}{\partial z}
@@ -164,35 +160,56 @@ The constitutive equation is the equation of state,
164160
$$
165161
\rho = f_{eos}(p,T,S).
166162
$$ (continuous-eos-R13App)
167-
where are temperature and salinity ($T$ and $S$) are examples of tracers $\varphi$.
163+
where temperature and salinity ($T$ and $S$) are examples of tracers $\varphi$.
168164
169-
Momentum diffusion terms include
165+
The final form of the continuous conservations equations for a non-Boussinesq, incompressible, non-hydrostatic ocean are
166+
167+
momentum:
170168
171169
$$
172-
{\bf D}^u = {\bf D}^u_h + {\bf D}^u_v
173-
$$ (continuous-mom_diff-R13App)
170+
\frac{\partial {\bf u}}{\partial t}
171+
+ f {\bf u}^\perp + \zeta {\bf u}^\perp
172+
+ w\frac{\partial {\bf u}}{\partial z}
173+
= - \frac{1}{\rho} \nabla p
174+
- \nabla K
175+
+ {\bf D}^u + {\bf F}^u
176+
$$ (continuous-momentum-final)
177+
178+
mass:
179+
174180
$$
175-
{\bf D}^u_v=\frac{\partial }{\partial z}
176-
\left( \nu_v \frac{\partial {\bf u}}{\partial z} \right)
177-
$$ (continuous-v_mom_diff-R13App)
181+
\frac{\partial \rho }{\partial t}
182+
+ \nabla \cdot \left( \rho {\bf u} \right)
183+
+ \frac{\partial}{\partial z} \left( \rho w \right)
184+
= 0
185+
$$ (continuous-mass-final)
186+
187+
tracer:
188+
178189
$$
179-
{\bf D}^u_h=\nu_h \nabla^2 \bf u = \nu_h(\nabla \delta + {\bf k}\times \nabla \eta)
180-
$$ (continuous-h_mom_diff-R13App)
181-
and may also include a del-4 term, Rayleigh drag, and bottom drag. Momentum forcing is due to wind stress.
190+
\frac{\partial \rho \varphi}{\partial t}
191+
+ \nabla \cdot \left( \rho \varphi {\bf u} \right)
192+
+ \frac{\partial}{\partial z} \left( \rho \varphi w \right)
193+
= D^\varphi + S^\varphi
194+
$$ (continuous-tracer-final)
182195
183-
Tracer diffusion terms include
196+
Momentum diffusion terms include Laplacian (del2), biharmonic (del4), and vertical viscosity,
184197
185198
$$
186-
D^\varphi = D^\varphi_h + D^\varphi_v
187-
$$ (continuous-tracer_diff-R13App)
199+
{\bf D}^u
200+
= \nu_2 \nabla^2 {\bf u} - \nu_4 \nabla^4 {\bf u}
201+
+ \frac{\partial }{\partial z} \left( \nu_v \frac{\partial {\bf u}}{\partial z} \right)
202+
$$ (continuous-h_mom_diff)
203+
and may also include a Rayleigh drag and eventually parameterizations. Momentum forcing is due to wind stress and bottom drag. Similarly, the tracer diffusion terms include Laplacian (del2), and vertical viscosity,
204+
188205
$$
189-
D^\varphi_v = \rho \frac{\partial }{\partial z}
206+
D^\varphi =
207+
\nabla\cdot\left(\rho \kappa_2 \nabla\varphi \right)
208+
+ \rho \frac{\partial }{\partial z}
190209
\left( \kappa_v \frac{\partial \varphi}{\partial z} \right),
191210
$$ (continuous-v_tr_diff-R13App)
192-
$$
193-
D^\varphi_h = \nabla\cdot\left(\rho \kappa_h \nabla\varphi \right).
194-
$$ (continuous-h_tr_diff-R13App)
195-
and may also include a del-4 term. Sources and sinks include surface fluxes from the atmosphere and land, and bio-geo-chemical reactions.
211+
and may also include a biharmonic (del4) term and parameterizations such as Redi mixing. Sources and sinks include surface fluxes from the atmosphere and land, and bio-geo-chemical reactions.
212+
All of the diffusion and forcing terms are written in more detail with the [Discrete Equations](#discrete-equations) below.
196213
197214
### Layered Equations
198215
@@ -365,11 +382,10 @@ Table 1. Definition of variables
365382
| $C_W$ | wind stress coefficient | 1/m | constant | | |
366383
| $D$ | divergence | 1/s | cell | Divergence | $D=\nabla\cdot\mathbf u$ |
367384
| $\mathcal{D} $ | drag | m/s$^2$ | edge | | |
368-
| $f$ | Coriolis parameter | 1/s | vertex | FVertex | |
369-
| ${\bf F}^u $ | momentum forcing | m/s$^2$ | edge | | |
370385
|${\bf D}^u $, ${\bf D}^u_h$, ${\bf D}^u_v$ | momentum diffusion terms | | edge | $h$ horizonal, $v$ vertical|
371386
|$ D^\varphi$, $ D^\varphi_h$, $ D^\varphi_v$ | tracer diff. terms | | cell | |
372-
|$f$ | Coriolis parameter | | vertex |
387+
| $f$ | Coriolis parameter | 1/s | vertex | FVertex | $f = 2\Omega sin(\phi)$, $\Omega$ rotation rate, $\phi$ latitude|
388+
| ${\bf F}^u $ | momentum forcing | m/s$^2$ | edge | | |
373389
|$f_{eos}$ | equation of state | - |
374390
|$F$ | thickness flux | | edge | $F=hu$ |
375391
|$g$ | grav. acceleration | | constant |
@@ -390,7 +406,7 @@ Table 1. Definition of variables
390406
|$T^u,T^h,T^\varphi$ | tendencies | - | |
391407
| ${\mathbf u}$ | velocity, vector form | m/s | edge | | |k
392408
| $u_{e,k}$ | velocity, normal to edge | m/s | edge | NormalVelocity | |k
393-
| $u^\perp_{e,k}$ | velocity, tangential to edge | m/s | edge | TangentialVelocity | |k
409+
| $u^\perp_{e,k}$ | velocity, tangential to edge | m/s | edge | TangentialVelocity | $u^\perp = {\bf k} \times {\bf u}|
394410
| ${\mathbf u}_W$ | wind velocity | m/s | edge | | |
395411
| $\eta$ | absolute vorticity | 1/s | vertex | | $\eta=\omega + f$ |
396412
| $\kappa_2$ | tracer diffusion | m$^2$/s | cell | | |
@@ -415,7 +431,7 @@ Table 1. Definition of variables
415431
### Operator Formulation
416432
The horizontal operator stencils remain the same as those given in [Omega-0 design document](OmegaV0ShallowWater.md#operator-formulation).
417433
418-
## Verification and Testing
434+
## 4. Verification and Testing
419435
420436
Capability and testing are similar to [Petersen et al. 2015](http://www.sciencedirect.com/science/article/pii/S1463500314001796). The following tests are in idealized domains and do not require surface fluxes or surface restoring. For the following tests to show results comparable to those published with other models, the full dynamic sequence of density, pressure, momentum, and advection must work correctly. The successful completion of the following tests is a validation of the primitive equation functions in Omega 1.0. All of the following tests may exercise a linear equation of state or the nonlinear TEOS10. The first four tests quantify the anomalous mixing caused by the numerical schemes. The first five are on cartesian planes with regular hexagon meshes.
421437

components/omega/doc/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ devGuide/TridiagonalSolvers
8888

8989
```{toctree}
9090
:caption: Design documents
91-
:numbered:
9291
:maxdepth: 1
9392
9493
design/OmegaV0ShallowWater

0 commit comments

Comments
 (0)