httk.atomistic.models.moments.crystalaxis

Crystal-axis per-site magnetic-moment backend and exact frame conversions.

Classes

CrystalAxisSiteMoments

Moments along the unit lattice axes , , ĉ, in Bohr magnetons.

Module Contents

class httk.atomistic.models.moments.crystalaxis.CrystalAxisSiteMoments(moments, cell, precision=None)[source]

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

Moments along the unit lattice axes , , ĉ, in Bohr magnetons.

kind = 'crystalaxis'[source]
property crystalaxis_moments: httk.core.SurdVector[source]

The exact Nx3 moments along the cell’s unit lattice axes.

property cell: httk.atomistic.models.cell.cell.Cell[source]

The cell defining the crystal-axis frame.

property cartesian_moments: httk.core.SurdVector[source]

The exact Cartesian moments, using rows moments * U.

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.