Changeset 206
- Timestamp:
- Jul 11, 2011, 11:27:15 PM (13 years ago)
- Location:
- trunk/MESOSCALE/DOC/SRC
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/DOC/SRC/user_manual.tex
r194 r206 86 86 %\newpage 87 87 88 88 %\include{foreword} 89 %\include{whatis} 90 \include{installation} 89 91 \include{user_manual_txt} 90 92 -
trunk/MESOSCALE/DOC/SRC/user_manual_txt.tex
r168 r206 1 \chapter{What is the LMD Martian Mesoscale Model?} 2 3 \mk 4 \paragraph{Welcome !} The purpose of this introduction is to describe the Martian mesoscale model developed at the Laboratoire de M\'et\'eorologie Dynamique (LMD). This chapter comprises the excerpts from \textit{Spiga and Forget} [2009]\nocite{Spig:09} dedicated to the technical description of the LMD Martian Mesoscale Model. This serves as an introduction to the model, its design and capabilities. Further details can be found in the reference paper \textit{Spiga and Forget} [2009]\nocite{Spig:09} and subsequent papers about mesoscale applications: e.g., \textit{Spiga and Lewis} [2010]\nocite{Spig:10dust} and \textit{Spiga et al.} [2011]\nocite{Spig:11ti}. An introduction to Large-Eddy Simulations can be found in \textit{Spiga et al.} [2010]\nocite{Spig:10bl}. 5 6 \paragraph{Important} Please cite the reference paper \textit{Spiga and Forget} [2009]\nocite{Spig:09} if you'd like to refer to the LMD Martian Mesoscale Model in one of your publication. If your paper makes use of simulations carried out with the LMD Martian Mesoscale Model, please consider including A. Spiga as a co-author of your work (and asking for help with writing the part related to mesoscale modeling). If you have any idea of specific simulations and wonder if it is ever possible to perform those with the LMD Martian Mesoscale Model, please do not hesitate to ask. 7 8 \mk 9 \section{Dynamical core} 10 11 \sk 12 The numerical integration of the atmospheric fluid dynamic equations is performed in meteorological models by the dynamical core. The LMD Martian Mesoscale Model dynamical core is based on the stable and carefully tested, fully parallellized, Advanced Research Weather Research and Forecasting model (hereinafter referred as ARW-WRF) [\textit{Skamarock et al.}, 2005, 2008\nocite{Skam:08}\nocite{Skam:05}], developed for terrestrial applications at NCEP/NCAR (version 2.2.1 - November 2007). 13 14 \sk 15 The ARW-WRF mesoscale model integrates the fully compressible non-hydrostatic Navier-Stokes equations in a specific area of interest on the planet. Since the mesoscale models can be employed to resolve meteorological motions less than few kilometers, a scale at which the vertical wind acceleration might become comparable to the acceleration of gravity, hydrostatic balance cannot be assumed, as is usually done in GCMs. 16 17 \sk 18 Mass, momentum, entropy, and tracer conservation are ensured by an explicitly conservative flux-form formulation of the fundamental equations, based on mass-coupled meteorological variables (winds, potential temperature, tracers). Alternatively, these variables are recast into a reference profile plus a perturbation to reduce truncation errors [\textit{Skamarock et al.}, 2008]\nocite{Skam:08}. Tracer transport can be computed by an additional forward-in-time scheme based on the Piecewise Parabolic Method [\textit{Carpenter et al.}, 1990]\nocite{Carp:90}, with positive definite and monotonic properties 19 [\textit{Skamarock et al.}, 2006]\nocite{Skam:06}. 20 21 \sk 22 In the vertical dimension, the equations are projected, as suggested by \textit{Laprise} [1992]\nocite{Lapr:92}, on terrain-following mass-based coordinates (``eta levels"): $\eta = (\pi-\pi_t) / (\pi_s-\pi_t)$ where $\pi$ is the hydrostatic component of the pressure, $\pi_s$ the value at the surface and $\pi_t$ the (constant) upper boundary value. As shown in \textit{Laprise} [1992]\nocite{Lapr:92} and \textit{Janjic et al.} [2001]\nocite{Janj:01}, the choice of such vertical coordinates enables the integration of the ARW-WRF equations either in full non-hydrostatic mode or under the hydrostatic assumption. At the top of the domain, a free relaxation condition to zero vertical velocity is imposed (gravity wave absorbing layers can be defined as well). 23 24 \sk 25 In the horizontal dimension, the dynamical solver is available with three possible projections on the planetary sphere: Mercator (suitable for equatorial regions), Lambert Conformal (for mid-latitudes), and Polar Stereographic (for high-latitudes). Projections are defined by map scale factors, ensuring a regular computational grid whatever the map projection should be. Polar simulations are therefore devoid of any pole singularity, an usual drawback of the GCMs that requires the use of additional filtering. The spatial discretization is an Arakawa C-grid, where normal velocities are staggered one-half grid length from the thermodynamic variables [\textit{Arakawa}, 1966]\nocite{Arak:66}. 26 27 \sk 28 In the temporal dimension, a third-order Runge-Kutta integration scheme is employed for improved numerical accuracy and stability: the maximum stable Courant Friedrichs Lewy (CFL) numbers for advection are increased by a factor of two compared to the regular leapfrog integration scheme [\textit{Skamarock et al.}, 2008]. A time-splitting integration technique is implemented to prevent the meteorologically insignificant acoustic motions from triggering numerical instabilities [\textit{Klemp et al.}, 2007]\nocite{Klem:07}. Additional filters for acoustic external and internal modes damp residual instabilities possibly arising in the acoustic step integration. 29 30 \sk 31 In the ARW-WRF Runge-Kutta time-integration scheme, while pressure gradient and divergence terms are simply second order and centered, spatial discretizations of the advection terms for momentum, scalars and geopotential are 2nd through 6th order accurate [\textit{Wicker and Skamarock}, 2002]\nocite{Wick:02}. Martian simulations are performed with a 5th order discretized advection. One peculiarity of the odd-order advection discretization is the inherent inclusion of a dissipation term [\textit{Hundsdorfer et al.}, 1995]\nocite{Hund:95} with a coefficient proportional to the Courant number. 32 33 \sk 34 However, as was pointed out by \textit{Knievel et al.} [2007]\nocite{Knie:07}, this odd-ordered implicit scheme is not diffusive enough in low-wind or neutral/unstable stratification, and numerical noise in the wind fields might reach amplitudes comparable to the simulated winds. Such noise was found to be significant in the Martian case under near-surface afternoon superadiabatic conditions. The standard Martian simulations thus include the additional 6th order diffusion scheme developed by \textit{Knievel et al.}, with a removal parameter set for Martian applications to $20\%$ of the $2\,\Delta x$ noise in one timestep. While reducing the numerical noise near the surface to almost undiscernable amplitudes, the additional Knievel diffusion has little effect on the simulated meteorological fields. 35 36 \sk 37 Particular adaptations were required to use the ARW-WRF dynamical solver in the Martian environment. Physical constants, such as the acceleration of gravity and the planetary rotation rate, were converted to the Martian values. Vegetation and ocean-related variables were not used, and replaced with variables more suitable for the Martian applications (e.g., thermal inertia). Martian dates are given by the aerocentric solar longitude $L_s$, which indicates the position of Mars with respect to the Sun (0, 90, 180, 270 degrees are, respectively, the beginning of the northern hemisphere spring, summer, fall and winter). The terrestrial calendar was thus replaced with the LMD-GCM Martian calendar built on 669 Martian sols split in 12 ``aerocentric longitude"-based months (each of them is $L_s=30^{\circ}$ long, and thus encloses an irregular number of Martian sols due to the high eccentricity of the orbit), and one hour was defined as $1/24$ sol. 38 39 \mk 40 \section{Martian physics} 41 42 \sk 43 In any meteorological model, the 3D dynamical core is coupled with parameterization schemes (most often 1D) to compute at each grid point of the simulation domain the particular physics of the considered planetary environment: diabatic forcing of the atmospheric circulation (radiative transfer, soil thermal diffusion); sub-grid scale dynamical parameterizations (Planetary Boundary Layer [PBL] diffusion and mixing, convective adjustment); tracer sources and sinks (microphysical processes, chemistry, dust sedimentation and lifting). The LMD-MGCM complete physical parameterizations are interfaced with the adapted ARW-WRF dynamical core, described in the previous section, by a new ``driver" that is built on the same principles as the ARW-WRF terrestrial parameterization schemes, which are all switched off for the Martian applications. Thus, the LMD Martian Mesoscale Model shares the same comprehensive physical parameterizations as the LMD-MGCM, in order to simulate the Martian dust, CO$_2$, H$_2$O and photochemistry cycles [\textit{Forget et al.}, 1999; \textit{Montmessin et al.}, 2004; \textit{Lefevre et al.}, 2004]. 44 45 \sk 46 \subsection{Physical parameterizations} 47 48 \sk 49 The radiative transfer in the model accounts for CO$_2$ gas infrared absorption/emission [\textit{Hourdin et al.}, 1992]\nocite{Hour:92} and visible and infrared dust absorption, emission and diffusion [\textit{Forget et al.}, 1998, 1999]\nocite{Forg:98grl}. Description of the CO$_2$ condensation processes in the model can be found in \textit{Forget et al.} [1998b]\nocite{Forg:98}. Thermal conduction in the soil is simulated by the 11-layer soil model developed by \textit{Hourdin et al.} [1993]\nocite{Hour:93} for Mars (soil density and soil specific heat capacity are set as constants). Turbulent closure is based on turbulent viscosity with coefficients calculated from the ``$2.5$-order" scheme by \textit{Mellor and Yamada} [1982]\nocite{Mell:82}, improved by \textit{Galperin et al.} [1988]\nocite{Galp:88}. In the case where vertical mixing is handled in the independent 1D physical packages, the native vertical mixing schemes in the ARW-WRF dynamical core are switched off, and the most appropriate choice for explicit horizontal diffusion is the built-in ARW-WRF scheme based on horizontal deformation [\textit{Smagorinsky}, 1963]\nocite{Smag:63}. 50 51 \sk 52 Recent improvements on the radiative transfer computations [\textit{Dufresne et al.}, 2005]\nocite{Dufr:05}, on the slope irradiance estimations [\textit{Spiga and Forget}, 2008]\nocite{Spig:08grl}, on the dust lifting and sedimentation [\textit{Forget et al.}, 1999b\nocite{Forg:99icm5}; \textit{Newmann et al.}, 2002]\nocite{Newm:02a}, on the water cycle and water ice clouds [\textit{Montmessin et al.}, 2004]\nocite{Mont:04}, and on the photochemical species [\textit{Lefevre et al.}, 2004]\nocite{Lefe:04}, particularly ozone [\textit{Lefevre et al.}, 2008]\nocite{Lefe:08}, are also natively included in the LMD Martian Mesoscale Model. The non-local thermodynamic equilibrium (NLTE) parameterizations for thermosphere applications [\textit{Gonz\'alez-Galindo et al.}, 2005\nocite{Gonz:05}] as well as estimations of the atmospheric exchanges with the Martian regolith [\textit{B\"ottger et al.}, 2005]\nocite{Bott:05}, are also available in the model. 53 54 %\sk 55 %Upcoming improvements of the LMD-MGCM physics [\textit{Forget et al.}, 2007]\nocite{Forg:07emsec}, following the recent measurements by instruments onboard Mars Express (MEx) and MRO, will be included in the LMD Martian Mesoscale Model too. Examples of future parameterizations that will be added in both models are the radiative effects of water ice clouds, which could significantly modify the atmospheric temperatures [\textit{Wilson et al.}, 2007]\nocite{Wils:07}, and the new dust radiative properties derived from recent measurements by the OMEGA instrument onboard MEx [\textit{M\"a\"att\"anen et al.}, 2008]\nocite{Maat:08} and the CRISM instrument onboard MRO [\textit{M.~J. Wolff and M. Vincendon}, personal communication, 2008]. 56 57 \sk 58 Two physical parameterizations of the LMD-MGCM, specifically designed for synoptic-scale meteorological applications, are not used in the mesoscale applications. 59 60 \sk 61 Firstly, in the mesoscale domain, the topographical field is described with horizontal resolutions from tens of kilometers to hundreds of meters. The \textit{Lott and Miller} [1997]\nocite{Lott:97} subgrid-scale topographical drag parameterization and the \textit{Miller et al.} [1989]\nocite{Mill:89} gravity-wave drag scheme can thus be switched off, as the topographical influence on the atmospheric flow is computed by the dynamical core at the chosen mesoscale resolutions. 62 63 \sk 64 Secondly, in order to ensure numerical stability, and to account for subgrid-scale mixing processes insufficiently handled in the PBL scheme, it is usually necessary to modify any unstable layer with negative potential temperature gradients (an usual near-surface situation during Martian afternoons) into a neutral equivalent [\textit{Hourdin et al.}, 1993]. As pointed out by \textit{Rafkin} [2003b]\nocite{Rafk:03adj}, the use of such an artificial convective adjustment scheme might be questionable in Martian atmospheric models, should they be GCMs or mesoscale models. Since numerical stability is ensured in the LMD Martian Mesoscale Model by choosing the appropriate dynamical timestep with respect to the CFL condition, and using the aforementioned ARW-WRF nominal filters and diffusion schemes, the convective adjustment scheme used in the LMD-MGCM can thus be switched off in the LMD Martian Mesoscale Model. 65 66 \mk 67 \subsection{Physical timestep} 68 69 \sk 70 Invoking physical packages often with respect to the dynamical computations was found to be necessary to accurately account for near-surface friction effects where the wind acceleration is particularly high, typically in regions of strong Martian topographically-driven circulation. In such areas, if the ratio between the physical timestep and the dynamical timestep is above $\sim 5$, the model predicts winds spuriously increasing with the chosen ratio and varying with the horizontal resolution. On the contrary, if this ratio is less than $\sim 5$, the simulated winds neither vary significantly with the chosen ratio nor with the horizontal resolution. 71 72 \sk 73 A ratio equal to 1 is chosen in the standard LMD Martian Mesoscale Model simulations. This choice is in conformity with the strategy adopted in the terrestrial ARW-WRF model. Besides, computing the physical parameterizations at the same frequency as the dynamical integration is profitable to some physical parameterizations, such as the formation of clouds (which is sensitive to rapid temperature change). Note that radiative transfer computations are usually carried out less often to save computational time. 74 75 \sk 76 When the ratio between the physical timestep and the dynamical timestep is superior to 1, two distinct strategies could be adopted. Interestingly, we found that splitting the physical tendency in equal parts and blending it with the dynamical tendency at each dynamical timestep computation is slightly more stable (understand: allows for higher dynamical timesteps) than applying the whole physical tendency when the physical parameterizations are computed, and letting the dynamical core naturally evolve until the next physics call. However, an analysis of the simulated meteorological fields in both cases does not reveal significant differences. 77 78 \mk 79 \section{Initial and boundary conditions} 80 \label{ssc:inibdy} 81 82 \mk 83 \subsection{Starting state and horizontal boundaries} 84 85 \sk 86 Mesoscale simulations can be performed in a limited domain anywhere on the planet. Thus, boundary conditions for the main meteorological fields (horizontal winds, temperature, tracers) have to be provided during the simulations, in addition to an atmospheric starting state. Idealized simulations usually require the use of periodic, symmetric or open boundary conditions, whereas real-case simulations need specified climatologies at the boundaries. 87 88 \sk 89 The specified boundary conditions and the atmospheric starting state are derived from previously performed $64\times48\times25$ (i.e., horizontal resolution of $5.625^{\circ}$ in longitude and $3.75^{\circ}$ in latitude, model top $\sim$~80~km~altitude) LMD-MGCM simulations which have reached equilibrium, typically after $\sim 10$ simulated years. GCM results are often used every Martian hour to constrain the mesoscale model at the domain boundaries. Temporal interpolations to each mesoscale timestep and spatial interpolations on the mesoscale domain are performed from the LMD-MGCM inputs. A relaxation zone of a given width (user-defined, usually 5 grid points) is implemented at the boundaries of the ARW-WRF domain to enable both the influence of the large-scale fields on the limited area, and the development of the specific mesoscale circulation inside the domain. The interpolations and the use of a relaxation zone prevent the prescribed meteorological fields at the lateral boundaries from having sharp gradients and from triggering spurious waves or numerical instabilities (the situation where the relaxation zone crosses steep topographical gradients should however be avoided). 90 91 \mk 92 \subsection{Nesting or single-domain strategy ?} 93 \label{ssc:nestingvalid} 94 95 \sk 96 The model includes one-way and two-way (or ``feedback") nesting capabilities. The nested simulations feature two kinds of domains where the meteorological fields are computed: the "parent" domain, with a large geographical extent, a coarse grid resolution, and specified boundary conditions, and the "nested" domains, centered in a particular zone of interest, with a finer grid resolution, and boundary conditions provided by its parent domain. 97 98 \sk 99 The nesting capabilities can be used only if deemed necessary, and single-domain simulations may be the primary type of run performed. 100 101 \sk 102 Firstly, employing the same physical parameterizations in the mesoscale model computations and in the GCM simulations defining the boundary and initial conditions, ensures a very consistent meteorological forcing at the boundaries of the mesoscale domain. This assumption was not denied by further examination of the performed simulations: mesoscale predictions are not unrealistically departing from the LMD-MGCM prescribed fields at the boundaries, and the mesoscale influence naturally adds to the synoptic (large-scale) tendency communicated at the boundaries. 103 104 \sk 105 Secondly, the single-domain approach is appropriate as long as the variations of near-surface winds, pressure and temperature induced by ``passing" thermal tides through the east-west boundaries are not unrealistic. This criterion is specific to Martian mesoscale modeling and was described by \textit{Tyler et al.} [2002]. In the various simulations performed with the LMD Martian Mesoscale Model, a likely spurious influence of the passing thermal tides was only detected in the near-surface meteorological fields calculated at the $\sim 5$ near-boundaries grid points. The amplitudes of the departures were negligible ($\delta T \apprle 3$~K; $\delta u, \delta v \apprle 5\%$) and did not require the use of domains nested inside one semi-hemispheric parent domain [\textit{Tyler et al.}, 2002]. However, the analysis of the simulated fields at the near-boundaries grid points should be carried out with caution when choosing the single-domain approach. A practical solution to this drawback is to define a large domain, centered on the chosen area of interest, with a sufficient number of grid points ($75 \times 75$ being a minimal requirement). 106 107 \sk 108 Thirdly, \textit{Dimitrijevic and Laprise} [2005]\nocite{Dimi:05} showed, by the so-called ``Big Brother" approach, that the single-domain approach yields unbiased results when the boundary forcing involves a minimum of $\sim 8-10$ GCM grid points. Thus, given the resolution of the GCM fields used to constrain the LMD Martian Mesoscale Model, single-domain simulations with, for instance, a horizontal resolution of $20$~km shall be performed on at least $133 \times 88$ grid points. \textit{Antic et al.} [2006]\nocite{Anti:06} found that the ``$8-10$ grid points" limit can be lowered in situations of complex topography, because the dynamical influence of these mesoscale features is responsible for the larger part of the mesoscale circulation in the domain. Such situations are rather common on Mars, and the aforementioned ``minimal" grid can be of slightly smaller horizontal extent in areas such as Olympus Mons or Valles Marineris. 109 110 \sk 111 Thus the sizes of the simulation grids have to be chosen in order to ensure the applicability of the single-domain approach. The nesting technique is used only when defining a single domain with sufficient geographical extent would have required too many grid points to handle the computations within reasonable CPU time. For instance, with ``$64 \times 48$" GCM simulations as boundary conditions, the use of the single-domain strategy to model the Arsia Mons circulation at $5$ km resolution imposes a simulation grid of at least $531 \times 354$ points. The nesting technique is more suitable for this kind of simulation. 112 113 \mk 114 \subsection{Surface fields} 115 116 \sk 117 Surface static data intended for the mesoscale domain are extracted from maps derived from recent spacecraft measurements: 64 pixel-per-degree (ppd) MOLA topography [\textit{Smith et al.}, 2001]\nocite{Smit:01mola}, 8 ppd MGS/Thermal Emission Spectrometer (TES) albedo [\textit{Christensen et al.}, 2001]\nocite{Chri:01}, 20 ppd TES thermal inertia [\textit{Putzig and Mellon}, 2007]\nocite{Putz:07}. A smoother composite thermal inertia map derived from \textit{Palluconi and Kieffer} [1981]\nocite{Pall:81}, \textit{Mellon et al.} [2000]\nocite{Mell:00} and \textit{Vasavada et al.} [2000]\nocite{Vasa:00} can be alternatively used for better continuity with LMD-MGCM simulations. Except for CO$_2$ ice covered areas, emissivity is set to $0.95$. The roughness length $z_0$ is set to the constant value of $1$~cm, but further versions of the model will use spatially-varying $z_0$ [\textit{H\'ebrard et al.}, 2007]\nocite{Hebr:07}. Initial values for time-varying surface data, such as CO$_2$ and H$_2$O ice on the surface and soil temperatures, are derived from the GCM simulations. The latter initialization reduces the spin-up time for surface temperature to roughly one simulated sol. 118 119 \sk 120 The LMD Martian Mesoscale Model has the complete ability to simulate the dust cycle (lifting, sedimentation, transport). However, the high sensivity of the results to the assumptions made on threshold wind stress and injection rate [\textit{Basu et al.}, 2004]\nocite{Basu:04} leads us to postpone these issues to future studies. Instead, similarly to the reference LMD-MGCM simulations, dust opacities are prescribed in the mesoscale model from 1999-2001 TES measurements, thought to be representative of Martian atmospheric conditions outside of planet-encircling dust storm events [\textit{Montabone et al.}, 2006]\nocite{Mont:06luca}. In the vertical dimension, as described in \textit{Forget et al.} [1999], and in accordance with the general consensus of well-mixed dust in equilibrium with sedimentation and mixing processes [\textit{Conrath}, 1975]\nocite{Conr:75}, dust mixing ratio is kept constant from the surface up to a given elevation $z_{\textrm{\tiny{max}}}$ above which it rapidly declines. Both in the nominal GCM and mesoscale simulations, $z_{\textrm{\tiny{max}}}$ as a function of areocentric longitude and latitude is calculated from the ``MGS scenario" [\textit{Forget et al.}, 2003]\nocite{Forg:03}. 121 122 \mk 123 \subsection{Vertical interpolation} 124 125 \sk 126 In the process of initialization and definition of boundary conditions, the vertical interpolation of GCM meteorological fields to the terrain-following mesoscale levels must be treated with caution. While deriving the near-surface meteorological fields from GCM inputs, one may address the problem of underlying topographical structures at fine mesoscale horizontal resolution, e.g., a deep crater that is not resolved in the coarse GCM case. 127 128 \sk 129 A crude extrapolation of the near-surface GCM fields to the mesoscale levels is usually acceptable for terrestrial applications. On Mars, owing to the low density and heat capacity of the Martian atmosphere, the surface temperature is to first order controlled by radiative equilibrium, and thus it is left relatively unaffected by variations of topography [e.g. \textit{Nayvelt et al.}, 1997]\nocite{Nayv:97}. A practical consequence, which renders an extrapolation strategy particularly wrong on Mars, is that the near-surface temperature and wind fields vary much more with the distance from the surface than with the absolute altitude above the areoid (or equivalently with the pressure level). Initial tests carried out with the extrapolation strategy showed that differences between temperatures at the boundaries and temperatures computed within the mesoscale domain close to these boundaries often reach $20-30$~K near the surface. An interpolation based only on terrain-following principles solves this problem near the surface but was found to lead to numerical instabilities at higher altitudes during the mesoscale integrations. 130 131 \sk 132 Therefore, input meteorological data need to be recast on intermediate pressure levels $P'$ with a low level smooth transition from terrain-following levels (for the near-surface environment) to constant pressure levels (for the free atmosphere at higher altitude). We thus have $P'(x,y)=\alpha + \beta \, P_s(x,y)$, $P_s$ being the surface pressure at the resolution of the GCM simulations. To ensure a realistic low-level transition, the technique described in \textit{Millour et al.} [2008]\nocite{Mill:08ddd}, based on high-resolution GCM results, is employed to calculate the $P'$ levels. The mesoscale surface pressure field $p_s$ is an input parameter of the method, since the near-surface adiabatic cooling over mountains and warming within craters are taken into account. Note that $p_s(x,y)$ is calculated from $P_s(x,y)$ on the basis of the high-resolution topography of the mesoscale domain $z(x,y)$ by $$p_s(x,y) = P_s(x,y) \, e^{ \frac{g \, [Z(x,y)-z(x,y)]}{R \, T(x,y)} }$$ \noindent where $Z(x,y)$ is the topography at the resolution of the GCM simulations, $R$ the gas law constant, $g$ the acceleration of gravity, and $T(x,y)$ the temperature predicted by the GCM $1$~km above the surface (see \textit{Spiga et al.} [2007]\nocite{Spig:07omeg}). Without reinterpolating the data, the intermediate pressure $P'$ levels are then simply converted into their mesoscale counterparts $p'$ by substituting $p_s$ for $P_s$ in the formula $P'(x,y)=\alpha + \beta \, P_s(x,y)$. Finally, the built-in ARW-WRF vertical interpolation onto the final mesoscale terrain-following levels can be performed, as the problem of extrapolation is solved by the use of the intermediate pressure levels $p'$. 133 134 \sk 135 The initial atmospheric state obtained through this ``hybrid" method ensures low-amplitude adjustments of the meteorological fields by the mesoscale model at the beginning of the performed simulations (i.e., in the first thousands of seconds). Furthermore, the continuity between the large-scale forcing and the mesoscale computations near the limits of the domain, as well as the numerical stability of the simulations, appear as significantly improved compared to methods either based on extrapolation (especially in areas of uneven terrains) or terrain-following interpolation. 136 137 %\pagebreak 138 \includepdf[pages=1,offset=25mm -20mm]{meso.pdf} 139 \clearemptydoublepage 140 141 \chapter{First steps toward running the model} 142 143 \mk 144 This chapter is meant for first time users of the LMD Martian Mesoscale Model. 145 % 146 We describe how to install the model on your system, compile the program and run a test case. 147 % 148 Experience with either the terrestrial WRF mesoscale model or the LMD Martian GCM is not absolutely required, 149 although it would help you getting more easily through the installation process. 150 151 \mk 152 \section{Prerequisites} 153 154 \mk 155 \subsection{General requirements} 156 157 \mk 158 In order to install the LMD Martian Mesoscale Model, please ensure that: 159 \begin{citemize} 160 \item your computer is connected to the internet; 161 \item your OS is Linux\footnote{ 162 %%%%%%%%%%%%%% 163 The model was also successfully compiled on MacOSX; 164 ``howto" information is available upon request. 165 %%%%%%%%%%%%%% 166 } with a decent set of basic commmands (\ttt{sed}, \ttt{awk}, \ldots); 167 \item your Fortran compiler is the PGI commercial compiler \ttt{pgf90} or the GNU 168 free compiler\footnote{ 169 %%%%%%%%%%%%%% 170 Sources and binaries available on \url{http://www.g95.org} 171 %%%%%%%%%%%%%% 172 } \ttt{g95}; 173 \item your C compiler is \ttt{gcc} and C development libraries are included; 174 \item \ttt{bash}, \ttt{m4} and \ttt{perl} are installed on your computer; 175 \item \ttt{NETCDF} libraries have been compiled \emph{on your system}. 176 \end{citemize} 177 % 178 \begin{finger} 179 \item You might also find useful -- though not mandatory -- to install on your system: 180 \begin{citemize} 181 \item the \ttt{ncview} utility\footnote{ 182 %%%%%% 183 \url{http://meteora.ucsd.edu/~pierce/ncview\_home\_page.html} 184 %%%%%% 185 }, which is a nice tool to visualize the contents of a NETCDF file; 186 \item the \ttt{IDL} demo version\footnote{ 187 %%%%%% 188 \url{http://www.ittvis.com/ProductServices/IDL.aspx} 189 %%%%%% 190 }, which is used by the plot utilities provided with the model. 191 \end{citemize} 192 \end{finger} 193 194 \mk 195 \marge Three environment variables associated with the \ttt{NETCDF} libraries must be defined: 196 \begin{verbatim} 197 declare -x NETCDF=/disk/user/netcdf 198 declare -x NCDFLIB=$NETCDF/lib 199 declare -x NCDFINC=$NETCDF/inc 200 \end{verbatim} 201 202 \begin{finger} 203 \item All command lines in the document are proposed in \ttt{bash}. 204 \end{finger} 205 206 %%[csh] setenv NETCDF /disk/user/netcdf 207 %%[csh] setenv NCDFLIB $NETCDF/lib 208 %%[csh] setenv NCDFINC $NETCDF/inc 209 210 \mk 211 \marge You also need the environment variable \ttt{\$LMDMOD} to point 212 at the directory where you will install the model (e.g. \ttt{/disk/user/MODELS}): 213 \begin{verbatim} 214 declare -x LMDMOD=/disk/user/MODELS 215 \end{verbatim} 216 %[csh] setenv LMDMOD /disk/user/MODELS 217 % 218 \begin{finger} 219 \item Please check that $\sim 200$~Mo free disk space is available in \ttt{/disk}. 220 \end{finger} 221 222 \mk 223 \subsection{Parallel computations} 224 225 \mk 226 \marge Parallel computations with the Message Passing Interface (MPI) standard are supported by 227 the ARW-WRF mesoscale model. 228 % 229 If you want to use this capability in the LMD Martian Mesoscale Model, 230 you would have the installation of MPICH2 as a additional prerequisite. 231 232 \mk 233 \marge Please download the current stable version of the sources 234 (e.g. \ttt{mpich2-1.0.8.tar.gz}) on the MPICH2 website 235 \url{http://www.mcs.anl.gov/research/projects/mpich2} 236 and install the MPICH2 utilities by the following commands: 237 % 238 \begin{verbatim} 239 mkdir $LMDMOD/MPI 240 mv mpich2-1.0.8.tar.gz $LMDMOD/MPI 241 cd $LMDMOD/MPI 242 tar xzvf mpich2-1.0.8.tar.gz 243 cd mpich2-1.0.8 244 ./configure --prefix=$PWD --with-device=ch3:nemesis > conf.log 2> conferr.log & 245 # please wait... 246 make > mk.log 2> mkerr.log & 247 declare -x WHERE_MPI=$LMDMOD/MPI/mpich2-1.0.8/bin 248 \end{verbatim} 249 % 250 \begin{finger} 251 \item Even if you add the \ttt{\$LMDMOD/MPI/mpich2-1.0.8/bin} 252 directory to your \ttt{\$PATH} variable, defining the environment 253 variable \ttt{\$WHERE\_MPI} is still required 254 to ensure a successful compilation of the model. 255 \end{finger} 256 257 \mk 258 \subsection{Compiling the terrestrial WRF model} 259 260 \mk 261 The LMD Martian Mesoscale Model is based on the terrestrial NCEP/NCAR ARW-WRF Mesoscale Model. 262 % 263 As a first step towards the compilation of the Martian version, we advise you to check that the terrestrial 264 model compiles on your computer with either \ttt{g95} or \ttt{pgf90}. 265 266 \mk 267 \marge On the ARW-WRF website \url{http://www.mmm.ucar.edu/wrf/users/download/get\_source.html}, you will be allowed 268 to freely download the model after a quick registration process (click on ``New users"). 269 % 270 Make sure to download the version 2.2 of the WRF model and copy the 271 \ttt{WRFV2.2.TAR.gz} archive to the \ttt{\$LMDMOD} folder. 272 273 \mk 274 \marge Then please extract the model sources and configure the compilation process: 275 \begin{verbatim} 276 cd $LMDMOD 277 tar xzvf WRFV2.2.TAR.gz 278 cd WRFV2 279 ./configure 280 \end{verbatim} 281 282 \mk 283 \marge The \ttt{configure} script analyzes your architecture 284 and proposes you several possible compilation options. 285 % 286 Make sure to choose the ``single-threaded, no nesting" 287 option related to either \ttt{g95} (should be option $13$ on a $32$~bits Linux PC) 288 or \ttt{pgf90} (should be option $1$ on a $32$~bits Linux PC). 289 290 \mk 291 \marge The next step is to compile the WRF model by choosing the kind of 292 simulations you would like to run. 293 % 294 A simple and direct test consists in trying to compile 295 the idealized case of a 2D flow impinging on a small hill: 296 \begin{verbatim} 297 ./compile em_hill2d_x > log_compile 2> log_error & 298 \end{verbatim} 299 % 300 \begin{finger} 301 \item In case you encounter problems compiling the ARW-WRF model, 302 please read documentation on the website 303 \url{http://www.mmm.ucar.edu/wrf/users}, 304 contact the WRF helpdesk or search the web for your error message. 305 \end{finger}%\pagebreak 306 307 \mk 308 \marge If the compilation was successful 309 (the file \ttt{log\_error} should be empty 310 or only reporting few warnings), you should find 311 in the \ttt{main} folder two executables 312 \ttt{ideal.exe} and \ttt{run.exe} 313 that would allow you to run the test 314 simulation: 315 \begin{verbatim} 316 cd test/em_hill2d_x 317 ./ideal.exe 318 ./wrf.exe 319 \end{verbatim} 320 % 321 During the simulation, the time taken by the computer 322 to perform integrations at each dynamical timestep 323 is displayed in the standard output. 324 % 325 The simulation should end with a message \ttt{SUCCESS COMPLETE WRF}. 326 % 327 The model results are stored in a \ttt{wrfout} data file 328 you might like to browse with a \ttt{NETCDF}-compliant software 329 such as \ttt{ncview}. 330 % 331 \begin{finger} 332 \item If you compiled the model with \ttt{g95}, \ttt{ideal.exe} will 333 probably complain about an error reading the namelist. 334 % 335 Please move the line \ttt{non\_hydrostatic} below the line \ttt{v\_sca\_adv\_order} 336 in the \ttt{namelist.input} file to solve the problem. 337 \end{finger} 338 339 \mk 340 \section{Compiling the Martian model} 341 342 \mk 343 \subsection{Extracting and preparing the sources} 344 345 \mk 346 To start the installation of the Martian mesoscale model, 347 download the archive \ttt{LMD\_MM\_MARS.tar.gz} 348 (click on \url{http://www.lmd.jussieu.fr/~aslmd/LMD_MM_MARS/LMD_MM_MARS.tar.gz} 349 or use the \ttt{wget} command). 350 % 351 Copy the sources in the \ttt{\$LMDMOD} directory and extract the files: 352 \begin{verbatim} 353 cp LMD_MM_MARS.tar.gz $LMDMOD 354 cd $LMDMOD 355 tar xzvf LMD_MM_MARS.tar.gz 356 \end{verbatim} 357 358 \mk 359 \marge Execute the \ttt{prepare} script 360 that would do some necessary preparatory tasks for you: 361 deflate the various compressed archives contained into \ttt{LMD\_MM\_MARS}, 362 download the ARW-WRF sources from the web, 363 apply a (quite significant) ``Martian patch" to these sources 364 and build the final structure of your \ttt{LMD\_MM\_MARS} directory: 365 \begin{verbatim} 366 cd $LMDMOD/LMD_MM_MARS 367 ./prepare 368 \end{verbatim} 369 370 \mk 371 \marge Please check the contents of the \ttt{LMD\_MM\_MARS} directory: 372 \begin{citemize} 373 \item seven \ttt{bash} scripts: 374 \ttt{build\_static}, 375 \ttt{copy\_model}, 376 \ttt{makemeso}, 377 \ttt{prepare}, 378 \ttt{prepare\_ini},\linebreak 379 \ttt{prepare\_post}, 380 \ttt{save\_all}; 381 \item the sources directory \ttt{SRC}; 382 \item the static data directory \ttt{WPS\_GEOG}; 383 \item the simulation utilities directory \ttt{SIMU}. 384 \end{citemize} 385 % 386 \marge and check that the \ttt{LMD\_MM\_MARS/SRC} directory contains: 387 \begin{citemize} 388 \item the model main sources in \ttt{WRFV2}, 389 \item the preprocessing sources in \ttt{WPS} and \ttt{PREP\_MARS}, 390 \item the postprocessing sources in \ttt{ARWpost}, 391 \item three \ttt{tar.gz} archives and two information text files. %\ttt{saved} and \ttt{datesave}. 392 \end{citemize} 1 2 3 4 \chapter{Compiling the model and running a test case} 5 6 \vk 7 This chapter is also meant for first time users of the LMD Martian Mesoscale Model. We describe how to compile the program and run a test case. 393 8 394 9 \mk
Note: See TracChangeset
for help on using the changeset viewer.