Difference between revisions of "Pluto Dynamico"

From Planets
Jump to: navigation, search
(Created tutorial to convert lat lon simulation to icosa for Pluto.)
 
Line 1: Line 1:
This page follows a manual for installing Pluto [[The DYNAMICO dynamical core|Dynamico]] (use the following link to access the wiki page of Dynamico    https://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php/The_DYNAMICO_dynamical_core ).
+
This page follows a manual for installing Pluto [[The DYNAMICO dynamical core|Dynamico]].
  
The first step is to compile DYNAMICO using the LMDZ-PLUTO physics. Please refer to [[DYNAMICO with LMDZ physics]] for this step.
+
You should first follow how to install [[The DYNAMICO dynamical core|Dynamico]], then the [[DYNAMICO with LMDZ physics]] guides.
 +
Finally, follow [[LMDZ to DYNAMICO start files]] to convert your usual LMDZ [[The start.nc and startfi.nc input files|start files]] to DYNAMICO start files. You will need the files in '''LMDZ.PLUTO/util/start_archive2icosa''' for that.
  
1. Install the LMDZ Pluto PCM and newstart
+
Once you have completed all of these steps, you can run an example DYNAMICO simulation (with a DYNAMCIO startfi) using the *.def and *.xml files in '''datadir/dynamico'''.
  a) make sure you have the datafir and all of the *.def files.
 
  b) create start.nc and startfi.nc
 
 
 
2.  Compile start2archive
 
  a) run : makelmdz_fcm -arch <archive> -d <dimensions (lonxlatxalt)>  -p pluto start2archive to create start_archive
 
  b) run start2archive.e
 
  c) Copy start archive to your folder
 
<pre>
 
cp start_archive.nc dynamico_runs
 
</pre>
 
  d) Convert the start archive to netCDF4
 
<pre>
 
nccopy -k 4 start_archive.nc start_archive_nc4.nc
 
</pre>
 
 
 
3. Follow [[DYNAMICO with LMDZ physics]], to compile '''icosa_lmdz.exe'''.
 
 
 
4. Create an initial conditions files for dynamico by running a  dynamico simulation without an initial physics file (startphy_file=false).
 
  a) In run.def change to run_length=1500, etat_isothermal_temp=200, etat=isothermal and startphy_file=false
 
  c) run icosa_lmdz.exe
 
  d) copy the files outputed by icosa_lmdz.exe
 
      1. cp restartfi.nc startphy_icosa_ref.nc
 
      2. cp restart_icosa.nc start_icosa_ref.nc
 
 
 
5. Change the lat x lon files to the icosa grid.
 
  a) Compile the files in LMDZ.PLUTO/util/startarchive2icosa with the '''compile''' script, which will create '''start_archive2icosa''' and '''rearrange_startphy'''. Copy all the files in your simulation folder, but WARNING: there are some xml files that could overwrite your own files (like iodef.xml).
 
  b) Create a '''surface_nc4.nc''' based on your topography (could be a symbolic link)
 
  d) run ./start_archive2icosa as a job (requires a lot of memory) and make sure that iodef.xml is the one for compile.
 
  e) the script create '''start_icosa_prefinalize.nc''' and  '''startfi_prefinalize.nc'''
 
  f) run '''icosa_finalize.bash'''
 
  g) TODO change the XIOS and the for startfi0.nc  paths in icosa_finalize.bash and run it. It adds and changes variables in the startfiles.
 
  h) The scripts outputs startfi.nc and start_icosa.nc
 
 
 
6. update the tracer name in startfi for each tracer for example: ncrename -v ccn_number_surf,ccn_number startfi.nc
 
 
 
7. Run Dynamico simulation
 
  a) change the iodef.xml to the one in '''deftank/dynamico'''
 
  b) change in run.def etat0=start_file and add etat0_start_file_colocated=true
 
  
 
[[Category:DYNAMICO]]
 
[[Category:DYNAMICO]]
 
[[Category:Pluto-DYNAMICO]]
 
[[Category:Pluto-DYNAMICO]]

Revision as of 15:32, 26 November 2024

This page follows a manual for installing Pluto Dynamico.

You should first follow how to install Dynamico, then the DYNAMICO with LMDZ physics guides. Finally, follow LMDZ to DYNAMICO start files to convert your usual LMDZ start files to DYNAMICO start files. You will need the files in LMDZ.PLUTO/util/start_archive2icosa for that.

Once you have completed all of these steps, you can run an example DYNAMICO simulation (with a DYNAMCIO startfi) using the *.def and *.xml files in datadir/dynamico.