httk.atomistic.models.moments.cartesian

Cartesian per-site magnetic-moment backend.

Classes

CartesianSiteMoments

Per-site Cartesian magnetic moments, exactly held in Bohr magnetons.

Module Contents

class httk.atomistic.models.moments.cartesian.CartesianSiteMoments(moments, precision=None)[source]

Bases: httk.atomistic.models.moments.backend.SiteMomentsBackend

Per-site Cartesian magnetic moments, exactly held in Bohr magnetons.

kind = 'cartesian'[source]
property cartesian_moments: httk.core.SurdVector[source]

The exact Nx3 Cartesian moments, one row per site.

property precision: fractions.Fraction | None[source]

How precisely the moments were stated, in Bohr magnetons, or None.

Concrete rather than abstract, so a backend with no source of precision inherits None instead of breaking.