<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?action=history&amp;feed=atom&amp;title=The_1D_run.def_Input_File</id>
		<title>The 1D run.def Input File - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?action=history&amp;feed=atom&amp;title=The_1D_run.def_Input_File"/>
		<link rel="alternate" type="text/html" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?title=The_1D_run.def_Input_File&amp;action=history"/>
		<updated>2026-06-14T01:59:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?title=The_1D_run.def_Input_File&amp;diff=3285&amp;oldid=prev</id>
		<title>Jbclement: Created page with &quot;== The run.def input file and its format ==  === some general comments and disambiguation to start with === This pages specifically focuses on the ''run.def'' file used by the...&quot;</title>
		<link rel="alternate" type="text/html" href="http://lmdz-forge.lmd.jussieu.fr/mediawiki/Planets/index.php?title=The_1D_run.def_Input_File&amp;diff=3285&amp;oldid=prev"/>
				<updated>2026-06-12T14:05:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== The run.def input file and its format ==  === some general comments and disambiguation to start with === This pages specifically focuses on the &amp;#039;&amp;#039;run.def&amp;#039;&amp;#039; file used by the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== The run.def input file and its format ==&lt;br /&gt;
&lt;br /&gt;
=== some general comments and disambiguation to start with ===&lt;br /&gt;
This pages specifically focuses on the ''run.def'' file used by the 1D version of the Generic PCM. &lt;br /&gt;
&lt;br /&gt;
The run.def file is very similar to the [[The_run.def_Input_File|'''run.def''']] file, with the difference that the 3D options (linked to the dynamic core) are not used, and a whole bunch of new 1D-specific options (information contained in the start and startfi files) are now in the 1D run.def file. Especially, the 1D file has to hold the key &amp;lt;code&amp;gt;run_1d=.true.&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Reference def files ==&lt;br /&gt;
Reference *.def files are provided in the LMDZ.GENERIC/deftank directory&lt;br /&gt;
&lt;br /&gt;
== Outputted used_*def files ==&lt;br /&gt;
When the GCM run finishes, for each of the input def files *.def, an ASCII output file '''used_*.def''' is generated (in practice this would be '''used_run.def''' and '''used_callphys.def''' for the 1D simulations). These files contain, along the same format as the *.def input files, the &amp;quot;key = value&amp;quot; that were used, along with comments about whether &amp;quot;value&amp;quot; was read in the input def file or if the code default was used (i.e. the sought &amp;quot;keyword&amp;quot; was not present in the input def files).&lt;br /&gt;
&lt;br /&gt;
== Example of 1D ''run.def'' file ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#---------------------------------#&lt;br /&gt;
# Run parameters for the 1D model #                                         &lt;br /&gt;
#---------------------------------#&lt;br /&gt;
&lt;br /&gt;
run_1d=.true.&lt;br /&gt;
&lt;br /&gt;
## Planetary constants&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
## NB: those are mandatory&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
## LENGTH OF A DAY in s&lt;br /&gt;
daysec         = 86400.&lt;br /&gt;
## GRAVITY in m s-2&lt;br /&gt;
g              = 3.72&lt;br /&gt;
## Radius of the planet, in m&lt;br /&gt;
rad = 3390000&lt;br /&gt;
## LENGTH OF A YEAR in days&lt;br /&gt;
year_day       = 3000&lt;br /&gt;
## MIN DIST STAR-PLANET in AU [periastron]&lt;br /&gt;
periastr       = 1.0&lt;br /&gt;
## MAX DIST STAR-PLANET in AU [apoastron]&lt;br /&gt;
apoastr        = 1.0&lt;br /&gt;
## DATE OF PERIASTRON in days&lt;br /&gt;
peri_day       = 0.&lt;br /&gt;
## OBLIQUITY in deg&lt;br /&gt;
obliquit       = 0.&lt;br /&gt;
## SURFACE PRESSURE in Pa&lt;br /&gt;
psurf          = 100000.&lt;br /&gt;
&lt;br /&gt;
## Time integration parameters&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
# Initial date (in solar days,=0 at Ls=0)&lt;br /&gt;
day0           = 0&lt;br /&gt;
# Initial local time (in hours, between 0 and 24)&lt;br /&gt;
time           = 12 &lt;br /&gt;
# Number of time steps per sol&lt;br /&gt;
day_step       = 40&lt;br /&gt;
# Number of sols to run &lt;br /&gt;
ndt            = 1000&lt;br /&gt;
# Number of steps between each writing in diagfi &lt;br /&gt;
diagfi_output_rate=12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
## Vertical levels&lt;br /&gt;
## ~~~~~~~~~~~~~~~&lt;br /&gt;
# hybrid vertical coordinate ? (.true. for hybrid and .false. for sigma levels)&lt;br /&gt;
hybrid         = .true.&lt;br /&gt;
# autocompute vertical discretisation? (useful for exoplanet runs)&lt;br /&gt;
autozlevs      = .false.&lt;br /&gt;
# Ceiling pressure (Pa) ?&lt;br /&gt;
pceil          = 0.00001&lt;br /&gt;
&lt;br /&gt;
## Thermal properties&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~&lt;br /&gt;
# Simulate global averaged conditions ? &lt;br /&gt;
global1d       = .true.&lt;br /&gt;
# Latitude (deg) [only used if global1d = F]&lt;br /&gt;
latitude       = 0.0&lt;br /&gt;
# Solar Zenith angle (deg) [only used if global1d = T]&lt;br /&gt;
szangle        = 60. &lt;br /&gt;
# Force specific heat capacity and molecular mass values&lt;br /&gt;
force_cpp      = .false.&lt;br /&gt;
# Specific heat capacity in J K-1 kg-1 [only used if force_cpp = T]&lt;br /&gt;
cpp            = 0.&lt;br /&gt;
# Molecular mass in g mol-1 [only used if force_cpp = T]&lt;br /&gt;
mugaz          = 18.&lt;br /&gt;
# Albedo of bare ground&lt;br /&gt;
albedo         = 0.1&lt;br /&gt;
# Emissivity of bare ground&lt;br /&gt;
emis           = 1.0&lt;br /&gt;
# Soil thermal inertia (SI)&lt;br /&gt;
inertia        = 1000.&lt;br /&gt;
# Initial CO2 ice on the surface (kg.m-2)&lt;br /&gt;
co2ice         = 0.&lt;br /&gt;
&lt;br /&gt;
## Wind profile&lt;br /&gt;
## ~~~~~~~~~~~~&lt;br /&gt;
## zonal eastward component of the geostrophic wind (m/s)&lt;br /&gt;
u              = 10.&lt;br /&gt;
# meridional northward component of the geostrophic wind (m/s)&lt;br /&gt;
v              = 0.&lt;br /&gt;
&lt;br /&gt;
## Initial atmospheric temperature profile&lt;br /&gt;
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
#&lt;br /&gt;
# Type of initial temperature profile&lt;br /&gt;
#         ichoice=1   Constant Temperature:  T=tref&lt;br /&gt;
#         [Mars] ichoice=2   Savidjari profile (as Seiff but with dT/dz=cte)&lt;br /&gt;
#         [Mars] ichoice=3   Lindner (polar profile)&lt;br /&gt;
#         [Mars] ichoice=4   inversion&lt;br /&gt;
#         [Mars] ichoice=5   Seiff  (standard profile, based on Viking entry)&lt;br /&gt;
#         ichoice=6   constant T  +  gaussian perturbation (levels)&lt;br /&gt;
#         ichoice=7   constant T  + gaussian perturbation (km)&lt;br /&gt;
#         ichoice=8   Read in an ascii file &amp;quot;profile&amp;quot; &lt;br /&gt;
ichoice        = 1&lt;br /&gt;
# Reference temperature tref (K)&lt;br /&gt;
tref           = 300. &lt;br /&gt;
# Add a perturbation to profile if isin=1&lt;br /&gt;
isin           = 0&lt;br /&gt;
# peak of gaussian perturbation (for ichoice=6 or 7)&lt;br /&gt;
pic            = 26.522&lt;br /&gt;
# width of the gaussian perturbation (for ichoice=6 or 7)&lt;br /&gt;
largeur        = 10&lt;br /&gt;
# height of the gaussian perturbation (for ichoice=6 or 7)&lt;br /&gt;
hauteur        = 30.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Notes''':&lt;br /&gt;
* Lines beginning with a hashtag are comments&lt;br /&gt;
* values associated to keywords may be logicals, integers, reals or even strings&lt;br /&gt;
* The parsing is case-sensitive : &amp;quot;thisparameter=&amp;quot; and &amp;quot;ThisParameter=&amp;quot; are identified as two distinct keywords&lt;br /&gt;
* The order in which the parameters are given in the file does not matter (except if a parameter is specified multiple times, clearly a bad idea, and then the last occurrence will prevail).&lt;br /&gt;
* Accessing a parameter and its value from ''run.def'' in the Fortran code is done using the '''getin_p''' routine, e.g.:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;fortran&amp;quot;&amp;gt;&lt;br /&gt;
       call getin_p(&amp;quot;keyword&amp;quot;,val)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
will look for the line with &amp;quot;keyword = &amp;quot; in file ''run.def'' and extract trailing value which will be use to set the value of the  '''val''' variable in the code.&lt;br /&gt;
&lt;br /&gt;
[[Category:Inputs]]&lt;br /&gt;
[[Category:WhatIs]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Generic-LMDZ]]&lt;br /&gt;
[[Category:Generic-1D]]&lt;/div&gt;</summary>
		<author><name>Jbclement</name></author>	</entry>

	</feed>