_Barotropic_Baroclinic_Coupling.dox

1/*! \page Barotropic_Baroclinic_Coupling Barotropic-Baroclinic Coupling
2
3\brief Time-averaged accelerations
4
5The barotropic equations are timestepped with a timestep to resolve the surface
6gravity waves. With care, the baroclinic timestep only need resolve the inertial
7oscillations. The barotropic accelerations are averaged over the many barotropic
8timesteps taken between baroclinic steps. At time \f$n\f$, the baroclinic
9accelerations are computed. The vertical average of that acceleration is
10subtracted off and replaced by the time-averaged acceleration from the group of
11barotropic timesteps:
12
13\f[
14 \Delta t \frac{\partial \vec{u}}{\partial t} = \Delta t \left(
15 \frac{\partial \vec{u}}{\partial t} - \frac{\partial \vec{u}_{BT}}{\partial t}
16 \right)^n + \Delta t \overline{\frac{\partial \vec{u}_{BT}}{\partial t}}^{\Delta t}
17\f]
18
19Similarly, the velocities used in the tracer equation are a careful blend of the
20barotropic and baroclinic solutions:
21
22\f[
23 \Delta t \frac{\partial \theta}{\partial t} + \Delta t \left( \tilde{\vec{u}}
24 \cdot \nabla \theta + \widetilde{w} \frac{\partial \theta}{\partial z} \right)
25\f]
26with
27\f[
28 \tilde{\vec{u}} = \vec{u}_{BC} + \overline{\vec{u}_{BT}}^{\Delta t}
29\f]
30\f[
31 \frac{\partial \widetilde{w}}{\partial z} = - \nabla \cdot \tilde{\vec{u}}
32\f]
33
34\section SSH_Estimates Two estimates of the free surface height
35
36The vertically discrete, temporally continuous layer continuity equations are:
37
38\f[
39 \frac{\partial h_k}{\partial t} = - \nabla \cdot (\vec{u} h_k) = - \nabla \cdot
40 \mathbf{F} (u_k, h_k)
41\f]
42
43The relationship between the free surface height and the layer thicknesses
44\f$h_k\f$ is:
45
46\f[
47 \eta = \sum_{k=1}^N h_k - D
48\f]
49
50We get an evolution equation for the free surface height:
51
52\f[
53 \frac{\partial \eta}{\partial t} = \sum_{k=1}^N \frac{\partial
54 h_k}{\partial t} = - \nabla \cdot \sum_{k=1}^N \mathbf{F} (u_k, h_k)
55\f]
56
57If the algorithms for the fluxes in the continuity equations are \em linear in
58the velocity, the free surface height can be rewritten as:
59
60\f[
61 \frac{\partial \eta}{\partial t} \&= - \nabla \cdot \sum_{k=1}^N \mathbf{F} (u_k, h_k)
62 = - \nabla \cdot \sum_{k=1}^N (\vec{u}_k h_k) \\
63 \&= - \nabla \cdot \left[ \sum_{k=1}^N h_k \frac{\sum_{k=1}^N (\vec{u}_k h_k)}
64 {\sum_{k=1}^M k_k} \right] \equiv - \nabla \cdot H \mathbf{U}
65\f]
66where
67
68\f[
69 \mathbf{U} \equiv \frac{\sum_{k=1}^N (\vec{u}_k h_k)} {\sum_{k=1}^M k_k}
70\f]
71\f[
72 H \equiv \sum_{k=1}^N h_k
73\f]
74However, ALE models like MOM6 require positive-definite, nonlinear continuity
75solvers (MOM6 uses \ref PPM). We need a different way to reconcile this
76estimate of free surface height with the one coming from the barotropic equations.
77After rejecting several other options, MOM6 is now using the scheme from
78\cite hallberg2009. The barotropic update of \f$\eta\f$ is given by:
79
80\f[
81 \frac{\eta^{n+1} - \eta^n}{\Delta t} + \nabla \cdot \left( \overline{UH} \right) = 0
82\f]
83
84Determine the \f$\Delta U\f$ such that:
85
86\f[
87 \sum_{k=1}^N \mathbf{F} (\tilde{u}_k, h_k) = \left( \overline{UH} \right)
88\f]
89where
90\f[
91 \tilde{u}_k = u_k + \Delta U
92\f]
93
94The layer timestep equation becomes:
95
96\f[
97 h_k^{n+1} = h_k^n - \Delta t \nabla \cdot \mathbf{F} (\tilde{u}_k, h_k)
98\f]
99
100This scheme has these properties:
101
102\li Total mass is conserved layer-wise.
103\li Layer equations retain their flux form.
104\li Total salt, heat, and other tracers are exactly conserved.
105\li Free surface heights exactly agree.
106\li Requires (very few) completely local iterations.
107\li The velocity corrections are barotropic, and more likely to correspond to the
108layers whose flow was deficient than in some older schemes.
109
110The solution is unique provided that:
111\f[
112 \frac{\partial}{\partial \tilde{u}_k} \mathbf{F}(\tilde{u}_k, h_k) > 0
113\f]
114This is a reasonable requirement for any discretization of the continuity
115equation. In the continuous limit, \f$\mathbf{F} (u,h) = uh\f$, so one
116interpretation is:
117\f[
118 \frac{\partial}{\partial \tilde{u}_k} \mathbf{F}(\tilde{u}_k, h_k) =
119 h_{k,\mbox{Marginal}}
120\f]
121With the PPM continuity scheme:
122\f[
123 F_{i+1/2} = \frac{1}{\Delta t} \int_{x_{i+1/2} - u \Delta t}^{x_{i+1/2}} h_i^n
124 (x) dx
125\f]
126leads to:
127\f[
128 \frac{\partial F_{i+1/2}}{\partial u_{i+1/2}} = h_i^n ( x_{i+1/2} - u_{i+1/2}
129 \Delta t ) \equiv h_{k, \mbox{Marginal}}
130\f]
131\f$h_i(x) > 0\f$ is already required for positive definiteness.
132
133Newton's method iterations quickly give \f$\Delta U\f$:
134\f[
135 \Delta U^{m+1} = \Delta U^m + \frac{\left( \overline{UH} \right) - \sum_{k=1}^N
136 F(u_k + \Delta U^m, h_k)}{\sum_{k=1}^N h_{k,\mbox{Marginal}}}
137\f]
138
139\subsection subsec_practical How practical is this iterative approach?
140
141The piecewise parabolic method continuity solver uses two steps:
142
143\li Set up the positive-definite subgridscale profiles, \f$h_{PPM}(x)\f$.
144
145\image html h_PPM.png "Piecewise parabolic reconstructions of \f$h(x)\f$."
146\imagelatex{h_PPM.png,Piecewise parabolic reconstructions of $h(x)$.,\includegraphics[width=\textwidth\,height=\textheight/2\,keepaspectratio=true]}
147
148\li Integrating the profiles to determine \f$F\f$. Step 1 is typically
149\f$\sim 3\f$ times as expensive as step 2. \f$F(u,h)\f$ is piecewise cubic in
150\f$u\f$, but often nearly linear. Newton's method iterations converge quickly:
151
152\image html Newton_PPM.png "Newton's method iterations for finding \f$\\Delta U\f$."
153\imagelatex{Newton_PPM.png,Newton's method iterations for finding $\Delta U$.,\includegraphics[width=\textwidth\,height=\textheight/2\,keepaspectratio=true]}
154
155In a global model the sea surface heights converge everywhere to a tolerance of
156\f$10^{-6}\f$ m within five iterations. These five iterations add \f$\sim 1.6\f$
157times more CPU time to the PPM continuity solver and the continuity solver is just
15812\% of the total model time.
159
160\subsection bottom_drag A note on bottom drag
161
162Barotropic accelerations do not lead to barotropic flows after a timestep when
163vertical viscosity is taken into account.
164
165\f[
166 u_k^{n+1} = u_k^n + \Delta t A_k + \Delta t \frac{\tau_{k-1/2} -
167 \tau_{k+1/2}}{h_k}
168\f]
169
170\f[
171 \tau_{1/2} = \tau_{Wind}
172\f]
173\f[
174 \tau_{k+1/2} = \nu_{k+1/2} \frac{u_k^{n+1} - u_{k+1}^{n+1}}{h_{k+1/2}}
175\f]
176\f[
177 \tau_{N+1/2} = \nu_{N+1/2} \frac{2 u_N^{n+1}}{h_{N+1/2}}
178\f]
179\f[
180 \gamma_k \equiv \frac{1}{\Delta t} \frac{\partial u_k^{n+1}}
181 {\overline{\partial A}}
182\f]
183
184A tridiagonal equation for \f$\gamma_k\f$ results, going from 0 for thin layers
185near the bottom to 1 far above the bottom.
186
187\f[
188 \gamma_1 = 1 + \frac{1}{h_1} \left[ - \frac{\nu_{3/2} \Delta t}{h_{3/2}}
189 (\gamma_1 - \gamma_2) \right]
190\f]
191\f[
192 \gamma_k = 1 + \frac{1}{h_k} \left[ \frac{\nu_{k-1/2} \Delta t}{h_{k-1/2}}
193 (\gamma_{k-1} - \gamma_k) - \frac{\nu_{k+1/2} \Delta t}{h_{k+1/2}}
194 (\gamma_k - \gamma_{k+1}) \right]
195\f]
196\f[
197 \gamma_N = 1 + \frac{1}{h_N} \left[ \frac{\nu_{N-1/2} \Delta t}{h_{N-1/2}}
198 (\gamma_{N-1} - \gamma_N) - \frac{2\nu_{N+1/2} \Delta t}{h_{N+1/2}}
199 \gamma_N \right]
200\f]
201
202In the continuous limit:
203
204\f[
205 \gamma(z) = 1 + \Delta t \frac{d}{dz} \left( \nu \frac{d \gamma}{dz} \right)
206\f]
207with boundary conditions:
208\f[
209 \frac{d \gamma}{dz} (0) = 0
210\f]
211\f[
212 \gamma(-D) = 0
213\f]
214
215For deep water and constant \f$\nu\f$, we get:
216\f[
217 \gamma (z) = 1 - \exp \left( - \sqrt{\nu \Delta t} (z + D) \right)
218\f]
219
220\image html bottom_drag.png "The continuous solution for barotropic flow plus a no-slip condition at the bottom."
221\image latex bottom_drag.png "The continuous solution for barotropic flow plus a no-slip condition at the bottom."
222
223We want a scheme in which the split model looks exactly like the unsplit
224model would if we had taken all those short 3D timesteps. Rather than
225applying a barotropic velocity, we use a barotropic acceleration and
226allow the continuity solver to determine the transports consistent with a
227no-slip bottom boundary layer and perhaps also a no-slip surface boundary
228layer under an ice shelf.
229
230From above, the barotropic equation is:
231
232\f[
233 \frac{\eta^{n+1} - \eta^n}{\Delta t} + \nabla \cdot \left( \overline{UH} \right) = 0
234\f]
235We need to determine the \f$\Delta \overline{A}\f$ such that:
236\f[
237 \sum_{k=1}^N \mathbf{F} (\tilde{u}_k, h_k) = \left( \overline{UH} \right)
238\f]
239where
240\f[
241 \tilde{u}_k = u_k + \gamma_k \Delta \overline{A} \Delta t
242\f]
243
244\section bt-bc_details Additional details about the split time stepping
245
246\li Transports are used as input and output to the barotropic solver. The continuity
247solver is inverted to determine velocities.
248
249\f[
250 \frac{\partial \eta}{\partial t} = \nabla \cdot \overline{U} + M
251\f]
252\f[
253 \overline{U} (\overline{u}) = \frac{1}{\Delta t} \int_0^{\overline{u} \Delta t}
254 H(x) dx
255\f]
256\f[
257 \overline{u}^n = \overline{U}^{-1} \left( \sum_{k=1}^N U_k^n \right)
258\f]
259\f[
260 u_k^{n+1} = \tilde{u}_k^{n+1} + \Delta \overline{u}
261\f]
262
263We need to find \f$\Delta \overline{u}\f$ such that:
264
265\f[
266 \sum_{k=1}^N U_k \left( \tilde{u}_k^{n+1} + \Delta \overline{u} \right) =
267 \overline{U}^{n+1}
268\f]
269
270\li Barotropic accelerations are treated as anomalies from the baroclinic state:
271
272\f[
273 \frac{\partial \overline{u}}{\partial t} \&= - f \hat{k} \times (\overline{u} -
274 \overline{u}_{Cor}) - \nabla \overline{g} (\eta - \eta_{PF}) - \\
275 \& \frac{c_D \left( ||u_{Bot}|| + ||u_{Shelf}|| \right)}{\sum_{k=1}^N h_k}
276 (\overline{u} - \overline{u}_{Drag}) + \frac{\sum_{k=1}^N h_k \frac{\partial
277 u_k}{\partial t}} {\sum_{k=1}^N h_k}
278\f]
279
280\li Bottom drag (and under ice surface-drag) is treated implicitly.
281\li The barotropic continuity solver uses flow-dependent thickness fits which
282approximate the sum of the layer thickness transports, to accommodate wetting and
283drying. An image of this is shown here:
284
285\image html bt_bc_thickness.png "The barotropic transports depend on the baroclinic flows and thicknesses."
286\image latex bt_bc_thickness.png "The barotropic transports depend on the baroclinic flows and thicknesses."
287
288\section time-split_summary Summary of MOM6 split time stepping
289
290\li We use an efficient approach for handling fast modes via simplified 2-d
291equations, while the 3-d baroclinic timestep is determined by baroclinic dynamics.
292
293\li The barotropic solver determines free surface height and time-averaged
294depth-integrated transports.
295
296\li By using anomalies, the MOM6 split solver gives identical answers to an
297equivalent unsplit scheme for short timesteps.
298
299\li This scheme has been demonstrated to work with wetting and drying, as well as
300under ice-shelves.
301
302\li The linear barotropic solver allows MOM6 to automatically set a stable
303barotropic timestep (e.g.\ to 98\% of maximum).
304
305*/