Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

API Reference

Top-level overview of every public symbol exported from atomode, with full signatures, parameter docs, and return types pulled straight from the source docstrings.

Public module surface

.. currentmodule:: atomode
SymbolKindPurpose
SupercellclassCentral disorder-generator with visualisation + export helpers.
CoordinationShellTargetclassFirst-shell coordination + angle targets extracted from a reference crystal. Composable via CoordinationShellTarget.from_targets into phase blends (e.g. sp²/sp³ carbon).
G3DistributionclassStand-alone three-body g3 measurement + pairwise g2 byproduct.
export_overview_htmlfunctionRotating multi-panel 3D grid of finished supercells.
export_g2_compare_htmlfunctionOverlaid g(r) across multiple supercells, stacked y-offset, species-pair dropdown.
plot_g2_comparefunctionInline-Jupyter wrapper around export_g2_compare_html.

Pipeline summary

A typical end-to-end build chains four calls:

import atomode as am
from ase.build import bulk

atoms_ref = bulk("Si", "diamond", a=5.431)
shell = am.CoordinationShellTarget.from_atoms(atoms_ref, phi_num_bins=90)

cell = am.Supercell.from_atoms(
    atoms_ref,
    cell_dim_angstroms=(40, 40, 40),
    r_max=10, r_step=0.1, phi_num_bins=90,
    rng_seed=42,
)
cell.generate(shell, **am.Supercell.PRESETS["MRO"])
cell.measure_g3()

After Supercell.generate the cell carries:

From there the visualisation methods (Supercell.plot_g3, Supercell.view_structure, Supercell.plot_shell_relax) render inline in Jupyter, and the export methods (Supercell.export_trajectory_html, Supercell.export_g3_html, Supercell.export_g2_html) write self-contained HTML for embedding in static sites or sharing as standalone files.