# 2.17.1. Linear advection schemes¶

The advection schemes known as centered second order, centered fourth order, first order upwind and upwind biased third order are known as linear advection schemes because the coefficient for interpolation of the advected tracer are linear and a function only of the flow, not the tracer field it self. We discuss these first since they are most commonly used in the field and most familiar.

## 2.17.1.1. Centered second order advection-diffusion¶

The basic discretization, centered second order, is the default. It is designed to be consistent with the continuity equation to facilitate conservation properties analogous to the continuum. However, centered second order advection is notoriously noisy and must be used in conjunction with some finite amount of diffusion to produce a sensible solution.

The advection operator is discretized:

where the area integrated fluxes are given by:

The quantities \(U\), \(V\) and \(W\) are volume fluxes. defined as:

For non-divergent flow, this discretization can be shown to conserve the tracer both locally and globally and to globally conserve tracer variance, \(\tau^2\). The proof is given in Adcroft (1995) [Adc95] and Adcroft et al. (1997) [AHM97] .

S/R GAD_C2_ADV_X

S/R GAD_C2_ADV_Y

S/R GAD_C2_ADV_R

## 2.17.1.2. Third order upwind bias advection¶

Upwind biased third order advection offers a relatively good compromise between accuracy and smoothness. It is not a “positive” scheme meaning false extrema are permitted but the amplitude of such are significantly reduced over the centered second order method.

The third order upwind fluxes are discretized:

At boundaries, \(\delta_{\hat{n}} \tau\) is set to zero allowing \(\delta_{nn}\) to be evaluated. We are currently examine the accuracy of this boundary condition and the effect on the solution.

S/R GAD_U3_ADV_X

S/R GAD_U3_ADV_Y

S/R GAD_U3_ADV_R

## 2.17.1.3. Centered fourth order advection¶

Centered fourth order advection is formally the most accurate scheme we have implemented and can be used to great effect in high resolution simulations where dynamical scales are well resolved. However, the scheme is noisy, like the centered second order method, and so must be used with some finite amount of diffusion. Bi-harmonic is recommended since it is more scale selective and less likely to diffuse away the well resolved gradient the fourth order scheme worked so hard to create.

The centered fourth order fluxes are discretized:

As for the third order scheme, the best discretization near boundaries is under investigation but currently \(\delta_i \tau=0\) on a boundary.

S/R GAD_C4_ADV_X

S/R GAD_C4_ADV_Y

S/R GAD_C4_ADV_R

## 2.17.1.4. First order upwind advection¶

Although the upwind scheme is the underlying scheme for the robust or non-linear methods given in Section 2.17.2, we haven’t actually implemented this method for general use. It would be very diffusive and it is unlikely that it could ever produce more useful results than the positive higher order schemes.

Upwind bias is introduced into many schemes using the *abs* function and
it allows the first order upwind flux to be written:

If for some reason the above method is desired, the second order flux limiter scheme described in Section 2.17.2.1 reduces to the above scheme if the limiter is set to zero.

# 2.17.2. Non-linear advection schemes¶

Non-linear advection schemes invoke non-linear interpolation and are widely used in computational fluid dynamics (non-linear does not refer to the non-linearity of the advection operator). The flux limited advection schemes belong to the class of finite volume methods which neatly ties into the spatial discretization of the model.

When employing the flux limited schemes, first order upwind or direct-space-time method, the time-stepping is switched to forward in time.

## 2.17.2.1. Second order flux limiters¶

The second order flux limiter method can be cast in several ways but is generally expressed in terms of other flux approximations. For example, in terms of a first order upwind flux and second order Lax-Wendroff flux, the limited flux is given as:

where \(\psi(r)\) is the limiter function,

is the upwind flux,

is the Lax-Wendroff flux and \(c = \frac{u \Delta t}{\Delta x}\) is the Courant (CFL) number.

The limiter function, \(\psi(r)\), takes the slope ratio

as its argument. There are many choices of limiter function but we only provide the Superbee limiter (Roe 1995 [Roe85]):

