_Horizontal_diffusion.dox
1/*! \page Horizontal_Diffusion Horizontal Diffusion
2
3\brief Horizontal diffusion of tracers
4
5Lateral mixing due to mesoscale eddies is believed to occur according to this figure:
6
7\anchor eddy_flux
8\image html eddy_fluxes.png "Horizontal surface boundary layer fluxes and interior epineutral fluxes."
9\image latex eddy_fluxes.png "Horizontal surface boundary layer fluxes and interior epineutral fluxes."
10
11We start by describing an implementation of the mixing in the interior and then
12introduce a surface mixed layer implementation. A bottom mixed layer
13implementation is planned for the future.
14
15\section Epineutral_Diffusion Epineutral Diffusion
16
17For the interior of the ocean, we would like to have horizontal diffusion
18with the following properties:
19
20\li Suitable for general coordinate models
21\li Preserves extrema
22\li Has no need for regularization or tapering (such as needed by rotated mixing
23tensors)
24
25The algorithm used in MOM6 is described by \cite shao2019-in-review and will be
26introduced here. The aim is to allow lateral mixing of tracers within
27isopycnal layers. It is appropriate for the adiabatic interior of the ocean
28while a lateral mixing scheme for the surface boundary layer is described below.
29
30Before presenting this scheme, a quick review of polynomial
31reconstructions is in order. Some choices for the vertical representation
32of a finite volume quantity are shown here:
33
34\image html shao0.png "Polynomial reconstructions, starting with piecewise constant on the left, piecewise linear in the middle and piecewise parabolic on the right."
35\image latex shao0.png "Polynomial reconstructions, starting with piecewise constant on the left, piecewise linear in the middle and piecewise parabolic on the right."
36
37Some desired quantities for the polynomial reconstructions to be used are:
38
39\li Tracer concentrations represent the cell-averages in vertical
40discretization.
41\li Must be monotonic and introduce no new extrema.
42\li Discontinuous reconstructions are desirable to limit intracell slopes.
43
44The algorithm has three phases: initialization, sorting, and flux
45calculation.
46
47\subsection Epineutral_Initialization Initialization
48
49We begin by generating polynomial reconstructions of the vertical tracer
50quantities such as shown by the blue lines here:
51
52\image html shao1.png "Polynomial reconstructions of two adjacent water columns."
53\image latex shao1.png "Polynomial reconstructions of two adjacent water columns."
54
55Because we are looking to mix along epineutral surfaces, we will need to find
56surfaces of uniform density by using the temperature, salinity, and
57their effect on the density, \f$\alpha\f$ and \f$\beta\f$. The next step is
58to find the values of \f$\alpha\f$ and \f$\beta\f$ at the interfaces.
59
60Also during the initialization, the unstable parts of the water column are
61set aside to be skipped by this algorithm.
62
63\subsection Epineutral_Sorting Sorting
64
65The epineutral surfaces have constant density, where we use this equation:
66
67\f[
68 \Delta \rho = \rho_1 - \rho_2 = \frac{\alpha_1 + \alpha_2}{2} (T_1 -
69 T_2) + \frac{\beta_1 + \beta_2}{2} (S_1 - S_2)
70\f]
71
72When calculating \f$\alpha\f$ and \f$\beta\f$, there's more than one way to
73do it. Using a midpoint pressure gives neutral density while using a
74reference pressure gives isopycnal values.
75
76Given two adjacent water columns, we are going to be looking to match
77densities. The match does not need to be at the same level or even near each
78other in depth. Starting from the top two interfaces, search the column with
79the lighter surface water (second column) downward to find which layer
80contains water matching that of the first column at the surface:
81
82\image html shao2.png "Searching the column with the lighter surface for the water matching the other column's surface water."
83\image latex shao2.png "Searching the column with the lighter surface for the water matching the other column's surface water."
84
85If the surface density matches that of an interface, point to the interface.
86Otherwise, solve for the matching density along the polynomial
87reconstruction for that layer. There are again some choices:
88
89\li Use Newton's method to find the root with higher order polynomials.
90\li Assume \f$\alpha\f$ and \f$\beta\f$ vary linearly from top to bottom
91(cubic if \f$T\f$ and \f$S\f$ are parabolic).
92\li Equation of state is linear from top to bottom interface (parabolic of
93\f$T\f$ and \f$S\f$ are parabolic).
94\li \f$\Delta \rho\f$ is linear in the vertical.
95
96Once the location of the first column's surface density is found in the
97second column, one goes to the next interface below to find the bottom
98density of the water to be mixed. Then find that density within the
99first column. Iterate downward until no more matches are found. These pairs
100of surfaces make up what is known as a sublayer along which the diffusion
101can take place.
102
103\subsection Epineutral_Flux_Calculation Flux Calculation
104
105For each sublayer, the fluxes are based on the mean tracer quantities within
106that sublayer in each column. For a tracer \f$C\f$, compute the vertical
107average of that tracer within the sublayer to form \f$\overline{C}\f$. The
108flux can then be computed based on:
109
110\f[
111 F = K h_{\mbox{eff}} \frac{\overline{C_{j,k+1}} -
112 \overline{C_{j+1,k-1}} }{\Delta x} \Delta t
113\f]
114
115where the effective thickness of the sublayer is:
116
117\f[
118 h_{\mbox{eff}} = \frac{2 h_{j,n}^\gamma h_{j,n+1}^\gamma}{h_{j,n}^\gamma
119 + h_{j,n+1}^\gamma}
120\f]
121
122and as shown in this figure:
123
124\image html shao3.png "Diagram of sublayer thickness for the sublayer bounded by surfaces \f$\\gamma_n\f$ and \f$\\gamma_{n+1}\f$."
125\imagelatex{shao3.png,Diagram of sublayer thickness for the sublayer bounded by surfaces $\gamma_n$ and $\gamma_{n+1}$.,\includegraphics[width=\textwidth\,height=\textheight/2\,keepaspectratio=true]}
126
127\image html shao4.png "Flux of tracer \f$C\f$ along the sublayer."
128\imagelatex{shao4.png,Flux of tracer $C$ along the sublayer.,\includegraphics[width=\textwidth\,height=\textheight/2\,keepaspectratio=true]}
129
130When updating the tracer state, one needs to accumulate all the fluxes
131through each face as shown here:
132
133\image html shao5.png "Accumulate all the fluxes across a face from all the layers in the next column contributing to it."
134\image latex shao5.png "Accumulate all the fluxes across a face from all the layers in the next column contributing to it."
135
136\section Surface_Diffusion Surface Diffusion
137
138As shown in figure \ref eddy_flux of the eddy fluxes, the diffusion
139in the surface boundary layer is assumed to be purely horizontal. A bulk scheme
140was explored but found wanting, so a layer-by-layer approach has been implemented
141instead. It is this layer-by-layer code which is described here.
142
143For each water column, the boundary layer thickness is determined
144first. This can be either via the CVMIX boundary layer thickness or
145through some other means. Next, determine how many of the model layers are within
146this boundary layer thickness. It is common for neighboring cells to have
147differing numbers of layers within the surface boundary layer, such as
148shown here:
149
150\image html sbl1.png "Two cells within the surface mixed layer, red on the left, blue on the right. The mixed layer depth is shown in green."
151\image latex sbl1.png "Two cells within the surface mixed layer, red on the left, blue on the right. The mixed layer depth is shown in green."
152
153In this case, the cell on the left has four layers within the boundary layer while
154the cell on the right has just two. The layer-by-layer scheme computes fluxes for
155the first two layers, then has linearly reduced fluxes for the next two layers
156below as shown here:
157
158\image html sbl2.png "Two cells within the surface mixed layer with down-gradient fluxes as shown by the black arrows."
159\image latex sbl2.png "Two cells within the surface mixed layer with down-gradient fluxes as shown by the black arrows."
160
161In all cases, the tracer flux is always down-gradient.
162
163\f[
164 F(k) = K h_{\mbox{eff}(k)} \left[ \phi_L(k) - \phi_R(k)\right]
165\f]
166
167where the effective thickness of the layer \f$k\f$ is:
168
169\f[
170 h_{\mbox{eff}(k)} = \frac{2 h_{L}(k) h_{R}(k)} {h_{L}(k) + h_{R}(k)}
171\f]
172
173*/