next up previous contents
Next: 9. The pressure problem Up: book1 Previous: 7. Positive Advection Schemes   Contents

Subsections

8. Numerical diffusion terms

As in most numerical models, it is necessary to prevent the occurence of numerical waves due to the inaccurate representation of the dynamical processes and reflection at the top or lateral boundaries. This is done in a fairly classical way, through (i) a weak background diffusion, (ii) a top absorbing layer, and (iii) a lateral sponge zone. Note that in these three regions, the flow is relaxed towards the "large-scale" values, which may be non uniform in space, and time dependent. For idealized runs, the user may of course choose uniform and steady large-scale values.

8.1 Background diffusion

8.1.1 Diffusion operator

A diffusion operator is applied to the fluctuations of the prognostic variables $\phi$. The fluctuations are defined here as the departure from the large scale value $\phi_{LS}$. The diffusion operator is a fourth-order operator ($\delta_{x^4}$) used everywhere except at the first interior grid point where a second-operator ($\delta_{x^2}$) is substituted in the case of non-periodic boundary conditions. The background diffusion source for any prognostic variable noted $\phi$ is

\begin{displaymath}
S_{BD}=-K4 \big[ \delta_{x^4}[\phi(t-\delta t)- \phi_{LS}]+
\delta_{y^4}[\phi(t-\delta t)- \phi_{LS}]\big]
\end{displaymath}

or

\begin{displaymath}
S_{BD}=+K2 \big[ \delta_{x^2}[\phi(t-\delta t)- \phi_{LS}]+
\delta_{y^2}[\phi(t-\delta t)- \phi_{LS}]\big]
\end{displaymath}

where $K2$ and $K4$ are positive coefficients, and $\phi_{LS}$ represents the Large Scale value of the considered variable.

8.1.2 Choice of the diffusion coefficient

Let us consider a single harmonic wave defined by:

\begin{displaymath}\phi(x,t)=\Phi(t)e^{ikx}\end{displaymath}

where $\Phi(t)$ is the wave amplitude and $k$ the wavenumber.

The application of a second-order diffusion operator during $N$ time steps leads to:

\begin{displaymath}\phi(x,t+N \Delta t)=\Phi(t)[1- 2 {K_2 \Delta t \over {d_{xx}}^2}
(1- cos k d_{xx} )]^N\end{displaymath}

where $\Delta t$ is the time step, ${d_{xx}}^2$ the grid interval, and $K2=K_2/{d_{xx}}^2$ the diffusion coefficient. The time $T_2$ at which the initial wave is damped by $e^{-1}$ is then:

\begin{displaymath}T_2=N \Delta t= {-\Delta t \over \ln [1- 2{K_2 \Delta t \over {d_{xx}}^2}
(1-cos k d_{xx} )]}\end{displaymath}

which can be approximated by:

\begin{displaymath}T_2 \simeq {{d_{xx}}^2 \over 2 K_2 (1-cos k d_{xx})}\end{displaymath}

The corresponding time in the case of a fourth-order diffusion operator is given by:

\begin{displaymath}T_4=N \Delta t= {-\Delta t \over \ln [1 - 4{K_4 \Delta t \over {d_{xx}}^4}
(1-cos k d_{xx})^2]} \end{displaymath}

which can be approximated by:

\begin{displaymath}T_4 \simeq {{d_{xx}}^4 \over {4 K_4 (1-cos k d_{xx})^2}} \end{displaymath}

.

If $k$ is the wavenumber associated to the $n d_{xx}$ wavelength, $T_2$ and $T_4$ are given by

\begin{displaymath}
T_2 (n) \simeq {{d_{xx}}^2 \over {2 K_2 (1-cos (2 \pi /n))}}
\end{displaymath} (8.1)


\begin{displaymath}
T_4 (n) \simeq {{d_{xx}}^4 \over {4 K_4 (1-cos (2 \pi /n))^2}}
\end{displaymath} (8.2)

To set up the diffusion coefficients, it might be more convenient to specify $T_2$ or $T_4$ rather than $K_2$ or $K_4$. $T_2$ and $T_4$ can be more easily related to the physical processes being studied. From previous experience, $T_4(2)$ was set to 10-15 mn in the case of PBL convective rolls, 20-30 mn for moist convection, 1-2 hours for orographic flows.

For a specified wavelength $n_0 d_{xx}$, an equivalent damping timescale with a second-order or a fourth-order diffusion scheme requires

\begin{displaymath}
K_4= - {K_2 \over 2} {{d_{xx}}^2 \over 1-cos(2 \pi /{n_0}) }.
\end{displaymath} (8.3)

