Skip to content

atomli.filters

Generated from the public Python surface of Atomli 0.1.18.

Cell relaxation filters for native Atomli optimizers.

UnitCellFilter(atoms, mask=None, cell_factor=None, *, stress_tolerance=None) couples atomic coordinates and cell strain. The six mask entries are xx, yy, zz, yz, xz, xy. The filter requires native Atomli atoms with full three-dimensional PBC. Cell-filter optimizer restart files are not supported. By default, convergence uses the scaled generalized gradient. With stress_tolerance in eV/angstrom³, convergence instead requires both the optimizer’s atomic fmax and this maximum stress-component limit. Both limits use unprojected Cartesian residuals, including constrained components. Cell scaling does not change these physical criteria. Optimizer logs report the unprojected atomic force norm in this mode. Stress can prevent convergence even when the reported force satisfies fmax.

UnitCellFilter(atoms, mask=None, cell_factor=None, *, stress_tolerance=None)

Section titled “UnitCellFilter(atoms, mask=None, cell_factor=None, *, stress_tolerance=None)”

Couple atomic positions and cell strain for an Atomli optimizer. The mask uses ASE order: xx, yy, zz, yz, xz, xy.