pySpinW API#
Reference for the pyspinw Python package. Modules are grouped by role;
follow any link for the detailed function and class reference.
Sample and structure#
Different Kinds of samples |
|
Functions for working with different basis vectors |
|
Representation of sites (e.g. magnetic atoms) within a magnetic system. |
|
Metadata for sites |
|
Cell offsets (i.e. reference to a particular unit cell in a crystal). |
|
Calculations for finding distances between sites in a lattice |
|
Magnetic structures |
|
Identification of subsystems of a collection of sites and exchanges |
Exchange and Hamiltonian#
Exchange terms between lattice sites. |
|
Groups of exchanges, a neater way of representing multiple, similar exchanges |
|
Metadata for exchanges |
|
Functions and classes for automatically creating multiple exchanges |
|
Selection of different Hamiltonians |
|
Different kinds of anisotropy. |
Calculations and spectroscopy#
Functions for performing spin wave calculations. |
|
Calculates polarised cross-sections from Sab matrix |
|
Paths through q-space. |
|
Define experiment-level coordination between samples, instruments, and data. |
|
Instrument specification |
|
Description of measurements |
Symmetry and I/O#
Symmetry module |
|
CIF File Loading |
|
Serialisation mixin |
|
Loading files in general |
Utilities#
Tools for checking input shapes |
|
Mathematical constants used by pySpinW. |
|
Data object - placeholder |
|
Helper functions for python interface |
|
Data for working with tolerances |
|
Units |
|
Generally helpful functions that don't obviously live anywhere else in particular |