5.3 Numerical methods used in this study
5.3.2 Methods for solving the transport equation
5.3.2.1 Horizontal transport solver
The horizontal transport terms are approximated with the Van Leer-2 scheme (Van Leer, 1974). The Van Leer-2 scheme is a combination of a first order upwind scheme and a second order upwind scheme. The first order upwind scheme is applied in the case of a local minimum or maximum. Frommβs second order upwind scheme is used in case of a smooth numerical solution. The horizontal fluxes are calculated by (Deltares, 2014):
65 πΉπ,π,π = π’π,π,πβπ,π,πβπ¦ { ππ,π,π+ πΌ(1 β πΆπΉπΏπππ£βπ’)(ππ,π,πβ ππβ1,π,π) ππ+1,π,πβ ππ,π,π ππ+1,π,πβ ππβ1,π,π when π’π,π,π β₯ 0, ππ+1,π,π+ πΌ(1 + πΆπΉπΏπππ£βπ’)(ππ,π,πβ ππβ1,π,π) ππ+1,π,πβ ππ+2,π,π ππ,π,πβ ππ+2,π,π when π’π,π,π < 0, (5-7) with: πΆπΉπΏπππ£βπ’ =βπ‘|π’| βπ₯ (5-8) and: πΌ = { 0, |ππ+1,π,πβ 2ππ,π,π+ ππβ1,π,π
ππ+1,π,π β ππβ1,π,π | > 1, (local max.or min. ) ,
1, |ππ+1,π,πβ 2ππ,π,π+ ππβ1,π,π
ππ+1,π,π β ππβ1,π,π | β€ 1, (monotone).
(5-9)
5.3.2.2 Vertical transport solver
Vertical fluxes in Delft3D are discretized with a central scheme where time integration in the vertical is fully implicit which leads to a tri-diagonal system in the vertical (Deltares, 2014): (π€π)π,π,πβ (π€π)π,π,πβ1 = π€π,π,π(ππ,π,π+ ππ,π,π+1 2 ) β π€π,π,πβ1( ππ,π,π+ ππ,π,πβ1 2 ) (5-10) 5.3.2.3 Forester filter
Central differences in the horizontal and vertical directions may give rise to non- physical spurious oscillations in the solution resulting in negative concentrations. A filter
66
may be applied to dampen these numerical wiggles. In Delft3D, if concentration ππ,π,πis
negative, then the iterative filtering process in the x-direction is given by (Deltares, 2014):
ππ,π,ππ+1 = ππ,π,ππ +ππ+1,π,π
π + 2π
π,π,ππ + ππβ1,π,ππ
4 (5-11)
where p denotes the iteration number. A maximum of 100 iterations are performed, and a warning is generated if there is still a grid cell with negative concentration after 100 iterations.
Similarly, a filter may be applied to smooth the vertical density profile to smooth out local maximums and minimums whereby a local maximum satisfies:
ππ,π,π> max(ππ,π,π+1, ππ,π,πβ1) + 0.001 (5-12)
Whereas a local minimum satisfies:
ππ,π,π < min(ππ,π,π+1, ππ,π,πβ1) + 0.001 (5-13)
For example if salinity π π,π,π> π π,π,πβ1+ 0.001, then the vertical filter is applied such that:
π π,π,π = π π,π,πβ min (βπ§π, π§πβ1)(π π,π,πβ π π,π,πβ1) 2βπ§π
(5-14)
π π,π,πβ1= π π,π,πβ1+ min (βπ§π, π§πβ1)(π π,π,πβ π π,π,πβ1)
2βπ§πβ1 (5-15)
This filtering process is only applied to the salinity and temperature constituents in Delft3D (Deltares, 2014).
67
5.3.3 Turbulence closure
The Delft3D Z-level model code is limited to the use of the k-Ξ΅ method for turbulence closure. The production, buoyancy, and dissipation terms are assumed to be the
dominating terms and therefore the conservation of the turbulent quantities is less important and the transport equation is implemented in a non-conservative form.
The eddy viscosity is based on information from the previous half time step and the eddy viscosity and turbulent transport quantities, k and Ξ΅ are positioned at the layer interfaces in the center of the computational cell. In this way, the vertical gradients in the production term and buoyancy term are accurately discretized and the vertical boundary conditions at the bed and free surface may be implemented. Positive solutions are
provided by first order upwind differencing for advection (Uittenbogaard, van Kester, and Stelling, 1992).
5.3.3.1 The Ozmidov Length Scale
The k-Ξ΅ model is the only turbulence closure model currently available for the Delft3D Z-level model, however, the k-Ξ΅ turbulence model is incapable of reproducing the turbulence resulting from interfacial instabilities associated with strongly stratified flow. These instabilities are referred to as Kelvin-Helmholtz billows and Holmboe waves.
Therefore, in strongly stratified flows, the turbulent eddy viscosity at the interface reduces to zero and the vertical mixing reduces to molecular diffusion. In order to account for this shortcoming in the k-Ξ΅ turbulence model, the minimal eddy diffusivity, DV, may be
based on the Ozmidov length scale, LOZ (Deltares, 2014):
π·π = πππ₯ (π·3π·, 0.2πΏ2ππββπ
π ππ
ππ§) (5-16)
The Ozmidov scale represents the largest eddy size that can be supported by a given turbulent dissipation rate within a region of specified stratification:
68
πΏππ = (π πβ 3)12 (5-17)
Ξ΅ represents the rate of dissipation of turbulent kinetic energy. N is the BruntβVΓ€isΓ€lΓ€ buoyancy frequency or tendency of a fluid parcel to oscillate:
π = (βπ π0 ππ ππ§) 1 2 (5-18)
The condition for stable stratification exists when π2 > 0 and unstable stratification exists
when π2 < 0. The Ozmidov length scale parameter may be used as a calibration
adjustment to control the position of the leading edge of the saltwater wedge in numerical simulations.