magres.atoms is a collection of user-friendly data structures for representing groups of atoms and their NMR parameters. The NMR parameter structures can calculate a variety of properties from the underlying tensors, according to a variety of conventions.
A collection of atoms, including lattice parameters, and (if available) lists of NMR parameters.
A class method to easily load a magres.format.MagresFile and return the corresponding MagresAtoms.
>>> MagresAtoms.load_magres("path/to/magres/file.magres")
or
>>> MagresAtoms.load_magres(open("path/to/magres/file.magres"))
A container for a collection of atoms with an optional lattice.
Add an extra atom or list of atoms.
Get a single atom of a particular label and index.
>>> atoms.get_label("C1", 2)
Get a single atom of a particular species and index.
>>> atoms.get_species('C', 2)
Return a MagresAtomsView containing only atoms of the specified label.
>>> atoms.label("C1")
Return a MagresAtomsView containing only atoms of the specified species.
>>> atoms.species('C')
Return all atoms within max_dr Angstroms of pos, including all images.
>>> atoms.within(p, 5.0)
The quadrupole moment of this atom’s species and isotope.
Calculate distance from this atom to another position or atom.
The gyromagnetic ratio constant of this atom’s species and isotope.
This atom’s label index.
The isotope of this atom. Assumed to be most common NMR-active nucleus unless specified otherwise.
This atom’s label.
This atom’s position in cartesian coordinates. Units are Angstroms.
This atom’s species.
Representation of the magnetic shielding of a particular atom.
The shielding anisotropy. Defined by
The asymmetric part of sigma.
The shielding asymmetry. Defined by
The eigenvalues of sigma, ordered according to the Haeberlen convention:
where
sigma_XX = evals[0] sigma_YY = evals[1] sigma_ZZ = evals[2]
The eigenvalues of sigma ordered according to the Mehring notation:
The eigenvalues and eigenvectors of the symmetric part of sigma, ordered according to the Haeberlen convention:
where
sigma_XX = evals[0] sigma_YY = evals[1] sigma_ZZ = evals[2]
The eigenvalues and eigenvectors of the symmetric part of sigma ordered according to the Mehring notation:
The eigenvectors of sigma, ordered according to the Haeberlen convention:
where
sigma_XX = evals[0] sigma_YY = evals[1] sigma_ZZ = evals[2]
The eigenvectors of sigma ordered according to the Mehring notation:
The isotropic part of sigma. Defined by
The sigma tensor, i.e. the magnetic shielding.
The skew of sigma. Defined by
The span of sigma. Defined by
The symmetric part of sigma.
The shielding anisotropy (alternative). Defined by
Representation of the electric field gradient on a particular atom.
The Cq of the V tensor.
Where Q is the quadrupole moment of this particular species, e is the electron charge and h is Planck’s constant.
The EFG V tensor in atomic units.
The eigenvalues of V, ordered according to the Haeberlen convention:
where
= evals[0]
= evals[1]
= evals[2]
The eigenvalues and eigenvectors of V, ordered according to the Haeberlen convention:
where
= evals[0]
= evals[1]
= evals[2]
The eigenvectors of V, ordered according to the Haeberlen convention:
where
= evals[0]
= evals[1]
= evals[2]
Representation of the indirect spin coupling between two atoms.
The spin-spin coupling J tensor.
The J anisotropy.
The asymmetric component of the indirect spin-spin coupling tensor J.
The K principal component asymmetry.
The isotropic component of the indirect spin-spin coupling J tensor.
The symmetric component of the indirect spin-spin coupling tensor J.
The reduced indirect spin-spin coupling K tensor.
The K anisotropy.
The asymmetric component of the reduced indirect spin-spin coupling tensor K.
The K principal component asymmetry.
The isotropic component of the reduced indirect spin-spin coupling tensor.
The symmetric component of the reduced indirect spin-spin coupling tensor K.
The distance between the two atoms involved.
A textual symbol representing this coupling.