source: trunk/LMDZ.MARS/doc/testphys1d.tex @ 2790

Last change on this file since 2790 was 1954, checked in by emillour, 6 years ago

Mars GCM:

  • Make a "doc" subdirectory to store the documentation source files with the code.

EM

File size: 3.2 KB
Line 
1\chapter{1D version of the Mars model}
2
3\label{sc:testphys1d}
4
5The physical part of the model can be used to generate realistic
61-D simulations (one atmosphere column).
7In practice, the simulation is controlled from a main program called
8\verb+ testphys1d.F+ which, after initialization, then calls the master
9subroutine of the physics \verb+ physiq.F+ described in the preceeding
10chapters.
11
12\section{Compilation} 
13To compile the Martian model in 1-D with
1429 layers, simply type
15(in compliance with the makelmdz\_fcm function manual described in section
16\ref{sc:compil1})
17
18\begin{verbatim}
19makelmdz_fcm -arch local -d 29 -p mars testphys1d
20\end{verbatim}
21
22You will find executable {\bf testphys1d\_29\_phymars\_seq.e}
23(the compiled model)
24in the {\tt bin} subdirectory from which you ran the makelmdz\_fcm command.
25
26\section{1-D runs and input files}
27
28The 1-D model does not use an initial state file (the simulation must be long
29enough to obtain a balanced state). Thus, to generate a simulation simply
30type:
31
32\begin{verbatim}
33./testphys1d.e
34\end{verbatim}
35
36The following example files are available in the {\tt deftank} directory
37(copy them into your working directory first):
38
39- {\bf callphys.def}~: controls the options in the physics,
40  just like for the 3D GCM.
41
42- {\bf z2sig.def}~:
43 controls the vertical discretization
44 (no change needed, in general), functions as with the 3D GCM.
45
46- {\bf traceur.def}~:
47 controls the tracer names (this file may not be present, as long
48 as you run without tracers (option {\tt tracer=.false.} in
49 callphys.def)
50
51- {\bf run.def}~: controls the 1-D run parameters and initializations
52(this is actally file {\tt run.def.1d} the {\tt deftank} directory,
53which must be renamed {\tt run.def} to be read by the program).\\
54
55The last file is different from the 3D GCM's {\tt run.def} input file,
56as it contains options specific to the 1-D model, as shown in the example
57below:
58{\footnotesize
59\input{input/run.def.1d.tex}
60}
61Note that, just as for the 3-D GCM {\tt run.def} file, input
62parameters may be given in any order, or even not given at all
63(in which case default values are used by the program).
64
65Initial conditions for tracers can be provided as ASCII text files; when
66{\bf testphys1d.e} runs, it looks for a {\tt profile\_*} file, where {\tt *}
67stands for a tracer name (as given in the traceur.def file) to initialize
68the tracer profile. The data in the file should be given as one value per
69line, first line for the surface value (in kg/m2), followed by values for each
70atmospheric layer (going from bottom to top of the atmosphere).
71If no {\tt profile\_*} file is found, then the tracer values are initialized
72to zero (except for the 'co2' tracer, which will be set to 0.95).
73
74\section{Output data}
75
76During the entire 1D simulation, you can obtain output data for any
77variable from any physical subroutine by using subroutine \verb+ writediagfi+
78(as when runing 3D simulations, but specifying the correct dimensions for the field) \\
79
80Example of a call to subroutine {\tt writediagfi} requesting
81temperature output:
82(\verb+ ngrid+ horizontal point, \verb+ nlayer + layers, variable
83\verb+ zt + called ``temp'' in K units):
84
85\begin{verbatim}
86      CALL WRITEDIAGFI(ngrid,'temp','Temperature','K',1,zt)
87\end{verbatim}
88
89
Note: See TracBrowser for help on using the repository browser.