Geometry
Molecular geometry.
Usage
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 likesymbols. Apint.Quantitywith 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
geo = 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