- Linear Bottom Friction (nn_botfr = 0 or 1)
- Non-Linear Bottom Friction (nn_botfr = 2)
- Log-layer Bottom Friction enhancement (nn_botfr = 2, ln_loglayer = .true.)
- Bottom Friction stability considerations
- Implicit Bottom Friction (ln_bfrimpT)
- Bottom Friction with split-explicit time splitting (ln_bfrimpF)

Bottom and Top Friction (zdfbfr.F90 module)

!----------------------------------------------------------------------- &nambfr ! bottom friction !----------------------------------------------------------------------- nn_bfr = 1 ! type of bottom friction : = 0 : free slip, = 1 : linear friction ! = 2 : nonlinear friction rn_bfri1 = 4.e-4 ! bottom drag coefficient (linear case) rn_bfri2 = 1.e-3 ! bottom drag coefficient (non linear case). Minimum coeft if ln_loglayer=T rn_bfri2_max = 1.e-1 ! max. bottom drag coefficient (non linear case and ln_loglayer=T) rn_bfeb2 = 2.5e-3 ! bottom turbulent kinetic energy background (m2/s2) rn_bfrz0 = 3.e-3 ! bottom roughness [m] if ln_loglayer=T ln_bfr2d = .false. ! horizontal variation of the bottom friction coef (read a 2D mask file ) rn_bfrien = 50. ! local multiplying factor of bfr (ln_bfr2d=T) rn_tfri1 = 4.e-4 ! top drag coefficient (linear case) rn_tfri2 = 2.5e-3 ! top drag coefficient (non linear case). Minimum coeft if ln_loglayer=T rn_tfri2_max = 1.e-1 ! max. top drag coefficient (non linear case and ln_loglayer=T) rn_tfeb2 = 0.0 ! top turbulent kinetic energy background (m2/s2) rn_tfrz0 = 3.e-3 ! top roughness [m] if ln_loglayer=T ln_tfr2d = .false. ! horizontal variation of the top friction coef (read a 2D mask file ) rn_tfrien = 50. ! local multiplying factor of tfr (ln_tfr2d=T) ln_bfrimp = .true. ! implicit bottom friction (requires ln_zdfexp = .false. if true) ln_loglayer = .false. ! logarithmic formulation (non linear case) /

Options to define the top and bottom friction are defined through the nambfr namelist variables.
The bottom friction represents the friction generated by the bathymetry.
The top friction represents the friction generated by the ice shelf/ocean interface.
As the friction processes at the top and bottom are represented similarly, only the bottom friction is described in detail below.

Both the surface momentum flux (wind stress) and the bottom momentum flux (bottom friction) enter the equations as a condition on the vertical diffusive flux. For the bottom boundary layer, one has:

where is represents the downward flux of horizontal momentum outside the logarithmic turbulent boundary layer (thickness of the order of 1 m in the ocean). How influences the interior depends on the vertical resolution of the model near the bottom relative to the Ekman layer depth. For example, in order to obtain an Ekman layer depth m, one needs a vertical diffusion coefficient ms (for a Coriolis frequency ms). With a background diffusion coefficient ms, the Ekman layer depth is only 1.4 m. When the vertical mixing coefficient is this small, using a flux condition is equivalent to entering the viscous forces (either wind stress or bottom friction) as a body force over the depth of the top or bottom model layer. To illustrate this, consider the equation for at , the last ocean level:

If the bottom layer thickness is 200 m, the Ekman transport will be distributed over that depth. On the other hand, if the vertical resolution is high (1 m or less) and a turbulent closure model is used, the turbulent Ekman layer will be represented explicitly by the model. However, the logarithmic layer is never represented in current primitive equation model applications: it is necessary to parameterize the flux . Two choices are available in NEMO: a linear and a quadratic bottom friction. Note that in both cases, the rotation between the interior velocity and the bottom friction is neglected in the present release of NEMO.

In the code, the bottom friction is imposed by adding the trend due to the bottom friction to the general momentum trend in dynbfr.F90. For the time-split surface pressure gradient algorithm, the momentum trend due to the barotropic component needs to be handled separately. For this purpose it is convenient to compute and store coefficients which can be simply combined with bottom velocities and geometric values to provide the momentum trend due to bottom friction. These coefficients are computed in zdfbfr.F90 and generally take the form where:

where is the near-bottom, horizontal, ocean velocity.

Linear Bottom Friction (nn_botfr = 0 or 1)

