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.
Start here
Section titled “Start here”- Install Atomli and verify a working calculator.
- Follow the quick start: water energies and relaxation, water vibrations, a periodic slab, and constrained water adsorption—with interactive structures.
- Choose a calculator for your chemistry and boundary conditions.
python -m pip install "atomli[all]"Your first single-point calculation:
from atomli.build import moleculefrom atomli.calculators import XTBfrom atomli.visualize import view
water = molecule("H2O")water.calc = XTB(method="gxtb", device="cpu")print(water.get_potential_energy()) # eVview(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.
Find a guide
Section titled “Find a guide”| I want to… | Read |
|---|---|
| Create molecules, crystals, and surfaces | Building structures |
| Relax atoms or a periodic cell | Optimization |
| Fix substrate atoms or constrain an adsorbate | Constraints |
| Calculate molecular or adsorbate modes | Vibrational analysis |
| Calculate crystal vibrations | Phonons |
| Inspect structures and trajectories | Visualization |
| Analyze electronic structure and bonding | Analysis |
| Run dynamics and analyze trajectories | Molecular dynamics · Trajectory analysis |
| Find conformers, reaction paths, or thermal corrections | Conformers · Reaction paths · Thermochemistry |
Examples and reference
Section titled “Examples and reference”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.