| 1 | \chapter{3D Dynamical Code} |
|---|
| 2 | \label{sc:dynamic} |
|---|
| 3 | \section{Discretisation of the dynamical equations} |
|---|
| 4 | \index{The hydrodynamic code} |
|---|
| 5 | |
|---|
| 6 | % definitions pour les formules mathematiques |
|---|
| 7 | %\newcommand{\dep}[1]{\left( #1 \right) } |
|---|
| 8 | %\newcommand{\depb}[1]{\left[ #1 \right] } |
|---|
| 9 | %\newcommand{\depc}[1]{\left\{ #1 \right\} } |
|---|
| 10 | \newcommand{\deriv}[1]{\frac{\partial }{\partial #1} } |
|---|
| 11 | \def\abs#1{\left| #1 \right|} |
|---|
| 12 | \renewcommand{\-}[1]{$^{-#1}$} |
|---|
| 13 | |
|---|
| 14 | % definitions pour la dynamique |
|---|
| 15 | \newcommand{\dt}[1]{\frac{\partial #1}{\partial t}} |
|---|
| 16 | \newcommand{\dsig}[1]{\deriv{\sigma} \dep{#1} } |
|---|
| 17 | \newcommand{\diverg}[1]{\vec{\nabla}.\dep{#1 \vec{V}} } |
|---|
| 18 | %\newcommand{\der}[2]{\frac{\partial #1 }{\partial #2} } |
|---|
| 19 | \def\ps{p_s} |
|---|
| 20 | \def\t{\theta} |
|---|
| 21 | \def\w{\dot{\sigma}} |
|---|
| 22 | \def\cp{C_p} |
|---|
| 23 | \def\rcp{\kappa} |
|---|
| 24 | |
|---|
| 25 | % |
|---|
| 26 | % ATTENTION ne plait pas a latex2html (I don't know why) |
|---|
| 27 | % de toutes facons inutile |
|---|
| 28 | %\def\p0{p_0} |
|---|
| 29 | %\def\s{ {\dep{\frac{p}{\p0}}}^{\rcp} } |
|---|
| 30 | % |
|---|
| 31 | |
|---|
| 32 | \newcommand{\adv}[1]{\diverg{\ps #1} + \dsig{\ps #1 \dot{\sigma}} } |
|---|
| 33 | |
|---|
| 34 | \def\sc#1{Section~\ref{sc:#1}} |
|---|
| 35 | \def\an#1{Annexe~\ref{an:#1}} |
|---|
| 36 | \def\ch#1{Chapitre~\ref{ch:#1}} |
|---|
| 37 | \def\fig#1{Fig.~\ref{fg:#1}} |
|---|
| 38 | \def\figs#1{Figs.~\ref{fg:#1}} |
|---|
| 39 | \def\eq#1{Eq.~\ref{eq:#1}} |
|---|
| 40 | \def\eqs#1{Eqs.~\ref{eq:#1}} |
|---|
| 41 | \def\tb#1{Table~\ref{tb:#1}} |
|---|
| 42 | %\newcommand{\av}[2]{{\overline{#1}}^{ #2 }} |
|---|
| 43 | %\newcommand{\avg}[1]{\left< #1 \right>} |
|---|
| 44 | \def\cd{C_D} |
|---|
| 45 | \def\dx{\delta_X} |
|---|
| 46 | \def\dy{\delta_Y} |
|---|
| 47 | \def\dz{\delta_Z} |
|---|
| 48 | |
|---|
| 49 | \def\filtre{{\cal F}} |
|---|
| 50 | \def\uabs{\tilde{u}_{a}} |
|---|
| 51 | \def\err{\epsilon} |
|---|
| 52 | \def\dsig{\dz \sigma} |
|---|
| 53 | \def\psk{{\ps}^\kappa} |
|---|
| 54 | \def\ucov{\tilde{u}} |
|---|
| 55 | \def\vcov{\tilde{v}} |
|---|
| 56 | \def\ucont{\tilde{\ucov}} |
|---|
| 57 | \def\vcont{\tilde{\vcov}} |
|---|
| 58 | \def\cu{c_u} |
|---|
| 59 | \def\cv{c_v} |
|---|
| 60 | \def\h{\theta} |
|---|
| 61 | \def\pext{\tilde{p}_s} |
|---|
| 62 | \def\fext{f} |
|---|
| 63 | \def\K{\frac{1}{2} |
|---|
| 64 | \left( \av{\ucov \ucont}{X} + \av{\vcov \vcont}{Y} \right)} |
|---|
| 65 | \def\Z{\frac{\filtre\dep{\dx \vcov - \dy \ucov} + \fext}{\av{\pext}{X,Y}}} |
|---|
| 66 | \def\Zm{\frac{- \dy \ucov + \fext}{\av{\pext}{Y}}} |
|---|
| 67 | |
|---|
| 68 | \newcommand{\glob}[1]{ \left< #1 \right> } |
|---|
| 69 | |
|---|
| 70 | {\it Extrait de la note de Robert Sadourny, Phu Le Van et Fr\'ed\'eric |
|---|
| 71 | Hourdin, Laboratoire de M\protect\'et\protect{\'e}orologie Dynamique}.\\ |
|---|
| 72 | |
|---|
| 73 | [to be translated when I get the time...] |
|---|
| 74 | |
|---|
| 75 | Le mod\`ele climatique du LMD est b\^ati, comme tous les |
|---|
| 76 | mod\`eles de circulation g\'en\'erale atmosph\'erique, |
|---|
| 77 | sur la r\'esolution num\'erique des {\'equations primitives |
|---|
| 78 | de la m\'et\'eorologie} d\'ecrites dans de nombreux |
|---|
| 79 | ouvrages~\cite{Holt:79}. |
|---|
| 80 | L'analyse pr\'esent\'ee ici a \'et\'e men\'ee sur la nouvelle |
|---|
| 81 | version de la dynamique du LMD \'ecrite par Phu Le Van~\cite{LeVa:89} |
|---|
| 82 | sur une formulation de Robert Sadourny. |
|---|
| 83 | Cette formulation diff\`ere de l'ancienne essentiellement |
|---|
| 84 | par deux points: |
|---|
| 85 | dans la nouvelle formulation, la r\'epartition des points en |
|---|
| 86 | longitude et en latitude peut \^etre chang\'ee arbitrairement. |
|---|
| 87 | L'autre modification porte sur la r\'epartition des points |
|---|
| 88 | aux p\^oles\footnote{Aux p\^oles sont calcul\'es: |
|---|
| 89 | le vent m\'eridien dans l'ancienne formulation et les variables |
|---|
| 90 | scalaires dans la nouvelle.}. |
|---|
| 91 | |
|---|
| 92 | La coordonn\'ee verticale du mod\`ele est la pression normalis\'ee |
|---|
| 93 | par sa valeur \`a la surface: $\sigma=p/\ps$. |
|---|
| 94 | On utilise en fait $\sigma$ aux niveaux inter-couches |
|---|
| 95 | et $s=\sigma^\kappa$ au milieu des couches. |
|---|
| 96 | On note $X$ et $Y$ les coordonn\'ees horizontales: |
|---|
| 97 | |
|---|
| 98 | \begin{figure} |
|---|
| 99 | \begin{center} |
|---|
| 100 | \includegraphics[width=13cm]{Fig/glob.eps} |
|---|
| 101 | \includegraphics[width=10cm]{Fig/med.eps} |
|---|
| 102 | \caption{Grille obtenue avec 96 points en longitude et 73 en latitude et |
|---|
| 103 | un zoom d'un facteur 3 centr\'e sur la m\'edit\'erann\'ee (grille utilis\'ee au laboratoire par Ali Harzallah)\label{fg:zoom}}. |
|---|
| 104 | \end{center} |
|---|
| 105 | \end{figure} |
|---|
| 106 | |
|---|
| 107 | $X$ (resp. $Y$) est une fonction biunivoque de la longitude $\lambda$ |
|---|
| 108 | (resp. de la latitude $\phi$). Ces deux fonctions peuvent \^etre choisies |
|---|
| 109 | de fa\c{c}on arbitraire dans le mod\`ele LMDZ ce qui permet d'effectuer un |
|---|
| 110 | zoom sur une r\'egion du globe particuli\`ere. Une grille de ce type est montr\'ee |
|---|
| 111 | sur la Figure~\ref{fg:zoom}. |
|---|
| 112 | Les variables scalaires |
|---|
| 113 | (temp\'erature potentielle $\h = c_p T/\psk$, g\'eopotentiel $\Phi$ |
|---|
| 114 | et pression de surface $\ps$) sont \'evalu\'ees aux points |
|---|
| 115 | correspondant \`a des couples de valeurs enti\`eres $(X,Y)=(i,j)$. |
|---|
| 116 | Les variables dynamiques sont d\'ecal\'ees par rapport aux variables |
|---|
| 117 | scalaires en utilisant une grille $C$ dans la d\'efinition de |
|---|
| 118 | Arakawa~\cite{Arak:77}: le vent zonal est calcul\'e |
|---|
| 119 | aux points $(X,Y)=(i+1/2,j)$ et le vent |
|---|
| 120 | m\'eridien aux points $(X,Y)=(i,j+1/2)$. |
|---|
| 121 | La disposition des variables sur la grille est illustr\'ee sur la |
|---|
| 122 | Figure~\ref{fg:grille}. |
|---|
| 123 | |
|---|
| 124 | \begin{figure} |
|---|
| 125 | \centerline{\framebox{\includegraphics[width=0.6\textwidth]{Fig/grille.eps}}} |
|---|
| 126 | \caption{Disposition des variables dans la grille du LMD} |
|---|
| 127 | \label{fg:grille} |
|---|
| 128 | \end{figure} |
|---|
| 129 | |
|---|
| 130 | |
|---|
| 131 | On utilise en fait les composantes covariantes |
|---|
| 132 | ($\ucov$ et $\vcov$) et contravariantes ($\ucont$ et $\vcont$) |
|---|
| 133 | du vent d\'efinies par |
|---|
| 134 | \begin{equation} |
|---|
| 135 | \begin{array}{llllllllll} |
|---|
| 136 | \ucov = \cu u & \mbox{et} & \ucont = u / \cu & \mbox{avec} & |
|---|
| 137 | \cu = a \cos{\phi} \left( d\lambda/dX \right) \\ |
|---|
| 138 | \vcov = \cv v & \mbox{et} & \vcont = v / \cv & \mbox{avec} & |
|---|
| 139 | \cv = a \left( d\phi / dY \right) |
|---|
| 140 | \end{array} |
|---|
| 141 | \end{equation} |
|---|
| 142 | % |
|---|
| 143 | o\`u $u$ et $v$ sont les composantes physiques du vecteur vent |
|---|
| 144 | horizontal. |
|---|
| 145 | On introduit \'egalement: |
|---|
| 146 | % |
|---|
| 147 | \paragraph{la pression extensive:} |
|---|
| 148 | $\pext$ (pression au sol multipli\'ee |
|---|
| 149 | par l'aire de la maille). |
|---|
| 150 | % |
|---|
| 151 | \paragraph{les trois composantes du flux de masse:} |
|---|
| 152 | \begin{equation} |
|---|
| 153 | U=\av{\pext}{X} \ucont ,\ V= \av{\pext}{Y} \vcont \ \mbox{et} \ |
|---|
| 154 | W= \pext \dot{\sigma} |
|---|
| 155 | \ \mbox{avec}\ \dot{\sigma}=\frac{d\sigma}{dt} |
|---|
| 156 | \end{equation} |
|---|
| 157 | % |
|---|
| 158 | \paragraph{le facteur de Coriolis multipli\'e par l'aire de la maille:} |
|---|
| 159 | $\fext=2\Omega \sin{\phi} \cu \cv$\\ |
|---|
| 160 | o\`u $\Omega$ est la vitesse de rotation de la plan\`ete. |
|---|
| 161 | % |
|---|
| 162 | \paragraph{la vorticit\'e potentielle absolue:} |
|---|
| 163 | \begin{equation} |
|---|
| 164 | Z=\Z |
|---|
| 165 | \end{equation} |
|---|
| 166 | % |
|---|
| 167 | \paragraph{l'\'energie cin\'etique} |
|---|
| 168 | \begin{equation} |
|---|
| 169 | K=\K |
|---|
| 170 | \end{equation}\\ |
|---|
| 171 | % |
|---|
| 172 | La notation $\delta X$ signifie simplement qu'on |
|---|
| 173 | effectue la diff\'erence entre deux points cons\'ecutifs |
|---|
| 174 | suivant la direction $X$. |
|---|
| 175 | La notation $\av{a}{X}$ signifie qu'on prend la moyenne arithm\'etique |
|---|
| 176 | de la quantit\'e $a$ suivant la direction $X$. $\filtre$ est un filtre longitudinale appliqu\'e dans les r\'egions polaires. |
|---|
| 177 | Les \'equations discr\'etis\'ees sont \'ecrites sous la forme |
|---|
| 178 | suivante: |
|---|
| 179 | \paragraph{\'equations du mouvement:} |
|---|
| 180 | \begin{equation} \label{eq:u1} |
|---|
| 181 | \dt{\ucov} - |
|---|
| 182 | \av{Z}{Y} \av{V}{X,Y} |
|---|
| 183 | + \dx \filtre\dep{\Phi + K} |
|---|
| 184 | +s \av{\h}{X} \dx \filtre\dep{\psk} |
|---|
| 185 | - \frac{\av{\uabs}{Y,Y} \dz \av{W}{X} } |
|---|
| 186 | {\av{\pext}{X} \dsig } |
|---|
| 187 | + \frac{\dz \left( \av{W}{X} \av{\uabs}{Z} \right) } |
|---|
| 188 | {\av{\pext}{X} \dsig} |
|---|
| 189 | =S_{\ucov} |
|---|
| 190 | \end{equation} |
|---|
| 191 | o\'u $\uabs$ est la composante zonale covariante |
|---|
| 192 | du vecteur vent absolu: |
|---|
| 193 | $\uabs=\ucov+\cu a \Omega \cos{\phi}$ et |
|---|
| 194 | \begin{equation} \label{eq:v1} |
|---|
| 195 | \dt{\vcov} + \av{Z}{X} \av{U}{X,Y} + \dy \filtre\dep{\Phi + K} |
|---|
| 196 | +s \av{\h}{Y} \dy \filtre\dep{\psk} |
|---|
| 197 | - \frac{\av{\vcov}{X,X} \dz \av{W}{Y} } |
|---|
| 198 | {\av{\pext}{Y} \dsig} |
|---|
| 199 | + \frac{\dz \left( \av{W}{Y} \av{\vcov}{Z} \right) } |
|---|
| 200 | {\av{\pext}{X} \dsig} |
|---|
| 201 | =S_{\vcov} |
|---|
| 202 | \end{equation} |
|---|
| 203 | % |
|---|
| 204 | \paragraph{\'equation thermodynamique:} |
|---|
| 205 | % |
|---|
| 206 | \begin{equation} |
|---|
| 207 | \label{eq:thermo} |
|---|
| 208 | \dt{\dep{\pext \h}} |
|---|
| 209 | +\filtre\depb{\dx \dep{\av{\h}{X}U} +\dy \dep{\av{\h}{Y}V} } |
|---|
| 210 | +\frac{\dz \dep{\av{\h}{Z} W}}{\dz \sigma}=S_\h |
|---|
| 211 | \end{equation} |
|---|
| 212 | % |
|---|
| 213 | \paragraph{\'equation hydrostatique:} |
|---|
| 214 | \begin{equation} |
|---|
| 215 | \dz \Phi=-\ps^\rcp \av{\h}{z} \dz s |
|---|
| 216 | \end{equation} |
|---|
| 217 | % |
|---|
| 218 | \paragraph{\'equations de continuit\'e:} |
|---|
| 219 | % |
|---|
| 220 | \begin{equation} |
|---|
| 221 | \label{eq:cont1} |
|---|
| 222 | \dt{\ps} = \filtre\depb{\sum_z{\dz \sigma \dep{\dx U+ \dy V}}} |
|---|
| 223 | \end{equation} |
|---|
| 224 | \begin{equation} |
|---|
| 225 | \label{eq:cont2} |
|---|
| 226 | \dz W = -\dz \sigma \depb{\filtre\dep{\dx U+ \dy V} + \dt{\ps}} |
|---|
| 227 | \end{equation} |
|---|
| 228 | % |
|---|
| 229 | On a not\'e $S$ les termes sources dans les diff\'erentes \'equations. |
|---|
| 230 | Dans ces termes sources, on distingue 1) d'une part les param\'etrisations physiques mentionn\'ees plus haut et qui font intervenir pour une maille donn\'ee du mod\`ele, tous les points situ\'es sur une m\^eme verticale mais ceux-l\`a seulement; 2) les op\'erateurs de dissipation horizontale, cens\'es rendre compte des \'echanges entre \'echelles explicitement repr\'esent\'ees dans le mod\`ele et \'echelles sous-mailles. Ces op\'erateurs ont la structure de Laplaciens agissant sur des plans horizontaux c'est \`a dire qu'il font intervenir un voisin de chaque c\^ot\'e dans les deux directions horizontales. Cet op\'erateur est g\'en\'eralement it\'er\'e pour le rendre plus s\'electif en \'echelle (plus on it\`ere un laplacien et plus son effet sur les petites \'echelles devient important relativement). |
|---|
| 231 | |
|---|
| 232 | \section{High latitude filters} |
|---|
| 233 | |
|---|
| 234 | {\it Extract adapted from Forget et al. [1999]}\\ |
|---|
| 235 | |
|---|
| 236 | At high latitude a filter is applied near |
|---|
| 237 | the singularity in the grid at the pole |
|---|
| 238 | in order to satisfy the Courant-Friedrichs-Lewy numerical |
|---|
| 239 | stability criterion without going to an excessively |
|---|
| 240 | small timestep. In the original version of the dynamical code |
|---|
| 241 | a classical Fourier filter was used, but |
|---|
| 242 | we found that because the Martian polar |
|---|
| 243 | atmosphere appears to be much more dynamically unstable than the Earth's |
|---|
| 244 | polar atmosphere, a more efficient formulation (based on the |
|---|
| 245 | grouping of adjacent gridpoints together) was necessary |
|---|
| 246 | to avoid numerical instability. \\ |
|---|
| 247 | |
|---|
| 248 | {\it In practice the following technique is used in the subroutine called {\em groupeun.F} : |
|---|
| 249 | \begin{itemize} |
|---|
| 250 | \item The points are grouped in packets of $2^{\mbox{ngroup}}$ |
|---|
| 251 | at the poles(e.g. {\bf ngroup}=3 $\rightarrow$ packets of 8), |
|---|
| 252 | then $2^{\mbox{ngroup-1}}$, |
|---|
| 253 | $2^{\mbox{ngroup-2}}$, etc. in the lower latitudes moving away from the pole |
|---|
| 254 | |
|---|
| 255 | \item The higher {\bf ngroup} is, the more efficient the smoothing is, and the more stable the model. |
|---|
| 256 | |
|---|
| 257 | \item BUT, {\bf iim} must be divisible by $2^{\mbox{ngroup}}$ !!! |
|---|
| 258 | |
|---|
| 259 | |
|---|
| 260 | \end{itemize} |
|---|
| 261 | |
|---|
| 262 | } |
|---|
| 263 | |
|---|
| 264 | |
|---|
| 265 | \section{Dissipation} |
|---|
| 266 | |
|---|
| 267 | {\it Extract adapted from Forget et al. [1999]}\\ |
|---|
| 268 | |
|---|
| 269 | In the LMD grid point model, |
|---|
| 270 | nonlinear interactions between explicitly resolved scales |
|---|
| 271 | and subgrid-scale processes are |
|---|
| 272 | parameterized by applying a scale-selective horizontal |
|---|
| 273 | dissipation operator |
|---|
| 274 | based on an $n$ time iterated Laplacian $\Delta^{n}$. |
|---|
| 275 | For the grid point model, for instance, this can be written |
|---|
| 276 | ${\partial q}/{\partial t} = ([-1]^{n}/ {\tau_{\mbox{\scriptsize |
|---|
| 277 | diss}}}) |
|---|
| 278 | (\delta x)^{2n} \Delta^{n} q$ |
|---|
| 279 | where $\delta x$ is the smallest horizontal distance represented in the |
|---|
| 280 | model and $\tau_{\mbox{\scriptsize diss}}$ is the dissipation timescale |
|---|
| 281 | for a st |
|---|
| 282 | ructure of scale |
|---|
| 283 | $\delta x$. |
|---|
| 284 | These operators are necessary to ensure the grid point model |
|---|
| 285 | numerical stability. |
|---|
| 286 | In practice, the operator is |
|---|
| 287 | separately applied to (1)~potential temperature, (2)~the divergence of |
|---|
| 288 | the flow, |
|---|
| 289 | and (3)~its vorticity. |
|---|
| 290 | We respectively use $n=2$, $n=1$, and $n=2$ in the grid point model.\\ |
|---|
| 291 | |
|---|
| 292 | {\it Note: In practice, |
|---|
| 293 | values of $n$ and $\tau_{\mbox{\scriptsize diss}}$ |
|---|
| 294 | are adjustable and prescribed at the beginning of each run, in run definition file ``run.def'' (cf.~\ref{vb:run.def}) } |
|---|
| 295 | |
|---|
| 296 | \section{Sponge layer} |
|---|
| 297 | |
|---|
| 298 | {\it Extract adapted from Forget et al. [1999]}\\ |
|---|
| 299 | |
|---|
| 300 | In the upper levels a sponge layer is also used in both models |
|---|
| 301 | in an attempt to reduce |
|---|
| 302 | spurious reflections of vertically propagating waves from the model top. |
|---|
| 303 | Unlike the traditional Rayleigh friction formulation, |
|---|
| 304 | this operates as a linear drag |
|---|
| 305 | solely on the eddy components of the vorticity and divergence |
|---|
| 306 | fields and is not scale-selective. The timescales on which it operates |
|---|
| 307 | are |
|---|
| 308 | typically half a day, 1 day, and 2 days |
|---|
| 309 | at the three uppermost levels, respectively. \\ |
|---|
| 310 | |
|---|
| 311 | {\it Note: the sponge layer ``timescale'' values and their extensions in altitude |
|---|
| 312 | are adjustable and prescribed at the beginning of each run, in run definition file ``run.def'' (cf.~\ref{vb:run.def}) } |
|---|
| 313 | |
|---|
| 314 | |
|---|
| 315 | |
|---|
| 316 | |
|---|
| 317 | |
|---|
| 318 | |
|---|
| 319 | |
|---|