## 2.17.2.2. Third order direct space-time¶

The direct space-time method deals with space and time discretization together (other methods that treat space and time separately are known collectively as the “Method of Lines”). The Lax-Wendroff scheme falls into this category; it adds sufficient diffusion to a second order flux that the forward-in-time method is stable. The upwind biased third order DST scheme is:

where

The coefficients \(d_0\) and \(d_1\) approach \(1/3\) and \(1/6\) respectively as the Courant number, \(c\), vanishes. In this limit, the conventional third order upwind method is recovered. For finite Courant number, the deviations from the linear method are analogous to the diffusion added to centered second order advection in the Lax-Wendroff scheme.

The DST3 method described above must be used in a forward-in-time manner and is stable for \(0 \le |c| \le 1\). Although the scheme appears to be forward-in-time, it is in fact third order in time and the accuracy increases with the Courant number! For low Courant number, DST3 produces very similar results (indistinguishable in Figure 2.10) to the linear third order method but for large Courant number, where the linear upwind third order method is unstable, the scheme is extremely accurate (Figure 2.11) with only minor overshoots.

S/R GAD_DST3_ADV_X

S/R GAD_DST3_ADV_Y

S/R GAD_DST3_ADV_R

## 2.17.2.3. Third order direct space-time with flux limiting¶

The overshoots in the DST3 method can be controlled with a flux limiter. The limited flux is written:

where

and the limiter is the Sweby limiter:

S/R GAD_DST3FL_ADV_X

S/R GAD_DST3FL_ADV_Y

S/R GAD_DST3FL_ADV_R

## 2.17.2.4. Multi-dimensional advection¶

In many of the aforementioned advection schemes the behavior in multiple dimensions is not necessarily as good as the one dimensional behavior. For instance, a shape preserving monotonic scheme in one dimension can have severe shape distortion in two dimensions if the two components of horizontal fluxes are treated independently. There is a large body of literature on the subject dealing with this problem and among the fixes are operator and flux splitting methods, corner flux methods, and more. We have adopted a variant on the standard splitting methods that allows the flux calculations to be implemented as if in one dimension:

In order to incorporate this method into the general model algorithm, we compute the effective tendency rather than update the tracer so that other terms such as diffusion are using the \(n\) time-level and not the updated \(n+3/3\) quantities:

So that the over all time-stepping looks likes:

S/R GAD_ADVECTION

A schematic of multi-dimension time stepping for the cube sphere configuration is show in Figure 2.9 .

# 2.17.3. Comparison of advection schemes¶

Table 2.2 shows a summary of the different advection schemes available in MITgcm.
“AB” stands for Adams-Bashforth and “DST” for direct space-time. The code corresponds to the number used
to select the corresponding advection scheme in the parameter file (e.g., `tempAdvScheme=3`

in file
`data`

selects the 3rd order upwind advection scheme for temperature advection).

Advection Scheme | Code | Use AB? | Use multi-dim? | Stencil (1-D) | Comments |
---|---|---|---|---|---|

1st order upwind | 1 | no | yes^{*} |
3 | linear \(\tau\), non-linear \(\vec{v}\) |

centered 2nd order | 2 | yes | no | 3 | linear |

3rd order upwind | 3 | yes | no | 5 | linear \(\tau\) |

centered 4th order | 4 | yes | no | 5 | linear |

2nd order DST (Lax-Wendroff) | 20 | no | yes^{*} |
3 | linear \(\tau\), non-linear \(\vec{v}\) |

3rd order DST | 30 | no | yes^{*} |
5 | linear \(\tau\), non-linear \(\vec{v}\) |

2nd order flux limiters | 77 | no | yes^{*} |
5 | non-linear |

3rd order DST flux limiter | 33 | no | yes^{*} |
5 | non-linear |

piecewise parabolic w/“null” limiter | 40 | no | yes | 7 | non-linear |

piecewise parabolic w/“mono” limiter | 41 | no | yes | 7 | non-linear |

