Skip to main content

Geometry

Molecular geometry.

Usage

Source

Geometry()

Attributes

symbols: list[str]

Atomic symbols, e.g. ["H", "O", "H"]. Validated against the periodic table and canonicalized ("cl" -> "Cl").

coordinates: CoordinatesField

Cartesian coordinates in Angstroms, shape (N, 3) and ordered like symbols. A pint.Quantity with length units is converted to Angstroms; plain values are assumed to be Angstroms.

charge: int

Total molecular charge.

spin: int
Number of unpaired electrons (2S). Must be non-negative and have the same parity as the electron count.

Example

import autogeom geo = autogeom.Geometry( … symbols=[“H”, “O”, “H”], … coordinates=[[0.0, 0.0, -0.74], [0.0, 0.0, 0.0], [0.0, 0.0, 0.74]], … charge=0, … spin=0, … ) geo.atom_count 3