The linear bottom friction parameterisation (including the special case of a free-slip condition) assumes that the bottom friction is proportional to the interior velocity (i.e. the velocity of the last model level):

where is a friction coefficient expressed in ms. This coefficient is generally estimated by setting a typical decay time in the deep ocean, and setting , where is the ocean depth. Commonly accepted values of are of the order of 100 to 200 days [Weatherly, 1984]. A value s equivalent to 115 days, is usually used in quasi-geostrophic models. One may consider the linear friction as an approximation of quadratic friction, (Gill [1982], Eq. 9.6.6). For example, with a drag coefficient , a typical speed of tidal currents of ms, and assuming an ocean depth m, the resulting friction coefficient is ms. This is the default value used in NEMO. It corresponds to a decay time scale of 115 days. It can be changed by specifying rn_bfri1 (namelist parameter).

For the linear friction case the coefficients defined in the general expression (10.29) are:

When nn_botfr=1, the value of used is rn_bfri1. Setting nn_botfr=0 is equivalent to setting and leads to a free-slip bottom boundary condition. These values are assigned in zdfbfr.F90. From v3.2 onwards there is support for local enhancement of these values via an externally defined 2D mask array (ln_bfr2d=true) given in the bfr_coef.nc input NetCDF file. The mask values should vary from 0 to 1. Locations with a non-zero mask value will have the friction coefficient increased by *rn_bfrien*rn_bfri1.

Non-Linear Bottom Friction (nn_botfr = 2)

The non-linear bottom friction parameterisation assumes that the bottom friction is quadratic:

where is a drag coefficient, and a bottom turbulent kinetic energy due to tides, internal waves breaking and other short time scale currents. A typical value of the drag coefficient is . As an example, the CME experiment [Tréguier, 1992] uses and ms, while the FRAM experiment [Killworth, 1992] uses and ms. The CME choices have been set as default values (rn_bfri2 and rn_bfeb2 namelist parameters).

As for the linear case, the bottom friction is imposed in the code by adding the trend due to the bottom friction to the general momentum trend in dynbfr.F90. For the non-linear friction case the terms computed in zdfbfr.F90 are:

The coefficients that control the strength of the non-linear bottom friction are initialised as namelist parameters: = rn_bfri2, and =rn_bfeb2. Note for applications which treat tides explicitly a low or even zero value of rn_bfeb2 is recommended. From v3.2 onwards a local enhancement of is possible via an externally defined 2D mask array (ln_bfr2d=true). This works in the same way as for the linear bottom friction case with non-zero masked locations increased by *rn_bfrien*rn_bfri2.

Log-layer Bottom Friction enhancement (nn_botfr = 2, ln_loglayer = .true.)

In the non-linear bottom friction case, the drag coefficient, , can be optionally enhanced using a "law of the wall" scaling. If ln_loglayer = .true., is no longer constant but is related to the thickness of the last wet layer in each column by:

(10.34) |

where is the von-Karman constant and rn_bfrz0 is a roughness length provided via the namelist.

For stability, the drag coefficient is bounded such that it is kept greater or equal to the base rn_bfri2 value and it is not allowed to exceed the value of an additional namelist parameter: rn_bfri2_max, i.e.:

(10.35) |

Note also that a log-layer enhancement can also be applied to the top boundary friction if under ice-shelf cavities are in use (ln_isfcav=.true.). In this case, the relevant namelist parameters are rn_tfrz0, rn_tfri2 and rn_tfri2_max.

Bottom Friction stability considerations

Some care needs to exercised over the choice of parameters to ensure that the implementation of bottom friction does not induce numerical instability. For the purposes of stability analysis, an approximation to (10.28) is:

where linear bottom friction and a leapfrog timestep have been assumed. To ensure that the bottom friction cannot reverse the direction of flow it is necessary to have:

(10.37) |

which, using (10.36), gives:

(10.38) |

This same inequality can also be derived in the non-linear bottom friction case if a velocity of 1 m.s is assumed. Alternatively, this criterion can be rearranged to suggest a minimum bottom box thickness to ensure stability:

(10.39) |

which it may be necessary to impose if partial steps are being used. For example, if m.s, s, then should be greater than 3.6 m. For most applications, with physically sensible parameters these restrictions should not be of concern. But caution may be necessary if attempts are made to locally enhance the bottom friction parameters. To ensure stability limits are imposed on the bottom friction coefficients both during initialisation and at each time step. Checks at initialisation are made in zdfbfr.F90 (assuming a 1 m.s velocity in the non-linear case). The number of breaches of the stability criterion are reported as well as the minimum and maximum values that have been set. The criterion is also checked at each time step, using the actual velocity, in dynbfr.F90. Values of the bottom friction coefficient are reduced as necessary to ensure stability; these changes are not reported.

