Difference between revisions of "Advanced Use of the GCM"

From Planets
Jump to: navigation, search
(How to Change the Topography (or remove it))
(How to Manage Tracers)
Line 41: Line 41:
 
== How to Manage Tracers ==
 
== How to Manage Tracers ==
  
The model can include different types of tracers:
+
Tracers are managed thanks to the ''traceur.def'' file [https://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/The_traceur.def_Input_File].
* condensed species (e.g., CO<sub>2</sub>, H<sub>2</sub>O, dust)
 
* chemically active species
 
* radiatively active gases (e.g., water vapor)
 
  
In the code, all tracers are stored in one three-dimensional array q, the third index of which corresponds to each individual tracer.
+
Specific treatment of some tracers (e.g., water vapor cycle) can be added directly in the model and an option added in ''callphys.def'' file [https://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/The_callphys.def_Input_File].
 
 
In input and output files (“start.nc”, “startfi.nc”), tracers are stored separately using their individual names.
 
 
 
Loading specific tracers requires that the approriate tracer names are set in the traceur.def file, and specific computations for given tracers (e.g. computing the water or CO2 cycles) is controlled by setting the corresponding options in the callphys.def file.
 
 
 
TO BE COMPLETED
 

Revision as of 10:51, 11 May 2022

Running in parallel

For large simulation (long run, high resolution etc...), the waiting time can becomes very long. To overcome this issue, the model can works in parallel. It first needs to be compiled in parallel mode and then be run with a specific command. For all the details see the page Parallelism

Distinctions beween ifort, mpi, etc.

TO BE COMPLETED BWAAAAA

Distinction between using IOIPSL or XIOS

TO BE COMPLETED

How to Change Vertical and Horizontal Resolutions

To run at a different grid resolution than available initial conditions files, one needs to use the tools newstart.e and start2archive.e

For example, to create initial states at grid resolution 32×24×25 from NetCDF files start and startfi at grid resolution 64×48×32 :

  • Create file start_archive.nc with start2archive.e compiled at grid resolution 64×48×32 using old file z2sig.def used previously
  • Create files restart.nc and restartfi.nc with newstart.e compiled at grid resolution 32×24×25, using a new file z2sig.def (more details below on the choice of the z2sig.def)

What you need to know about the z2sig.def file (change of vertical resolution only)

TO BE COMPLETED


How to Change the Topography (or remove it)

The generic model can use in principle any type of surface topography, provided that the topographic data file is available in the right format, and put in the right place.

How to Change the Opacity Tables

TO BE COMPLETED

How to Manage Tracers

Tracers are managed thanks to the traceur.def file [1].

Specific treatment of some tracers (e.g., water vapor cycle) can be added directly in the model and an option added in callphys.def file [2].