Configuration reference

AGNI configuration files are formatted using TOML. There are examples in res/config/. There are no default values; the model will return an error naming any parameters which are both necessary and absent.

See Configuring AGNI for guidance on choosing values for these parameters.

[planet]

General properties of the planet.

ParameterDescription
tmp_surfTemperature of the surface [kelvin].
instellationStellar flux at planet's orbital distance [W m-2].
albedo_bA pseudo bond-albedo which downscales the stellar flux by 1-albedo_b.
s0_factStellar flux scale factor which accounts for planetary rotation (c.f. Cronin+13).
zenith_angleCharacteristic zenith angle for incoming stellar radiation [degrees].
surface_materialSurface material (can be "greybody" or path to data file in res/).
albedo_sSpectrally-grey surface albedo used when material=greybody. Optional otherwise.
radiusRadius of the planet's surface [m].
gravityGravitational acceleration at the surface [m s-2]. Incompatible with mass option.
massTotal mass of material below the atmosphere [kg]. Incompatible with gravity option.
skin_dThickness of the conductive boundary layer [m]. Used when solution_type=2.
skin_kConductivity of the conductive boundary layer [W m-1 K-1]. Used when solution_type=2.
tmp_magmaTemperature of the topmost layer of the planet's mantle [K]. Used when solution_type=2.
flux_intInternal flux [W m-2] to be solved-for when solution_type=3.
roughnessSurface roughness length scale [m].
wind_speedEffective wind speed for sensible heat transport [m s-1].
star_TeffStellar photospheric temperature [K] used if files.input_star=="blackbody".

[files]

Input/output files and other paths.

ParameterDescription
input_sfPath to the desired spectral file in res/spectral_files/. If "greygas", uses double-grey RT scheme.
input_starPath to stellar spectrum. If blank, spectrum assumed to be inside spectral file. If "blackbody" must provide planet.star_Teff.
output_dirPath to the output directory.
rfm_parfilePath to .par linelist file, for running line-by-line calculations with the RFM.

[composition]

Atmospheric composition and chemistry. There are three main ways to set the composition: partial pressures (p_dict), mixing ratios (vmr_dict or vmr_file), or by metallicities (metallicities).

ParameterDescription
p_topTotal top-of-atmosphere pressure [bar].
p_dictDictionary of gas partial surface pressures [bar]. Summed to obtain p_surf.
p_surfTotal surface pressure [bar]. Incompatible with p_dict.
vmr_dictGas volume mixing ratios (=mole fractions) at the surface. Must also set p_surf.
vmr_filePath to a file containing mixing ratio profiles. Must also set p_surf.
metallicitiesDictionary of elemental mass abundance ratios relative to hydrogen. Must also set p_surf.
condensatesList of volatiles which are allowed to condense. Can be used together with thermochemical equilibrium (physics.chemistry = true).
transparentMake the atmosphere transparent (see below). Replaces all of the above parameters in this table.

[execution]

Parameters that tell the model what to do.

ParameterDescription
clean_outputClean old files from the output folder at model startup (true/false).
verbosityLogging verbosity (0: quiet, 1: normal, 2: extra logging).
max_stepsMaximum number of steps the solver should take before giving up (typically <200).
max_runtimeMaximum wall-clock runtime [s] before giving up.
num_levelsNumber of model levels. Typically ~50, and ideally less than 100.
converge_atolConvergence criterion absolute tolerance [W m-2].
converge_rtolConvergence criterion relative tolerance [dimensionless].
converge_typeDefinition of convergence criterion (1: cost function, 2: median resid, 3: mean resid).
initial_stateOrdered list of requests describing the initial state of the atmosphere (see Configuring AGNI).
solution_typeSolution type (see Configuring AGNI and Model description).
solverSolver to use (see Configuring AGNI).
dx_maxMaximum step size [kelvin] allowed to be taken by the solver during each step.
linesearchLinesearch method to be used (0: None, 1: Golden section, 2: Backtracking).
easy_startInitially scale energy fluxes, to help with stability if the model is struggling.
grey_startInitially solve with double-grey RT scheme, to help with stability if the model is struggling.
perturb_allPerturb all rows of Jacobian matrix at each solver iteration? True=stable, False=fast.
rfm_wn_minLine-by-line RFM radiative transfer, minimum wavenumber [cm-1].
rfm_wn_maxLine-by-line RFM radiative transfer, maximum wavenumber [cm-1].

[physics]

Parameters that describe how the model should treat the physics.

ParameterDescription
chemistryInclude 1D equilibrium chemistry in the atmosphere (true/false).
continuaInclude collisional/continuum absorption in radiative transfer (true/false).
rayleighInclude Rayleigh scattering in radiative transfer (true/false).
cloudInclude cloud scattering and opacity in radiative transfer (true/false).
overlap_methodMethod for treating overlapping gas opacities within a given spectral band (see Configuring AGNI).
grey_lwGrey opacity [m2/kg] of longwave (thermal) radiation. Used when input_sf="greygas".
grey_swGrey opacity [m2/kg] of shortwave (stellar) radiation. Used when input_sf="greygas".
real_gasUse real-gas equation(s) of state where possible (true/false).
thermo_functUse temperature-dependent thermodynamic properties (true/false).
sensible_heatInclude turbulent sensible heat transport at the surface (true/false).
convectionInclude vertical heat transport associated with convection (true/false).
convection_critCriterion for convective stability. Options: (s)chwarzschild, (l)edoux.
latent_heatInclude vertical heat transport from condensation and evaporation (true/false).
rainoutEnable condensation and evaporation of condensables aloft. Required for latent_heat=true.
oceansEnable condensation and evaporation of condensables at the surface.

[plots]

Configure plotting routines; all of these should be true or false.

ParameterDescription
at_runtimeMake some plots at runtime?
temperaturePlot temperature-pressure profile?
fluxesPlot energy flux profiles?
contributionPlot spectral contribution function?
emissionPlot outgoing emission spectrum?
albedoPlot spectral albedo? This is the ratio of upward:downward SW fluxes.
mixing_ratiosPlot mixing ratio profiles?
heightPlot radius-pressure profile?
animateMake an animation of the solver obtaining its solution?
cloudPlot water cloud mass fraction and area fraction profiles?