Skip to content

atomli.constraints

Generated from the public Python surface of Atomli 0.1.4.

Constant force along the axis between two atoms.

Fix Cartesian coordinates of chosen atoms.

JSON-ready spec for the Rust core.

Fix the distance between two atoms.

Fix several bond lengths at their current values.

Fix chosen Cartesian components of chosen atoms.

Hold the centre of mass of the whole system in place.

Keep linear triatomic molecules rigid.

Fix chosen scaled (cell-relative) components of chosen atoms.

Hold the centre of mass of a subset of atoms in place.

Confine atoms to the line through their current position.

Remove all motion along one collective mode.

Matches ase.constraints.FixedMode: the component of the force (and of each trial step) along the mode is projected out, so the atoms move only in the space orthogonal to it.

Confine atoms to the plane through their current position.

Hookean spring between two atoms above a threshold.