Crystal#
Class#
|
Crystal class. |
Hint
All properties and methods of Lattice are accessible directly from the crystal instance:
>>> import radtools as rad
>>> c = rad.Crystal()
>>> c.a
1.0
>>> c.b
1.0
>>> c.c
1.0
Atom methods#
Crystal.atoms
|
Add atom to the crystal. |
|
Remove atom from the crystal. |
|
Return atom object of the crystal. |
Positioning of atoms#
|
Getter for the atom coordinates. |
|
Getter for distance between the atom1 and atom2. |
|
Getter for vector from atom1 to atom2. |
Primitive cell#
Detect primitive cell. |
Energy properties#
|
Computes magnetic dipole-dipole energy. |
|
Converge magnetic dipole-dipole energy. |
Lattice getter#
Lattice of the crystal. |