Limits on the bottom friction coefficient are not imposed if the user has elected to handle the bottom friction implicitly (see §10.4.5). The number of potential breaches of the explicit stability criterion are still reported for information purposes.

Implicit Bottom Friction (ln_bfrimpT)

An optional implicit form of bottom friction has been implemented to improve model stability. We recommend this option for shelf sea and coastal ocean applications, especially for split-explicit time splitting. This option can be invoked by setting ln_bfrimp to true in the nambfr namelist. This option requires ln_zdfexp to be false in the namzdf namelist.

This implementation is realised in dynzdf_imp.F90 and dynspg_ts.F90. In dynzdf_imp.F90, the bottom boundary condition is implemented implicitly.

where is the layer number of the bottom wet layer. superscript means the velocity used in the friction formula is to be calculated, so, it is implicit.

If split-explicit time splitting is used, care must be taken to avoid the double counting of the bottom friction in the 2-D barotropic momentum equations. As NEMO only updates the barotropic pressure gradient and Coriolis' forcing terms in the 2-D barotropic calculation, we need to remove the bottom friction induced by these two terms which has been included in the 3-D momentum trend and update it with the latest value. On the other hand, the bottom friction contributed by the other terms (e.g. the advection term, viscosity term) has been included in the 3-D momentum equations and should not be added in the 2-D barotropic mode.

The implementation of the implicit bottom friction in dynspg_ts.F90 is done in two steps as the following:

where is the vertical integrated 3-D momentum trend. We assume the leap-frog time-stepping is used here. is the barotropic mode time step and is the baroclinic mode time step. is the friction coefficient. is the sea surface level calculated in the barotropic loops while is the sea surface level used in the 3-D baroclinic mode. is the bottom layer horizontal velocity.

Bottom Friction with split-explicit time splitting (ln_bfrimpF)

When calculating the momentum trend due to bottom friction in dynbfr.F90, the bottom velocity at the before time step is used. This velocity includes both the baroclinic and barotropic components which is appropriate when using either the explicit or filtered surface pressure gradient algorithms (key_ dynspg_exp or key_ dynspg_flt). Extra attention is required, however, when using split-explicit time stepping (key_ dynspg_ts). In this case the free surface equation is solved with a small time step rn_rdt/nn_baro, while the three dimensional prognostic variables are solved with the longer time step of rn_rdt seconds. The trend in the barotropic momentum due to bottom friction appropriate to this method is that given by the selected parameterisation ( linear or non-linear bottom friction) computed with the evolving velocities at each barotropic timestep.

In the case of non-linear bottom friction, we have elected to partially linearise the problem by keeping the coefficients fixed throughout the barotropic time-stepping to those computed in zdfbfr.F90 using the now timestep. This decision allows an efficient use of the coefficients to:

- On entry to dyn_spg_ts, remove the contribution of the before barotropic velocity to the bottom friction component of the vertically integrated momentum trend. Note the same stability check that is carried out on the bottom friction coefficient in dynbfr.F90 has to be applied here to ensure that the trend removed matches that which was added in dynbfr.F90.
- At each barotropic step, compute the contribution of the current barotropic velocity to the trend due to bottom friction. Add this contribution to the vertically integrated momentum trend. This contribution is handled implicitly which eliminates the need to impose a stability criteria on the values of the bottom friction coefficient within the barotropic loop.

Note that the use of an implicit formulation within the barotropic loop for the bottom friction trend means that any limiting of the bottom friction coefficient in dynbfr.F90 does not adversely affect the solution when using split-explicit time splitting. This is because the major contribution to bottom friction is likely to come from the barotropic component which uses the unrestricted value of the coefficient. However, if the limiting is thought to be having a major effect (a more likely prospect in coastal and shelf seas applications) then the fully implicit form of the bottom friction should be used (see §10.4.5 ) which can be selected by setting ln_bfrimp true.

Otherwise, the implicit formulation takes the form:

where is the barotropic velocity, is the full depth (including sea surface height), is the bottom friction coefficient as calculated in zdf_bfr and represents all the components to the vertically integrated momentum trend except for that due to bottom friction.

Gurvan Madec and the NEMO Team

NEMO European Consortium2017-02-17