piecewise parabolic w/“weno” limiter | 42 | no | yes | 7 | non-linear |

piecewise quartic w/“null” limiter | 50 | no | yes | 9 | non-linear |

piecewise quartic w/“mono” limiter | 51 | no | yes | 9 | non-linear |

piecewise quartic w/“weno” limiter | 52 | no | yes | 9 | non-linear |

7th order one-step method w/monotonicity preserving limiter | 7 | no | yes | 9 | non-linear |

second order-moment Prather | 80 | no | yes | 3 | non-linear |

second order-moment Prather w/limiter | 81 | no | yes | 3 | non-linear |

yes^{*} indicates that either the multi-dim advection algorithm or standard approach can be utilized, controlled by a namelist parameter multiDimAdvection
(in these cases, given that these schemes was designed to use multi-dim advection, using the standard approach is not recommended).
The minimum size of the required tile overlap region (OLx, OLx)
is (stencil size -1)/2. The minimum overlap required by the model in general is 2,
so for some of the above choices the advection scheme will not cost anything in terms of an additional overlap requirement,
but especially given a small tile size, using scheme 7 for example would require costly additional overlap points
(note a cube sphere grid with a “wet-corner” requires doubling this overlap!)
In the ‘Comments’ column, \(\tau\) refers to tracer advection, \(\vec{v}\) momentum advection.

Shown in Figure 2.10 and Figure 2.11 is a 1-D comparison of advection schemes. Here we advect both a smooth hill and a hill with a more abrupt shock. Figure 2.10 shown the result for a weak flow (low Courant number) whereas Figure 2.11 shows the result for a stronger flow (high Courant number).

Figure 2.12, Figure 2.13 and Figure 2.14 show solutions to a simple diagonal advection problem using a selection of schemes for low, moderate and high Courant numbers, respectively. The top row shows the linear schemes, integrated with the Adams-Bashforth method. Theses schemes are clearly unstable for the high Courant number and weakly unstable for the moderate Courant number. The presence of false extrema is very apparent for all Courant numbers. The middle row shows solutions obtained with the unlimited but multi-dimensional schemes. These solutions also exhibit false extrema though the pattern now shows symmetry due to the multi-dimensional scheme. Also, the schemes are stable at high Courant number where the linear schemes weren’t. The bottom row (left and middle) shows the limited schemes and most obvious is the absence of false extrema. The accuracy and stability of the unlimited non-linear schemes is retained at high Courant number but at low Courant number the tendency is to lose amplitude in sharp peaks due to diffusion. The one dimensional tests shown in Figure 2.10 and Figure 2.11 show this phenomenon.

Finally, the bottom left and right panels use the same advection scheme but the right does not use the multi-dimensional method. At low Courant number this appears to not matter but for moderate Courant number severe distortion of the feature is apparent. Moreover, the stability of the multi-dimensional scheme is determined by the maximum Courant number applied of each dimension while the stability of the method of lines is determined by the sum. Hence, in the high Courant number plot, the scheme is unstable.

With many advection schemes implemented in the code two questions arise: “Which scheme is best?” and “Why don’t you just offer the best advection scheme?”. Unfortunately, no one advection scheme is “the best” for all particular applications and for new applications it is often a matter of trial to determine which is most suitable. Here are some guidelines but these are not the rule;

- If you have a coarsely resolved model, using a positive or upwind biased scheme will introduce significant diffusion to the solution and using a centered higher order scheme will introduce more noise. In this case, simplest may be best.
- If you have a high resolution model, using a higher order scheme will give a more accurate solution but scale-selective diffusion might need to be employed. The flux limited methods offer similar accuracy in this regime.
- If your solution has shocks or propagating fronts then a flux limited scheme is almost essential.
- If your time-step is limited by advection, the multi-dimensional non-linear schemes have the most stability (up to Courant number 1).
- If you need to know how much diffusion/dissipation has occurred you will have a lot of trouble figuring it out with a non-linear method.
- The presence of false extrema is non-physical and this alone is the strongest argument for using a positive scheme.