Skip to content

Commit 3282f6c

Browse files
committed
Response to comments
1 parent 9c42050 commit 3282f6c

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

components/omega/doc/design/OmegaV1GoverningEqns.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -323,34 +323,36 @@ $$
323323
= D^\varphi_k + S^\varphi_k
324324
$$ (layered-tracer)
325325
326+
mrp todo comment on omega vertical pressure advection, versus w vertical velocity.
327+
326328
### Discrete Equations
327329
328330
The discretized versions of the governing equations are
329331
330332
$$
331-
\frac{\partial u_e}{\partial t} + \left[ \frac{{\mathbf k} \cdot \nabla \times u_e +f_v}{[h_i]_v}\right]_e\left([h_i]_e u_e^{\perp}\right)
333+
\frac{\partial u_{e,k}}{\partial t} + \left[ \frac{{\mathbf k} \cdot \nabla \times u_{e,k} +f_v}{[h_{i,k}]_v}\right]_e\left([h_{i,k}]_e u_{e,k}^{\perp}\right)
332334
=
333-
- \frac{1}{\rho_i} \nabla_r p_i - \nabla_r \Phi_i
334-
- \nabla K_i + \nu_2 \nabla^2 u_e - \nu_4 \nabla^4 u_e + \mathcal{D}_e + \mathcal{F}_e
335+
- \frac{1}{\rho_{i,k}} \nabla_r p_{i,k} - \nabla_r \Phi_{i,k}
336+
- \nabla K_{i,k} + \nu_2 \nabla^2 u_{e,k} - \nu_4 \nabla^4 u_{e,k} + \mathcal{D}_{e,k} + \mathcal{F}_{e,k}
335337
$$ (discrete-momentum)
336338
337339
$$
338-
\frac{\partial h_i}{\partial t} + \nabla \cdot \left([h_i]_e u_e\right) = 0,
340+
\frac{\partial h_{i,k}}{\partial t} + \nabla \cdot \left([h_{i,k}]_e u_{e,k}\right) = 0,
339341
$$ (discrete-thickness)
340342
341343
$$
342-
\frac{\partial h_i \varphi_i}{\partial t} + \nabla \cdot \left(u_e [h_i \varphi_i]_e \right) = \kappa_2 h_i \nabla^2 \varphi_i - \kappa_4 h_i \nabla^4 \varphi_i,
344+
\frac{\partial h_{i,k} \varphi_{i,k}}{\partial t} + \nabla \cdot \left(u_{e,k} [h_{i,k} \varphi_{i,k}]_e \right) = \kappa_2 h_{i,k} \nabla^2 \varphi_{i,k} - \kappa_4 h_{i,k} \nabla^4 \varphi_{i,k},
343345
$$ (discrete-tracer)
344346
345-
where subscripts $i$, $e$, and $v$ indicate cell, edge, and vertex locations ($i$ was chosen for cell because $c$ and $e$ look similar). Here square brackets $[\cdot]_e$ and $[\cdot]_v$ are quantities that are interpolated to edge and vertex locations. The interpolation is typically centered, but may vary by method, particularly for advection schemes. For vector quantities, $u_e$ denotes the normal component at the center of the edge, while $u_e^\perp$ denotes the tangential component. In the discrete system, the normal component $u_e$ points positively from the lower cell index to the higher cell index, while the tangential component $u_e^\perp$ points positively $90^o$ to the left of $u_e$ (for unit vectors, ${\mathbf n}_e^\perp = {\mathbf k}\times {\mathbf n}_e$).
347+
where subscripts $i$, $e$, and $v$ indicate cell, edge, and vertex locations ($i$ was chosen for cell because $c$ and $e$ look similar) and subscript $k$ is the layer. Here square brackets $[\cdot]_e$ and $[\cdot]_v$ are quantities that are interpolated to edge and vertex locations. The interpolation is typically centered, but may vary by method, particularly for advection schemes. For vector quantities, $u_e$ denotes the normal component at the center of the edge, while $u_e^\perp$ denotes the tangential component. In the discrete system, the normal component $u_e$ points positively from the lower cell index to the higher cell index, while the tangential component $u_e^\perp$ points positively $90^o$ to the left of $u_e$ (for unit vectors, ${\mathbf n}_e^\perp = {\mathbf k}\times {\mathbf n}_e$).
346348
347349
The discretized momentum drag and forcing terms are
348350
$$
349-
\mathcal{D}_e = - Ra \, u_e - C_D \frac{u_e\left|u_e\right|}{[h_i]_e}
351+
\mathcal{D}_{e,k} = - Ra \, u_{e,k} - C_D \frac{u_{e,k}\left|u_{e,k}\right|}{[h_{i,k}]_e}
350352
$$
351353
352354
$$
353-
\mathcal{F}_e = C_W \frac{(u_W - u_e)\left|u_W - u_e\right|}{[h_i]_e}
355+
\mathcal{F}_{e,k} = C_W \frac{(u_W - u_{e,k})\left|u_W - u_{e,k}\right|}{[h_{i,k}]_e}
354356
$$
355357
356358
### Variable Definitions
@@ -365,8 +367,8 @@ Table 1. Definition of variables
365367
| $\mathcal{D} $ | drag | m/s$^2$ | edge | | |
366368
| $f$ | Coriolis parameter | 1/s | vertex | FVertex | |
367369
| ${\bf F}^u $ | momentum forcing | m/s$^2$ | edge | | |
368-
|${\bf D}^u_h$, ${\bf D}^u_v$ | momentum diffusion terms | | edge | $h$ horizonal, $v$ vertical|
369-
|$ D^\varphi_h$, $ D^\varphi_v$ | tracer diff. terms | | cell | |
370+
|${\bf D}^u $, ${\bf D}^u_h$, ${\bf D}^u_v$ | momentum diffusion terms | | edge | $h$ horizonal, $v$ vertical|
371+
|$ D^\varphi$, $ D^\varphi_h$, $ D^\varphi_v$ | tracer diff. terms | | cell | |
370372
|$f$ | Coriolis parameter | | vertex |
371373
|$f_{eos}$ | equation of state | - |
372374
|$F$ | thickness flux | | edge | $F=hu$ |
@@ -381,12 +383,14 @@ Table 1. Definition of variables
381383
| $q$ | potential vorticity | 1/m/s | vertex | | $q = \eta/h = \left(\omega+f\right)/h$ |
382384
| $Ra$ | Rayleigh drag coefficient | 1/s | constant | | |
383385
|$S$ | salinity | | cell | a tracer $\varphi$ |
386+
|$S^h$ | mass source and sink terms| | cell | |
387+
|$S^\varphi$ | tracer source and sink terms| | cell | |
384388
|$\mathcal{S}$ | model state | - | |
385389
| $t$ | time | s | none | | |
386390
|$T^u,T^h,T^\varphi$ | tendencies | - | |
387391
| ${\mathbf u}$ | velocity, vector form | m/s | edge | | |k
388-
| $u_e$ | velocity, normal to edge | m/s | edge | NormalVelocity | |k
389-
| $u^\perp_e$ | velocity, tangential to edge | m/s | edge | TangentialVelocity | |k
392+
| $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
390394
| ${\mathbf u}_W$ | wind velocity | m/s | edge | | |
391395
| $\eta$ | absolute vorticity | 1/s | vertex | | $\eta=\omega + f$ |
392396
| $\kappa_2$ | tracer diffusion | m$^2$/s | cell | | |

components/omega/doc/index.md

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

8989
```{toctree}
9090
:caption: Design documents
91+
:numbered:
9192
:maxdepth: 1
9293
9394
design/OmegaV0ShallowWater

0 commit comments

Comments
 (0)