The same arguments hold for the diffusion in the $y$ direction.

In the code $n_0$ is set equal to 2 to select the highest wavenumber and so the user specifies $T_4(2)$. Noting that $K2= K_{2x}/{d_{xx}}^2= K_{2y}/{d_{yy}}^2$, $K4= K_{4x}/{d_{xx}}^4 = K_{4y}/{d_{yy}}^4$, and according to (1), (2) and (3) $K4$ and $K2$ are then given by:

\begin{displaymath}K4={1 \over 16T_{4}(2)}\end{displaymath}

and

\begin{displaymath}K2=K4 ( 1-cos(2 \pi /n_0))= 4K4\end{displaymath}

8.2 Top absorbing layer

To prevent spurious reflection from the model top boundary, an absorbing layer in which damping increases with height occupies the top fraction of the domain. A Rayleigh damping has been chosen, it is applied on the three components of the wind and on the thermodynamical variable. Only the perturbations of a variable from its local large scale values are damped on $\bar z$ surfaces. In the absorbing layer, the implicit damping source for any variable $\phi$ is written as:

\begin{displaymath}
S_{AL}=-K_{AL} (\bar z)\big[\phi(t+\Delta t)- \phi_{LS} \big]
=-KAL(\bar z) \big[\phi(t-\Delta t)- \phi_{LS} \big]\end{displaymath}

where

\begin{displaymath}KAL= {K_{AL}(\bar z) \over 1+2 \Delta t K_{AL}(\bar z)}\end{displaymath}

and where $K_{AL}(\bar z)$ is given by

\begin{displaymath}K_{AL}(\bar z)= K_{AL} (H) \sin ^2
\Big({\pi \over 2}
{ \bar...
...- \bar z_{alb}} \Big)
\qquad for \quad \bar z \geq \bar z_{alb}\end{displaymath}

with $ \bar z_{alb}$ the Gal-Chen and Sommerville height of the absorbing layer base and $\phi_{LS}$ the relaxation value of $\phi$. In the first version of the model the relaxation fields are the initial fields and the maximum damping rate $K_{AL} (H)$ must be provided for each model run.

8.3 Lateral sponge zone

An additional sponge zone is inserted close to the lateral boundaries to either damp outward propagating waves or slowly incorporate inward propagating larger scale waves. A first order damping rate has been retained and its application to any prognostic variable $\phi$ leads to a source term of the form:

\begin{displaymath}
S_{SZ}=-K_{SZ} (\bar x, \bar y)\big[\phi(t+\Delta t)- \phi_{...
...]
=-KSZ(\bar x, \bar y) \big[\phi(t-\Delta t)- \phi_{LS} \big]\end{displaymath}

where

\begin{displaymath}KSZ= {K_{SZ}(\bar x, \bar y) \over 1+2 \Delta t K_{SZ}(\bar x, \bar y)}.\end{displaymath}

The damping coefficient $KSZ(\bar x, \bar y)$ is non-zero in a rim zone of width ${rim}_{\bar x}$ and ${rim}_{\bar y}$ (in each $x$ and $y$ direction, respectively) following immediately the lateral boundaries. For example, near the left ($x$) lateral boundary, the damping coefficient has the generic form:

\begin{displaymath}
KSZ(\bar x) = \left\{ \begin{array}{ll}
K_{SZ}^{max} \sin^2 ...
...bar x}$,} \\
\\
0 & \mbox{otherwise,}
\end{array} \right.
\end{displaymath}

In the four corners of the domain of simulation, there is a smooth transition between the pure $\bar x$ and pure $\bar y$ dependencies of the damping coefficient $KSZ$ that is obtained in the following manner:

\begin{displaymath}
KSZ(\bar x, \bar y) = \left\{ \begin{array}{ll}
K_{SZ}^{max}...
... x}$ and $\bar y \ge {rim}_{\bar y}$} \\
\end{array} \right.
\end{displaymath}

where $d_{rim}= \sqrt{\Big( \displaystyle{{\bar x-{rim}_{\bar x} \over {rim}_{\bar x}}\Big)^2 +
\Big( {\bar y-{rim}_{\bar y} \over {rim}_{\bar y}}\Big)^2 }}$. The maximum value of the relaxation coefficient $K_{SZ}^{max}$ and the rim zone depths ${rim}_{\bar x}$ and ${rim}_{\bar y}$ are prescribed externally by the user.









next up previous contents
Next: 9. The pressure problem Up: book1 Previous: 7. Positive Advection Schemes   Contents
serveur WWW de Meso-NH
2002-01-08