Controling outputs in the dynamics with DYNAMICO

From Planets
Revision as of 10:30, 27 January 2023 by Emillour (talk | contribs) (Created page with "This page should contain all the info about creating /controlling outputs in the dynamics with DYNAMICO == A little background and overview == It all happens via XIOS, so it...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page should contain all the info about creating /controlling outputs in the dynamics with DYNAMICO

A little background and overview

It all happens via XIOS, so it is all about xml files. In practice there should be a bunch of them, more specifically:

context_dynamico.xml
context_input_dynamico.xml
field_def_dynamico.xml
file_def_dynamico.xml

where

  • context_dynamico.xml' and context_dynamico.xml are related to reading/writting inpout/output start files
  • field_def_dynamico.xml contains the definitions of variables that can be outputted
  • file_def_dynamico.xml contains the definition of output files (including if there will be some output, which variable, at what rate, etc.)

More about the field_def_dynamico.xml file

A user should in most case not need modify this file, unless a new potentially outputable variable has been added in the code, in which case it should be defined in this file.

More about the file_def_dynamico.xml

This is where one defines what outputs files to generate, which variables they will contain, at which rate the outputs will be made, etc.

Clearly this is the file most users will need to edit and customize to fit their needs.

... to be completed ...

Adding tracers in the outputs

If running with tracers and wanting to output them, not need to modify field_def_dynamico.xml (they are not really mentioned there but actually directly added via the Fortran code), but one needs adapt file_def_dynamico.xml.

The id of a tracer is related to its name, and conveyed as tracer_name. So in practice, if you have a "co2" and a "n2" tracer you will reference them as <syntaxhightlight lang="xml">

   <field field_ref="tracer_co2" />
   <field field_ref="tracer_n2" />

</syntaxhighlight> in file_def_dynamico.xml