grogu package
Submodules
grogu.example module
grogu.jij module
grogu.useful module
- grogu.useful.RotM(theta, u, eps=1e-10)[source]
Definition of rotation matrix with angle theta around direction u.
- grogu.useful.RotMa2b(a, b, eps=1e-10)[source]
Definition of rotation matrix rotating unit vector a to unit vector b. Function returns array R such that R@a = b holds.
- grogu.useful.blow_up_orbindx(orb_indices)[source]
Function to blow up orbital indeces to make SPIN BOX indices.
- grogu.useful.crossM(u)[source]
Definition for the cross-product matrix. Acting as a cross product with vector u.
- grogu.useful.make_contour(emin=-20, emax=0.0, enum=42, p=150)[source]
A more sophisticated contour generator
- grogu.useful.make_kset(dirs='xyz', NUMK=20)[source]
Simple k-grid generator. Depending on the value of the dirs argument k sampling in 1,2 or 3 dimensions is generated. If dirs argument does not contain either of x,y or z a kset of a single k-pont at the origin is returend.
- grogu.useful.parse_magnetic_entity(dh, atom=None, l=None, **kwargs)[source]
Function to define orbital indeces of a given magnetic entity. dh: a sisl Hamiltonian object atom: an integer or list of integers, defining atom (or atoms) in the unicell forming the magnetic entity l: integer, defining the angular momentum channel