AGNI logo, light mode AGNI logo, dark mode

An open-source model for extreme atmospheres on rocky exoplanets

AGNI's primary purpose is to simulate the atmospheric temperature-, height-, and compositional-structures of atmospheres overlying magma oceans. It does this while ensuring that radiative-convective equilibrium is maintained throughout the atmosphere. SOCRATES is used to perform correlated-k radiative transfer including: shortwave irradiation from the star, surface emission, line absorption, Rayleigh scattering, parameterised clouds, and collisional absorption. Mixing length theory is used to parametrise convection. AGNI also supports real gas equations of state, self-gravitation, and various spectral surface compositions. Accounting for these energy transport processes permits an energy-conserving calculation of atmospheric structure, obtained using numerical optimisation, which also yields realistic cooling rates for young rocky planets with magma oceans.

Pronounced as ag-nee. Named after the fire deity of Hinduism.

The documentation is structured following the Diátaxis framework:

SectionPurpose
TutorialsStep-by-step guides. Start here to install the code and run your first simulation.
How-to guidesTask-oriented recipes for specific goals; e.g. configuration, grid runs.
ExplanationBackground reading on the physics, numerics, and ecosystem context.
ReferenceComplete code API and config-file reference for people who like details.

Contact: see information on my website homepage.

GitHub: https://github.com/nichollsh/AGNI

If you use AGNI, please cite the following papers:

This software is available under the GPLv3. Copyright © 2023-2026 Harrison Nicholls.