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.
| Parameter | Description |
|---|---|
tmp_surf | Temperature of the surface [kelvin]. |
instellation | Stellar flux at planet's orbital distance [W m$^{-2}$]. |
albedo_b | A pseudo bond-albedo which downscales the stellar flux by 1-albedo_b. |
s0_fact | Stellar flux scale factor which accounts for planetary rotation (c.f. Cronin+13). |
zenith_angle | Characteristic zenith angle for incoming stellar radiation [degrees]. |
surface_material | Surface material (can be "greybody" or path to data file in res/). |
albedo_s | Spectrally-grey surface albedo used when material=greybody. Optional otherwise. |
radius | Radius of the planet's surface [m]. |
gravity | Gravitational acceleration at the surface [m s-2]. Incompatible with mass option. |
mass | Total mass of material below the atmosphere [kg]. Incompatible with gravity option. |
skin_d | Thickness of the conductive boundary layer [m]. Used when solution_type=2. |
skin_k | Conductivity of the conductive boundary layer [W m-1 K-1]. Used when solution_type=2. |
tmp_magma | Temperature of the topmost layer of the planet's mantle [K]. Used when solution_type=2. |
flux_int | Internal flux [W m$^{-2}$] to be solved-for when solution_type=3. |
roughness | Surface roughness length scale [m]. |
wind_speed | Effective wind speed for sensible heat transport [m s-1]. |
star_Teff | Stellar photospheric temperature [K] used if input_star=="blackbody". |
[planet.globe]
Optional subsection which enables multicolumn/global mode. Incompatible with [physics.deep_heating].
| Parameter | Description |
|---|---|
lons | List of longitudes for each column [degrees, 0-360]. |
lats | List of latitudes for each column [degrees, -90 to 90]. |
redist_flux | List of prescribed heat-redistribution fluxes for each column [W m$^{-2}$]. |
redist_Pmid | List of central pressures for each column's redistribution profile [bar]. |
redist_Pwid | List of widths (in log-pressure space) for each column's redistribution profile. |
[files]
Input/output files and other paths.
| Parameter | Description |
|---|---|
input_sf | Path to the desired spectral file in res/spectral_files/. If "greygas", uses double-grey RT scheme. |
input_star | Path to stellar spectrum. If blank, spectrum assumed to be inside spectral file. If "blackbody" must provide planet.star_Teff. |
output_dir | Path to the output directory. |
io_dir | Path for fast I/O operations (optional, defaults to output_dir). |
rfm_parfile | Path to .par linelist file, for running line-by-line calculations with the RFM (optional). |
res_dir | Folder used in place of res/ for the thermodynamic, scattering, refractive index and RFM data (optional); see Obtaining input data. |
[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).
| Parameter | Description |
|---|---|
p_top | Total top-of-atmosphere pressure [bar]. |
p_dict | Dictionary of gas partial surface pressures [bar]. Summed to obtain p_surf. |
p_surf | Total surface pressure [bar]. Incompatible with p_dict. |
vmr_dict | Gas volume mixing ratios (=mole fractions) at the surface. Must also set p_surf. |
vmr_file | Path to a file containing mixing ratio profiles. Must also set p_surf. |
metallicities | Dictionary of elemental mass abundance ratios relative to hydrogen. Must also set p_surf. |
condensates | List of volatiles which are allowed to condense. Can be used together with thermochemical equilibrium (physics.chemistry = true). |
transparent | Make the atmosphere transparent (see below). Replaces all of the above parameters in this table. |
aerosols | Tables describing each aerosol species (see below). Optional. |
[composition.aerosols.<name>]
Each aerosol is configured in its own table, where <name> is a label for that aerosol. The radiative effects of aerosols are only included when physics.aerosol = true. See Aerosols and clouds for a description of the physics.
| Parameter | Description |
|---|---|
method | How optical properties are obtained: "mon" (pre-computed SOCRATES data) or "mie" (Mie theory from refractive indices). Required. |
mmr | Constant mass mixing ratio [kg/kg]. Provide exactly one of mmr or species. |
species | Condensable gas whose condensate yield sets the mass mixing ratio. Must be listed in condensates. |
nk_file | Name of the refractive index material, e.g. "SiO2_amorph". Required for method="mie". |
r_eff | Effective radius of the log-normal size distribution [m]. Required for method="mie". |
sigma_g | Geometric standard deviation of the log-normal size distribution (≥ 1). Required for method="mie". |
For method="mon", the name of the table must match one of the aerosols supplied with SOCRATES (e.g. soot, sulph, nitrate, dustdiv1), which have data in res/scattering/. For method="mie", any name can be used, and the material density is taken from the source code. For example:
[composition.aerosols.soot]
method = "mon"
mmr = 1e-4
[composition.aerosols.sio2]
method = "mie"
species = "SiO2"
nk_file = "SiO2_amorph"
r_eff = 1.0e-6
sigma_g = 1.65Earlier versions of AGNI configured aerosols with an inline dictionary, such as aerosols = { "soot"=1e-4, "biogenic"="HCN" }. This format is no longer accepted in configuration files. Each entry should be replaced by a table with method = "mon" and either mmr (for a number) or species (for a gas name), as above.
[execution]
Parameters that tell the model what to do.
| Parameter | Description |
|---|---|
clean_output | Clean old files from the output folder at model startup (true/false). |
verbosity | Logging verbosity (0: quiet, 1: normal, 2: extra logging). |
max_steps | Maximum number of steps the solver should take before giving up (typically <200). |
max_runtime | Maximum wall-clock runtime [s] before giving up. |
num_levels | Number of model levels. Typically ~40, and ideally less than 80. |
converge_atol | Convergence criterion absolute tolerance [W m$^{-2}$]. |
converge_rtol | Convergence criterion relative tolerance [dimensionless]. |
converge_type | Definition of convergence criterion (1: cost function, 2: median resid, 3: mean resid). |
initial_state | Ordered list of requests describing the initial state of the atmosphere (see Configuring AGNI). |
solution_type | Solution type (see Configuring AGNI and Model description). |
solver | Solver to use (see Configuring AGNI). |
dx_max | Maximum step size [kelvin] allowed to be taken by the solver during each step. |
linesearch | Linesearch method to be used (0: None, 1: Golden section, 2: Backtracking). |
easy_start | Initially scale energy fluxes, to help with stability if the model is struggling. |
grey_start | Initially solve with double-grey RT scheme, to help with stability if the model is struggling. |
perturb_all | Perturb all rows of Jacobian matrix at each solver iteration? True=stable, False=fast. |
rfm_wn_min | RFM radiative transfer minimum wavenumber [cm$^{-1}$], (optional). |
rfm_wn_max | RFM radiative transfer maximum wavenumber [cm$^{-1}$], (optional). |
globe_iters | Maximum number of outer iterations for the multicolumn/global solver (see Multicolumn and global mode). Used when [planet.globe] is set. |
[physics]
Parameters that describe how the model should treat the physics.
| Parameter | Description |
|---|---|
chemistry | Include 1D equilibrium chemistry in the atmosphere (true/false). |
continua | Include collisional/continuum absorption in radiative transfer (true/false). |
rayleigh | Include Rayleigh scattering in radiative transfer (true/false). |
aerosol | Include aerosols in radiative transfer (true/false). Aerosols are configured in [composition.aerosols.<name>]. |
cloud | Include water clouds in radiative transfer (true/false). Requires a spectral file containing droplet data. |
overlap_method | Method for treating overlapping gas opacities within a given spectral band (see Configuring AGNI). |
grey_lw | Grey opacity [m2/kg] of longwave (thermal) radiation. Used when input_sf="greygas". |
grey_sw | Grey opacity [m2/kg] of shortwave (stellar) radiation. Used when input_sf="greygas". |
real_gas | Use real-gas equation(s) of state where possible (true/false). |
thermo_funct | Use temperature-dependent thermodynamic properties (true/false). |
sensible_heat | Include turbulent sensible heat transport at the surface (true/false). |
conduction | Include thermal conductive heat transport (true/false). |
convection | Include vertical heat transport associated with convection (true/false). |
convection_crit | Criterion for convective stability. Options: (s)chwarzschild, (l)edoux. |
latent_heat | Include vertical heat transport from condensation and evaporation (true/false). |
rainout | Enable condensation and evaporation of condensables aloft. Required for latent_heat=true. |
coldtrap | Enable cold-trapping effect on abundances aloft, so that VMR always decreases with height. |
demixing | Include immiscible demixing of atmospheric condensates where possible. |
evap_efficiency | Efficiency of re-evaporation of raindrops in dry regions [0-1]. |
oceans | Enable condensation and evaporation of condensables at the surface. |
[physics.deep_heating]
Optional subsection for configuring deep atmospheric heating (e.g., from tidal dissipation or radiogenic heating in the interior).
| Parameter | Description |
|---|---|
Pmid | Center pressure of the Gaussian heating profile [bar]. |
Pwid | Width of the Gaussian heating profile in log-Pascal units. |
power_mode | Power mode for heating: "off" (disabled), "rel" (relative to instellation), or "abs" (absolute flux). |
norm_method | Normalisation coordinate: "pressure" (legacy dF/dP), or "mass" (dm-weighted). |
domain | How to handle Pmid outside atmospheric domain: "clamp" or "boundary_flux". |
flux_rel | Fraction of instellation to deposit as deep heating [dimensionless]. Used when power_mode="rel". |
flux_abs | Absolute heating flux to deposit [W m$^{-2}$]. Used when power_mode="abs". |
[plots]
Configure plotting routines; all of these should be true or false.
| Parameter | Description |
|---|---|
at_runtime | Make some plots at runtime? |
temperature | Plot temperature-pressure profile? |
fluxes | Plot energy flux profiles? |
contribution | Plot spectral contribution function? |
emission | Plot outgoing emission spectrum? |
albedo | Plot spectral albedo? This is the ratio of upward:downward SW fluxes. |
mixing_ratios | Plot mixing ratio profiles? |
height | Plot radius-pressure profile? |
animate | Make an animation of the solver obtaining its solution? |
cloud | Plot water cloud mass fraction and area fraction profiles? |
aerosol_optics | Plot band-averaged aerosol optical properties (extinction, single scattering albedo, asymmetry)? |