Skip to content

Atomli documentation

Atomli is a Python toolkit for atomistic calculations, analysis, and interactive visualization. Build an Atoms object, attach a calculator, then calculate energies and forces, optimize a geometry, or analyze vibrations.

  1. Install Atomli and verify a working calculator.
  2. Follow the quick start: water energies and relaxation, water vibrations, a periodic slab, and constrained water adsorption—with interactive structures.
  3. Choose a calculator for your chemistry and boundary conditions.
Terminal window
python -m pip install "atomli[all]"

Your first single-point calculation:

from atomli.build import molecule
from atomli.calculators import XTB
from atomli.visualize import view
water = molecule("H2O")
water.calc = XTB(method="gxtb", device="cpu")
print(water.get_potential_energy()) # eV
view(water)

Positions use Å, energies eV, and forces eV/Å. In a notebook, view() displays an interactive structure with element labels and coordinate axes. From a script, use view(water).write_html("water.html") and open the file in a browser.

I want to…Read
Create molecules, crystals, and surfacesBuilding structures
Relax atoms or a periodic cellOptimization
Fix substrate atoms or constrain an adsorbateConstraints
Calculate molecular or adsorbate modesVibrational analysis
Calculate crystal vibrationsPhonons
Inspect structures and trajectoriesVisualization
Analyze electronic structure and bondingAnalysis
Run dynamics and analyze trajectoriesMolecular dynamics · Trajectory analysis
Find conformers, reaction paths, or thermal correctionsConformers · Reaction paths · Thermochemistry

Worked studies combine reproducible Python with interactive structures and plots. Start with water or constrained water adsorption.

Use the API reference for signatures and ASE compatibility when adapting an ASE script.