diff --git a/README.md b/README.md index fd35883..c355a29 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,16 @@ pre-commit install pre-commit run --all-files ``` -To build the documentation navigate to the `docs/source` folder and run `make clean` and `make html`. After this the html page can be found in `docs/source/_build/html`. +To build the documentation navigate to the `docs/source` folder. Then autogenerate the documentation and build. After this the html page can be found in `docs/source/_build/html`. Follow the commands below. ``` cd docs/source +sphinx-apidoc -o ./implementation/ ../../src/ make clean make html ``` +To build a pdf containing the documentation instead of make, first navigate to the `docs/source` folde, then use the rst2pdf extension. +``` +cd docs/source +sphinx-apidoc -o ./implementation/ ../../src/ +sphinx-build -b pdf . _build/pdf +``` diff --git a/docs/_build/doctrees/grogupy.doctree b/docs/_build/doctrees/grogupy.doctree deleted file mode 100644 index bd66d09..0000000 Binary files a/docs/_build/doctrees/grogupy.doctree and /dev/null differ diff --git a/docs/_build/doctrees/implementation/index.doctree b/docs/_build/doctrees/implementation/index.doctree deleted file mode 100644 index 766f10e..0000000 Binary files a/docs/_build/doctrees/implementation/index.doctree and /dev/null differ diff --git a/docs/_build/html/_sources/environment.rst.txt b/docs/_build/html/_sources/environment.rst.txt deleted file mode 100644 index 73ff15a..0000000 --- a/docs/_build/html/_sources/environment.rst.txt +++ /dev/null @@ -1,2 +0,0 @@ -Environment variables -===================== \ No newline at end of file diff --git a/docs/_build/html/_sources/grogupy.rst.txt b/docs/_build/html/_sources/grogupy.rst.txt deleted file mode 100644 index 18af50d..0000000 --- a/docs/_build/html/_sources/grogupy.rst.txt +++ /dev/null @@ -1,53 +0,0 @@ -grogupy package -=============== - -Submodules ----------- - -grogupy.core module -------------------- - -.. automodule:: grogupy.core - :members: - :undoc-members: - :show-inheritance: - -grogupy.grogu module --------------------- - -.. automodule:: grogupy.grogu - :members: - :undoc-members: - :show-inheritance: - -grogupy.io module ------------------ - -.. automodule:: grogupy.io - :members: - :undoc-members: - :show-inheritance: - -grogupy.magnetism module ------------------------- - -.. automodule:: grogupy.magnetism - :members: - :undoc-members: - :show-inheritance: - -grogupy.utilities module ------------------------- - -.. automodule:: grogupy.utilities - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: grogupy - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/_build/html/_sources/implementation/index.rst.txt b/docs/_build/html/_sources/implementation/index.rst.txt deleted file mode 100644 index cca03c6..0000000 --- a/docs/_build/html/_sources/implementation/index.rst.txt +++ /dev/null @@ -1,11 +0,0 @@ -Implementation -============== - -.. autosummary:: - :toctree: generated - :recursive: - - core - magnetism - utilities - io \ No newline at end of file diff --git a/docs/_build/html/environment.html b/docs/_build/html/environment.html deleted file mode 100644 index 2875f2c..0000000 --- a/docs/_build/html/environment.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - Environment variables — grogupy 1.0.0 documentation - - - - - - - - - - - - - - - - - - - -
- - -
- -
-
-
- -
-
-
-
- -
-

Environment variables

-
- - -
-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/docs/_build/html/grogupy.html b/docs/_build/html/grogupy.html deleted file mode 100644 index 5b2878f..0000000 --- a/docs/_build/html/grogupy.html +++ /dev/null @@ -1,822 +0,0 @@ - - - - - - - - - grogupy package — grogupy 1.0.0 documentation - - - - - - - - - - - - - - - - - -
- - -
- -
-
-
- -
-
-
-
- -
-

grogupy package

-
-

Submodules

-
-
-

grogupy.core module

-
-
-grogupy.core.build_hh_ss(dh)[source]
-

It builds the Hamiltonian and Overlap matrix from the sisl.dh class.

-

It restructures the data in the SPIN BOX representation, where NS is -the number of supercells and NO is the number of orbitals.

-
-
Parameters:
-

dh – sisl.physics.Hamiltonian -Hamiltonian read in by sisl

-
-
Returns:
-

-
(NS, NO, NO) np.array_like

Hamiltonian in SPIN BOX representation

-
-
ss(NS, NO, NO) np.array_like

Overlap matrix in SPIN BOX representation

-
-
-

-
-
Return type:
-

hh

-
-
-
- -
-
-grogupy.core.calc_Vu(H, Tu)[source]
-

Calculates the local perturbation in case of a spin rotation.

-
-
Parameters:
-
    -
  • H – (NO, NO) np.array_like -Hamiltonian

  • -
  • Tu – (NO, NO) array_like -Rotation around u

  • -
-
-
Returns:
-

-
(NO, NO) np.array_like

First order perturbed matrix

-
-
Vu2(NO, NO) np.array_like

Second order perturbed matrix

-
-
-

-
-
Return type:
-

Vu1

-
-
-
- -
-
-grogupy.core.onsite_projection(matrix, idx1, idx2)[source]
-

It produces the slices of a matrix for the on site projection.

-

The slicing is along the last two axes as these contains the orbital indexing.

-
-
Parameters:
-
    -
  • matrix – (…, :, :) np.array_like -Some matrix

  • -
  • idx – np.array_like -The indexes of the orbitals

  • -
-
-
Returns:
-

-
np.array_like

Reduced matrix based on the projection

-
-
-

-
-
-
- -
-
-grogupy.core.parallel_Gk(HK, SK, eran, eset)[source]
-

Calculates the Greens function by inversion.

-

It calculates the Greens function on all the energy levels at the same time.

-
-
Parameters:
-
    -
  • HK – (NO, NO), np.array_like -Hamiltonian at a given k point

  • -
  • SK – (NO, NO), np.array_like -Overlap Matrix at a given k point

  • -
  • eran – (eset) np.array_like -Energy sample along the contour

  • -
  • eset – int -Number of energy samples along the contour

  • -
-
-
Returns:
-

-
(eset, NO, NO), np.array_like

Green’s function at a given k point

-
-
-

-
-
Return type:
-

Gk

-
-
-
- -
-
-grogupy.core.remove_clutter_for_save(pairs, magnetic_entities)[source]
-

Removes unimportant data from the dictionaries.

-

It is used before saving to throw away data that -is not needed for post processing.

-
-
Parameters:
-
    -
  • pairs – dict -Contains all the pair information

  • -
  • magnetic_entities – dict -Contains all the magnetic entity information

  • -
-
-
Returns:
-

-
dict

Contains all the reduced pair information

-
-
magnetic_entitiesdict

Contains all the reduced magnetic entity information

-
-
-

-
-
Return type:
-

pairs

-
-
-
- -
-
-grogupy.core.sequential_GK(HK, SK, eran, eset)[source]
-

Calculates the Greens function by inversion.

-

It calculates sequentially over the energy levels.

-
-
Parameters:
-
    -
  • HK – (NO, NO), np.array_like -Hamiltonian at a given k point

  • -
  • SK – (NO, NO), np.array_like -Overlap Matrix at a given k point

  • -
  • eran – (eset) np.array_like -Energy sample along the contour

  • -
  • eset – int -Number of energy samples along the contour

  • -
-
-
Returns:
-

-
(eset, NO, NO), np.array_like

Green’s function at a given k point

-
-
-

-
-
Return type:
-

Gk

-
-
-
- -
-
-grogupy.core.setup_pairs_and_magnetic_entities(magnetic_entities, pairs, dh, simulation_parameters)[source]
-

It creates the complete structure of the dictionaries and fills some basic data.

-

It creates orbital indexes, spin box indexes, coordinates and tags for magnetic entities. -Furthermore it creates the structures for the energies, the perturbed potentials and -the Greens function calculation. It dose the same for the pairs.

-
-
Parameters:
-
    -
  • pairs – dict -Contains the initial pair information

  • -
  • magnetic_entities – dict -Contains the initial magnetic entity information

  • -
  • dh – sisl.physics.Hamiltonian -Hamiltonian read in by sisl

  • -
  • simulation_parameters – dict -A set of parameters from the simulation

  • -
-
-
Returns:
-

-
dict

Contains the initial information and the complete structure

-
-
magnetic_entitiesdict

Contains the initial information and the complete structure

-
-
-

-
-
Return type:
-

pairs

-
-
-
- -
-
-

grogupy.grogu module

-
-
-grogupy.grogu.main()[source]
-
- -
-
-

grogupy.io module

-
-
-grogupy.io.load_pickle(infile)[source]
-

Loads the data from the infile with pickle.

-
-
Parameters:
-

infile – str -Path to infile

-
-
Returns:
-

-
dict

A dictionary of data

-
-
-

-
-
Return type:
-

data

-
-
-
- -
-
-grogupy.io.print_atoms_and_pairs(magnetic_entities, pairs)[source]
-

It prints the pair and magnetic entity information for the grogu out.

-
-
Parameters:
-
    -
  • magnetic_entities – dict -It contains the data on the magnetic entities

  • -
  • pairs – dict -It contains the data on the pairs

  • -
-
-
-
- -
-
-grogupy.io.print_job_description(simulation_parameters)[source]
-

It prints the parameters and the description of the job.

-
-
Parameters:
-

simulation_parameters – dict -It contains the simulations parameters

-
-
-
- -
-
-grogupy.io.print_parameters(simulation_parameters)[source]
-

It prints the simulation parameters for the grogu out.

-
-
Parameters:
-

simulation_parameters – dict -It contains the simulations parameters

-
-
-
- -
-
-grogupy.io.print_runtime_information(times)[source]
-

It prints the runtime information for the grogu out.

-
-
Parameters:
-

times – dict -It contains the runtime data

-
-
-
- -
-
-grogupy.io.save_pickle(outfile, data)[source]
-

Saves the data in the outfile with pickle.

-
-
Parameters:
-
    -
  • outfile – str -Path to outfile

  • -
  • data – dict -Contains the data

  • -
-
-
-
- -
-
-

grogupy.magnetism module

-
-
-grogupy.magnetism.blow_up_orbindx(orb_indices)[source]
-

Function to blow up orbital indices to make SPIN BOX indices.

-
-
Parameters:
-

orb_indices – np.array_like -These are the indices in ORBITAL BOX

-
-
Returns:
-

-
np.array_like

These are the indices in SPIN BOX

-
-
-

-
-
Return type:
-

orb_indices

-
-
-
- -
-
-grogupy.magnetism.calculate_anisotropy_tensor(mag_ent)[source]
-

Calculates the renormalized anisotropy tensor from the energies.

-

It uses the grogu convention for output.

-
-
Parameters:
-

mag_ent – dict -An element from the magnetic entities

-
-
Returns:
-

-
np.array_like

elements of the anisotropy tensor

-
-
-

-
-
Return type:
-

K

-
-
-
- -
-
-grogupy.magnetism.calculate_exchange_tensor(pair)[source]
-

Calculates the exchange tensor from the energies.

-

It produces the isotropic exchange, the relevant elements -from the Dzyaloshinskii-Morilla (Dm) tensor, the symmetric-anisotropy -and the complete exchange tensor.

-
-
Parameters:
-

pair – dict -An element from the pairs

-
-
Returns:
-

-
float

Isotropic exchange (Tr[J] / 3)

-
-
J_Snp.array_like

Symmetric-anisotropy (J_S = J - J_iso * I ––> Jxx, Jyy, Jxy, Jxz, Jyz)

-
-
Dnp.array_like

DM elements (Dx, Dy, Dz)

-
-
Jnp.array_like

Complete exchange tensor flattened (Jxx, Jxy, Jxz, Jyx, Jyy, Jyz, Jzx, Jzy, Jzz)

-
-
-

-
-
Return type:
-

J_iso

-
-
-
- -
-
-grogupy.magnetism.parse_magnetic_entity(dh, atom=None, l=None, **kwargs)[source]
-

Function to define orbital indexes of a given magnetic entity.

-
-
Parameters:
-
    -
  • dh – sisl.physics.Hamiltonian -Hamiltonian from sisl

  • -
  • atom – integer or list of integers, optional -Defining atom (or atoms) in the unit cell forming the magnetic entity. Defaults to None

  • -
  • l – integer, optional -Defining the angular momentum channel. Defaults to None

  • -
-
-
Returns:
-

-
list

The orbital indexes of the given magnetic entity

-
-
-

-
-
-
- -
-
-grogupy.magnetism.spin_tracer(M)[source]
-

Spin tracer utility.

-

This takes an operator with the orbital-spin sequence: -orbital 1 up, -orbital 1 down, -orbital 2 up, -orbital 2 down, -that is in the SPIN-BOX representation, -and extracts orbital dependent Pauli traces.

-
-
Parameters:
-

M – np.array_like -Traceable matrix

-
-
Returns:
-

-
dict

It contains the traced matrix with “x”, “y”, “z” and “c”

-
-
-

-
-
-
- -
-
-

grogupy.utilities module

-
-
-grogupy.utilities.RotM(theta, u, eps=1e-10)[source]
-

Definition of rotation matrix with angle theta around direction u.

-
-
Parameters:
-
    -
  • theta – float -The angle of rotation

  • -
  • u – np.array_like -The rotation axis

  • -
  • eps – float, optional -Cutoff for small elements in the resulting matrix. Defaults to 1e-10

  • -
-
-
Returns:
-

-
np.array_like

The rotation matrix

-
-
-

-
-
-
- -
-
-grogupy.utilities.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.

-
-
Parameters:
-
    -
  • a – np.array_like -First vector

  • -
  • b – np.array_like -Second vector

  • -
  • eps – float, optional -Cutoff for small elements in the resulting matrix. Defaults to 1e-10

  • -
-
-
Returns:
-

-
np.array_like

The rotation matrix with the above property

-
-
-

-
-
-
- -
-
-grogupy.utilities.commutator(a, b)[source]
-

Shorthand for commutator.

-

Commutator of two matrices in the mathematical sense.

-
-
Parameters:
-
    -
  • a – np.array_like -The first matrix

  • -
  • b – np.array_like -The second matrix

  • -
-
-
Returns:
-

-
np.array_like

The commutator of a and b

-
-
-

-
-
-
- -
-
-grogupy.utilities.crossM(u)[source]
-

Definition for the cross-product matrix.

-

It acts as a cross product with vector u.

-
-
Parameters:
-

u – list or np.array_like -The second vector in the cross product

-
-
Returns:
-

-
np.array_like

The matrix that represents teh cross product with a vector

-
-
-

-
-
-
- -
-
-grogupy.utilities.hsk(H, ss, sc_off, k=(0, 0, 0))[source]
-

Speed up Hk and Sk generation.

-

Calculates the Hamiltonian and the Overlap matrix at a given k point. It is faster that the sisl version.

-
-
Parameters:
-
    -
  • H – np.array_like -Hamiltonian in spin box form

  • -
  • ss – np.array_like -Overlap matrix in spin box form

  • -
  • sc_off – list -supercell indexes of the Hamiltonian

  • -
  • k – tuple, optional -The k point where the matrices are set up. Defaults to (0, 0, 0)

  • -
-
-
Returns:
-

-
np.array_like

Hamiltonian at the given k point

-
-
np.array_like

Overlap matrix at the given k point

-
-
-

-
-
-
- -
-
-grogupy.utilities.int_de_ke(traced, we)[source]
-

It numerically integrates the traced matrix.

-

It is a wrapper from numpy.trapz and it contains the -relevant constants to calculate the energy integral from -equation 93 or 96.

-
-
Parameters:
-
    -
  • traced – np.array_like -The trace of a matrix or a matrix product

  • -
  • we – float -The weight of a point on the contour

  • -
-
-
Returns:
-

-
float

The energy calculated from the integral formula

-
-
-

-
-
-
- -
-
-grogupy.utilities.make_contour(emin=-20, emax=0.0, enum=42, p=150)[source]
-

A more sophisticated contour generator.

-

Calculates the parameters for the complex contour integral. It uses the -Legendre-Gauss quadrature method. It returns a class that contains -the information for the contour integral.

-
-
Parameters:
-
    -
  • emin – int, optional -Energy minimum of the contour. Defaults to -20

  • -
  • emax – float, optional -Energy maximum of the contour. Defaults to 0.0, so the Fermi level

  • -
  • enum – int, optional -Number of sample points along the contour. Defaults to 42

  • -
  • p – int, optional -Shape parameter that describes the distribution of the sample points. Defaults to 150

  • -
-
-
Returns:
-

-
ccont

Contains all the information for the contour integral

-
-
-

-
-
-
- -
-
-grogupy.utilities.make_kset(dirs='xyz', NUMK=20)[source]
-

Simple k-grid generator to sample the Brillouin zone.

-

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 returned. The total number of k points is the NUMK**(dimensions)

-
-
Parameters:
-
    -
  • dirs – str, optional -Directions of the k points in the Brillouin zone. They are the three lattice vectors. Defaults to “xyz”

  • -
  • NUMK – int, optional -The number of k points in a direction. Defaults to 20

  • -
-
-
Returns:
-

-
np.array_like

An array of k points that uniformly sample the Brillouin zone in the given directions

-
-
-

-
-
-
- -
-
-grogupy.utilities.read_siesta_emin(eigfile)[source]
-

It reads the lowest energy level from the siesta run.

-

It uses the .EIG file from siesta that contains the eigenvalues.

-
-
Parameters:
-

eigfile – str -The path to the .EIG file

-
-
Returns:
-

-
float

The energy minimum

-
-
-

-
-
-
- -
-
-grogupy.utilities.tau_u(u)[source]
-

Pauli matrix in direction u.

-

Returns the vector u in the basis of the Pauli matrices.

-
-
Parameters:
-

u – list or np.array_like -The direction

-
-
Returns:
-

-
np.array_like

Arbitrary direction in the base of the Pauli matrices

-
-
-

-
-
-
- -
-
-

Module contents

-
-
- - -
-
- -
-
-
-
- - - - \ No newline at end of file diff --git a/docs/_build/html/modules.html b/docs/_build/html/modules.html deleted file mode 100644 index 188f37d..0000000 --- a/docs/_build/html/modules.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - grogupy — grogupy 1.0.0 documentation - - - - - - - - - - - - - - - - - -
- - -
- - -
-
- - - - \ No newline at end of file diff --git a/docs/_build/html/objects.inv b/docs/_build/html/objects.inv deleted file mode 100644 index 2a0ce06..0000000 Binary files a/docs/_build/html/objects.inv and /dev/null differ diff --git a/docs/_build/html/searchindex.js b/docs/_build/html/searchindex.js deleted file mode 100644 index ab00f4e..0000000 --- a/docs/_build/html/searchindex.js +++ /dev/null @@ -1 +0,0 @@ -Search.setIndex({"alltitles": {"Bibliography": [[0, null]], "Changelog": [[1, null]], "Citing grogupy": [[2, null]], "Command line usage": [[12, "command-line-usage"]], "Contributing to grogupy": [[3, null]], "Environment variables": [[4, null]], "Implementation": [[10, null]], "Indices and tables": [[11, "indices-and-tables"]], "Introduction": [[12, null]], "Module contents": [[5, "module-grogupy"]], "Package": [[12, "package"]], "Quickstart": [[14, null]], "Submodules": [[5, "submodules"]], "Tutorials": [[15, null]], "core": [[6, null]], "grogupy": [[13, null]], "grogupy package": [[5, null]], "grogupy.core module": [[5, "module-grogupy.core"]], "grogupy.grogu module": [[5, "module-grogupy.grogu"]], "grogupy.io module": [[5, "module-grogupy.io"]], "grogupy.magnetism module": [[5, "module-grogupy.magnetism"]], "grogupy.utilities module": [[5, "module-grogupy.utilities"]], "grogupy: Script for calculating magnetic interactions": [[11, null]], "installation": [[14, "installation"]], "io": [[7, null]], "magnetism": [[8, null]], "utilities": [[9, null]]}, "docnames": ["bibliography", "changelog/index", "cite", "dev/index", "environment", "grogupy", "implementation/generated/core", "implementation/generated/io", "implementation/generated/magnetism", "implementation/generated/utilities", "implementation/index", "index", "introduction", "modules", "quickstart/index", "tutorials/index"], "envversion": {"sphinx": 62, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinxcontrib.bibtex": 9}, "filenames": ["bibliography.rst", "changelog/index.rst", "cite.rst", "dev/index.rst", "environment.rst", "grogupy.rst", "implementation/generated/core.rst", "implementation/generated/io.rst", "implementation/generated/magnetism.rst", "implementation/generated/utilities.rst", "implementation/index.rst", "index.rst", "introduction.rst", "modules.rst", "quickstart/index.rst", "tutorials/index.rst"], "indexentries": {"blow_up_orbindx() (in module grogupy.magnetism)": [[5, "grogupy.magnetism.blow_up_orbindx", false]], "build_hh_ss() (in module grogupy.core)": [[5, "grogupy.core.build_hh_ss", false]], "calc_vu() (in module grogupy.core)": [[5, "grogupy.core.calc_Vu", false]], "calculate_anisotropy_tensor() (in module grogupy.magnetism)": [[5, "grogupy.magnetism.calculate_anisotropy_tensor", false]], "calculate_exchange_tensor() (in module grogupy.magnetism)": [[5, "grogupy.magnetism.calculate_exchange_tensor", false]], "commutator() (in module grogupy.utilities)": [[5, "grogupy.utilities.commutator", false]], "core": [[6, "module-core", false]], "crossm() (in module grogupy.utilities)": [[5, "grogupy.utilities.crossM", false]], "grogupy": [[5, "module-grogupy", false], [11, "module-grogupy", false]], "grogupy.core": [[5, "module-grogupy.core", false]], "grogupy.grogu": [[5, "module-grogupy.grogu", false]], "grogupy.io": [[5, "module-grogupy.io", false]], "grogupy.magnetism": [[5, "module-grogupy.magnetism", false]], "grogupy.utilities": [[5, "module-grogupy.utilities", false]], "hsk() (in module grogupy.utilities)": [[5, "grogupy.utilities.hsk", false]], "int_de_ke() (in module grogupy.utilities)": [[5, "grogupy.utilities.int_de_ke", false]], "io": [[7, "module-io", false]], "load_pickle() (in module grogupy.io)": [[5, "grogupy.io.load_pickle", false]], "magnetism": [[8, "module-magnetism", false]], "main() (in module grogupy.grogu)": [[5, "grogupy.grogu.main", false]], "make_contour() (in module grogupy.utilities)": [[5, "grogupy.utilities.make_contour", false]], "make_kset() (in module grogupy.utilities)": [[5, "grogupy.utilities.make_kset", false]], "module": [[5, "module-grogupy", false], [5, "module-grogupy.core", false], [5, "module-grogupy.grogu", false], [5, "module-grogupy.io", false], [5, "module-grogupy.magnetism", false], [5, "module-grogupy.utilities", false], [6, "module-core", false], [7, "module-io", false], [8, "module-magnetism", false], [9, "module-utilities", false], [11, "module-grogupy", false]], "onsite_projection() (in module grogupy.core)": [[5, "grogupy.core.onsite_projection", false]], "parallel_gk() (in module grogupy.core)": [[5, "grogupy.core.parallel_Gk", false]], "parse_magnetic_entity() (in module grogupy.magnetism)": [[5, "grogupy.magnetism.parse_magnetic_entity", false]], "print_atoms_and_pairs() (in module grogupy.io)": [[5, "grogupy.io.print_atoms_and_pairs", false]], "print_job_description() (in module grogupy.io)": [[5, "grogupy.io.print_job_description", false]], "print_parameters() (in module grogupy.io)": [[5, "grogupy.io.print_parameters", false]], "print_runtime_information() (in module grogupy.io)": [[5, "grogupy.io.print_runtime_information", false]], "read_siesta_emin() (in module grogupy.utilities)": [[5, "grogupy.utilities.read_siesta_emin", false]], "remove_clutter_for_save() (in module grogupy.core)": [[5, "grogupy.core.remove_clutter_for_save", false]], "rotm() (in module grogupy.utilities)": [[5, "grogupy.utilities.RotM", false]], "rotma2b() (in module grogupy.utilities)": [[5, "grogupy.utilities.RotMa2b", false]], "save_pickle() (in module grogupy.io)": [[5, "grogupy.io.save_pickle", false]], "sequential_gk() (in module grogupy.core)": [[5, "grogupy.core.sequential_GK", false]], "setup_pairs_and_magnetic_entities() (in module grogupy.core)": [[5, "grogupy.core.setup_pairs_and_magnetic_entities", false]], "spin_tracer() (in module grogupy.magnetism)": [[5, "grogupy.magnetism.spin_tracer", false]], "tau_u() (in module grogupy.utilities)": [[5, "grogupy.utilities.tau_u", false]], "utilities": [[9, "module-utilities", false]]}, "objects": {"": [[6, 0, 0, "-", "core"], [11, 0, 0, "-", "grogupy"], [7, 0, 0, "-", "io"], [8, 0, 0, "-", "magnetism"], [9, 0, 0, "-", "utilities"]], "grogupy": [[5, 0, 0, "-", "core"], [5, 0, 0, "-", "grogu"], [5, 0, 0, "-", "io"], [5, 0, 0, "-", "magnetism"], [5, 0, 0, "-", "utilities"]], "grogupy.core": [[5, 1, 1, "", "build_hh_ss"], [5, 1, 1, "", "calc_Vu"], [5, 1, 1, "", "onsite_projection"], [5, 1, 1, "", "parallel_Gk"], [5, 1, 1, "", "remove_clutter_for_save"], [5, 1, 1, "", "sequential_GK"], [5, 1, 1, "", "setup_pairs_and_magnetic_entities"]], "grogupy.grogu": [[5, 1, 1, "", "main"]], "grogupy.io": [[5, 1, 1, "", "load_pickle"], [5, 1, 1, "", "print_atoms_and_pairs"], [5, 1, 1, "", "print_job_description"], [5, 1, 1, "", "print_parameters"], [5, 1, 1, "", "print_runtime_information"], [5, 1, 1, "", "save_pickle"]], "grogupy.magnetism": [[5, 1, 1, "", "blow_up_orbindx"], [5, 1, 1, "", "calculate_anisotropy_tensor"], [5, 1, 1, "", "calculate_exchange_tensor"], [5, 1, 1, "", "parse_magnetic_entity"], [5, 1, 1, "", "spin_tracer"]], "grogupy.utilities": [[5, 1, 1, "", "RotM"], [5, 1, 1, "", "RotMa2b"], [5, 1, 1, "", "commutator"], [5, 1, 1, "", "crossM"], [5, 1, 1, "", "hsk"], [5, 1, 1, "", "int_de_ke"], [5, 1, 1, "", "make_contour"], [5, 1, 1, "", "make_kset"], [5, 1, 1, "", "read_siesta_emin"], [5, 1, 1, "", "tau_u"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:function"}, "terms": {"": [5, 7], "0": 5, "1": [5, 12], "10": 5, "150": 5, "1e": 5, "2": 5, "20": 5, "3": 5, "42": 5, "93": 5, "96": 5, "A": 5, "At": 7, "If": 5, "It": [5, 7], "Its": 7, "NO": 5, "The": [5, 7, 12], "These": 5, "abov": 5, "abstract": 7, "access": 7, "act": 5, "all": 5, "allow": 7, "along": 5, "an": [5, 7], "angl": 5, "angular": 5, "anisotropi": 5, "anoth": 7, "ar": [5, 7], "arbitrari": 5, "argument": [5, 7], "around": 5, "arrai": 5, "array_lik": 5, "atom": 5, "awai": 5, "ax": 5, "axi": 5, "b": 5, "background": 11, "base": [5, 7, 11, 12], "basi": 5, "basic": [5, 7, 11], "befor": 5, "between": 7, "blksize": 7, "blow": 5, "blow_up_orbindx": [5, 13], "both": 7, "box": 5, "brillouin": 5, "buffer": 7, "bufferediobas": 7, "bufferedrandom": 7, "bufferedread": 7, "bufferedrwpair": 7, "bufferedwrit": 7, "build": 5, "build_hh_ss": [5, 13], "builtin": 7, "byte": 7, "bytesio": 7, "c": 5, "calc_vu": [5, 13], "calcul": 5, "calculate_anisotropy_tensor": [5, 13], "calculate_exchange_tensor": [5, 13], "can": [11, 14], "case": 5, "ccont": 5, "cell": 5, "channel": 5, "class": [5, 7], "come": [1, 2, 3, 12, 14, 15], "commut": [5, 13], "complet": 5, "complex": 5, "constant": 5, "contain": [5, 7], "content": 13, "contour": 5, "convent": 5, "coordin": 5, "core": 13, "creat": 5, "cross": 5, "crossm": [5, 13], "cutoff": 5, "d": 5, "data": [5, 7], "deal": 7, "decod": 7, "default": [5, 7], "default_buffer_s": 7, "defin": [5, 7], "definit": 5, "depend": 5, "describ": 5, "descript": [5, 11], "detail": 11, "dft": 11, "dh": 5, "dict": 5, "dictionari": 5, "dimens": 5, "dir": 5, "direct": 5, "distribut": 5, "dm": 5, "do": 7, "document": 12, "doe": 5, "dose": 5, "down": 5, "dx": 5, "dy": 5, "dz": 5, "dzyaloshinskii": 5, "eig": 5, "eigenvalu": 5, "eigfil": 5, "either": 5, "element": 5, "emax": 5, "emin": 5, "encod": 7, "energi": 5, "entiti": 5, "enum": 5, "ep": 5, "equat": 5, "eran": 5, "eset": 5, "except": 7, "exchang": 5, "extend": 7, "extract": 5, "faster": 5, "fermi": 5, "file": [5, 7], "fileio": 7, "fill": 5, "final": 7, "first": 5, "flatten": 5, "float": 5, "form": 5, "format": 12, "formula": 5, "from": [5, 14], "function": [5, 6, 7, 8, 9], "furthermor": 5, "gauss": 5, "gener": [5, 11], "given": [5, 7], "gk": 5, "go": 12, "green": 5, "grid": 5, "grogu": [11, 13], "grogupi": 14, "groupi": 11, "guid": 11, "h": 5, "hamiltonian": 5, "handl": 7, "here": 11, "hh": 5, "hierarchi": 7, "hk": 5, "hold": 5, "how": 11, "howev": 7, "hsk": [5, 13], "http": 14, "i": [5, 7, 11], "idx": 5, "idx1": 5, "idx2": 5, "implement": [7, 11], "index": [5, 11, 14], "indic": 5, "infil": 5, "inform": 5, "initi": 5, "inspir": 12, "instal": 12, "int": [5, 7], "int_de_k": [5, 13], "integ": 5, "integr": 5, "intend": 7, "interfac": 7, "invers": 5, "io": 13, "iobas": 7, "isotrop": 5, "j": 5, "j_": 5, "j_iso": 5, "job": 5, "jxx": 5, "jxy": 5, "jxz": 5, "jyi": 5, "jyx": 5, "jyz": 5, "jzx": 5, "jzy": 5, "jzz": 5, "k": 5, "keyword": 7, "kset": 5, "kwarg": 5, "l": 5, "last": 5, "lattic": 5, "legendr": 5, "level": 5, "list": 5, "load": 5, "load_pickl": [5, 13], "local": 5, "lowest": 5, "m": [5, 14], "mag_ent": 5, "magnet": 13, "magnetic interact": 11, "magnetic_ent": 5, "main": [5, 13], "make": 5, "make_contour": [5, 13], "make_kset": [5, 13], "mathemat": 5, "matlab": 11, "matric": 5, "matrix": 5, "maximum": 5, "memori": 7, "method": 5, "minimum": 5, "modul": [7, 11, 13], "momentum": 5, "more": [5, 11], "morilla": 5, "n": 5, "name": 7, "need": 5, "none": 5, "note": 7, "np": 5, "number": 5, "numer": 5, "numk": 5, "numpi": 5, "o": 7, "obtain": 7, "onli": 7, "onsite_project": [5, 13], "open": 7, "oper": [5, 7], "option": 5, "orb_indic": 5, "orbit": 5, "order": 5, "org": 14, "origin": 5, "oserror": 7, "out": 5, "outfil": 5, "output": 5, "over": 5, "overlap": 5, "p": 5, "packag": 13, "page": 11, "pair": 5, "parallel_gk": [5, 13], "paramet": 5, "parse_magnetic_ent": [5, 13], "part": 7, "path": 5, "pauli": 5, "perturb": 5, "physic": [5, 11], "pickl": 5, "pip": 14, "point": 5, "pont": 5, "possibl": 7, "post": 5, "potenti": 5, "print": 5, "print_atoms_and_pair": [5, 13], "print_job_descript": [5, 13], "print_paramet": [5, 13], "print_runtime_inform": [5, 13], "process": 5, "produc": 5, "product": 5, "project": 5, "properti": 5, "provid": 7, "pypi": 14, "python": [7, 11], "python3": 14, "quadratur": 5, "quick": 11, "quickstart": 11, "r": 5, "rais": 7, "random": 7, "raw": 7, "rawiobas": 7, "read": [5, 7], "read_siesta_emin": [5, 13], "readabl": 7, "reduc": 5, "relev": 5, "remov": 5, "remove_clutter_for_sav": [5, 13], "renorm": 5, "repres": 5, "represent": 5, "respect": 7, "restructur": 5, "result": 5, "return": 5, "rotat": 5, "rotm": [5, 13], "rotma2b": [5, 13], "run": 5, "runtim": 5, "same": 5, "sampl": 5, "save": 5, "save_pickl": [5, 13], "sc_off": 5, "search": 11, "second": 5, "seen": 11, "sens": 5, "separ": 7, "sequenc": 5, "sequenti": 5, "sequential_gk": [5, 13], "set": 5, "setup_pairs_and_magnetic_ent": [5, 13], "shape": 5, "shorthand": 5, "siesta": [5, 11], "simpl": [5, 7, 14], "simpli": 7, "simul": 5, "simulation_paramet": 5, "singl": 5, "sisl": [5, 12], "site": 5, "size": 7, "sk": 5, "slice": 5, "small": 5, "so": 5, "some": 5, "soon": [1, 2, 3, 12, 14, 15], "sophist": 5, "sourc": 5, "specif": 7, "speed": 5, "spin": 5, "spin_trac": [5, 13], "ss": 5, "start": 11, "stat": 7, "str": 5, "stream": 7, "stringio": 7, "structur": 5, "subclass": 7, "submodul": 13, "supercel": 5, "support": 7, "symmetr": 5, "tag": 5, "take": 5, "tau_u": [5, 13], "teh": 5, "tensor": 5, "test": 14, "text": 7, "textiobas": 7, "textiowrapp": 7, "thei": [5, 7], "theoret": 11, "theta": 5, "thi": [5, 7], "three": 5, "throw": 5, "time": 5, "top": 7, "total": 5, "tr": 5, "trace": 5, "traceabl": 5, "tracer": 5, "trapz": 5, "tu": 5, "tupl": 5, "tutori": 11, "two": 5, "type": 5, "u": 5, "uniformli": 5, "unimport": 5, "unit": 5, "up": 5, "url": 14, "us": [5, 7, 11], "util": 13, "valu": 5, "vector": 5, "version": 5, "via": 14, "vu1": 5, "vu2": 5, "wa": 12, "we": 5, "weight": 5, "where": 5, "which": 7, "wrapper": 5, "writabl": 7, "write": 7, "x": 5, "xyz": 5, "y": 5, "z": 5, "zone": 5}, "titles": ["Bibliography", "Changelog", "Citing grogupy", "Contributing to grogupy", "Environment variables", "grogupy package", "core", "io", "magnetism", "utilities", "Implementation", "grogupy: Script for calculating magnetic interactions", "Introduction", "grogupy", "Quickstart", "Tutorials"], "titleterms": {"bibliographi": 0, "calcul": 11, "changelog": 1, "cite": 2, "command": 12, "content": 5, "contribut": 3, "core": [5, 6], "environ": 4, "grogu": 5, "grogupi": [2, 3, 5, 11, 13], "implement": 10, "indic": 11, "instal": 14, "interact": 11, "introduct": 12, "io": [5, 7], "line": 12, "magnet": [5, 8, 11], "modul": 5, "packag": [5, 12], "quickstart": 14, "script": 11, "submodul": 5, "tabl": 11, "tutori": 15, "usag": 12, "util": [5, 9], "variabl": 4}}) \ No newline at end of file diff --git a/docs/environment.rst b/docs/environment.rst deleted file mode 100644 index 73ff15a..0000000 --- a/docs/environment.rst +++ /dev/null @@ -1,2 +0,0 @@ -Environment variables -===================== \ No newline at end of file diff --git a/docs/grogupy.rst b/docs/grogupy.rst deleted file mode 100644 index 18af50d..0000000 --- a/docs/grogupy.rst +++ /dev/null @@ -1,53 +0,0 @@ -grogupy package -=============== - -Submodules ----------- - -grogupy.core module -------------------- - -.. automodule:: grogupy.core - :members: - :undoc-members: - :show-inheritance: - -grogupy.grogu module --------------------- - -.. automodule:: grogupy.grogu - :members: - :undoc-members: - :show-inheritance: - -grogupy.io module ------------------ - -.. automodule:: grogupy.io - :members: - :undoc-members: - :show-inheritance: - -grogupy.magnetism module ------------------------- - -.. automodule:: grogupy.magnetism - :members: - :undoc-members: - :show-inheritance: - -grogupy.utilities module ------------------------- - -.. automodule:: grogupy.utilities - :members: - :undoc-members: - :show-inheritance: - -Module contents ---------------- - -.. automodule:: grogupy - :members: - :undoc-members: - :show-inheritance: diff --git a/docs/implementation/index.rst b/docs/implementation/index.rst deleted file mode 100644 index cca03c6..0000000 --- a/docs/implementation/index.rst +++ /dev/null @@ -1,11 +0,0 @@ -Implementation -============== - -.. autosummary:: - :toctree: generated - :recursive: - - core - magnetism - utilities - io \ No newline at end of file diff --git a/docs/Makefile b/docs/source/Makefile similarity index 100% rename from docs/Makefile rename to docs/source/Makefile diff --git a/docs/_build/doctrees/bibliography.doctree b/docs/source/_build/doctrees/bibliography.doctree similarity index 100% rename from docs/_build/doctrees/bibliography.doctree rename to docs/source/_build/doctrees/bibliography.doctree diff --git a/docs/_build/doctrees/changelog/index.doctree b/docs/source/_build/doctrees/changelog/index.doctree similarity index 100% rename from docs/_build/doctrees/changelog/index.doctree rename to docs/source/_build/doctrees/changelog/index.doctree diff --git a/docs/_build/doctrees/cite.doctree b/docs/source/_build/doctrees/cite.doctree similarity index 100% rename from docs/_build/doctrees/cite.doctree rename to docs/source/_build/doctrees/cite.doctree diff --git a/docs/_build/doctrees/dev/index.doctree b/docs/source/_build/doctrees/dev/index.doctree similarity index 100% rename from docs/_build/doctrees/dev/index.doctree rename to docs/source/_build/doctrees/dev/index.doctree diff --git a/docs/_build/doctrees/environment.pickle b/docs/source/_build/doctrees/environment.pickle similarity index 56% rename from docs/_build/doctrees/environment.pickle rename to docs/source/_build/doctrees/environment.pickle index 12a0648..9143607 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/source/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/environment.doctree b/docs/source/_build/doctrees/implementation/environment.doctree similarity index 69% rename from docs/_build/doctrees/environment.doctree rename to docs/source/_build/doctrees/implementation/environment.doctree index f46c343..eb40910 100644 Binary files a/docs/_build/doctrees/environment.doctree and b/docs/source/_build/doctrees/implementation/environment.doctree differ diff --git a/docs/source/_build/doctrees/implementation/grogupy.core.doctree b/docs/source/_build/doctrees/implementation/grogupy.core.doctree new file mode 100644 index 0000000..1603524 Binary files /dev/null and b/docs/source/_build/doctrees/implementation/grogupy.core.doctree differ diff --git a/docs/source/_build/doctrees/implementation/grogupy.doctree b/docs/source/_build/doctrees/implementation/grogupy.doctree new file mode 100644 index 0000000..1ad06f8 Binary files /dev/null and b/docs/source/_build/doctrees/implementation/grogupy.doctree differ diff --git a/docs/source/_build/doctrees/implementation/grogupy.grogu.doctree b/docs/source/_build/doctrees/implementation/grogupy.grogu.doctree new file mode 100644 index 0000000..5c6de74 Binary files /dev/null and b/docs/source/_build/doctrees/implementation/grogupy.grogu.doctree differ diff --git a/docs/source/_build/doctrees/implementation/grogupy.io.doctree b/docs/source/_build/doctrees/implementation/grogupy.io.doctree new file mode 100644 index 0000000..ce8a75b Binary files /dev/null and b/docs/source/_build/doctrees/implementation/grogupy.io.doctree differ diff --git a/docs/source/_build/doctrees/implementation/grogupy.magnetism.doctree b/docs/source/_build/doctrees/implementation/grogupy.magnetism.doctree new file mode 100644 index 0000000..76be708 Binary files /dev/null and b/docs/source/_build/doctrees/implementation/grogupy.magnetism.doctree differ diff --git a/docs/source/_build/doctrees/implementation/grogupy.utilities.doctree b/docs/source/_build/doctrees/implementation/grogupy.utilities.doctree new file mode 100644 index 0000000..09270ba Binary files /dev/null and b/docs/source/_build/doctrees/implementation/grogupy.utilities.doctree differ diff --git a/docs/_build/doctrees/modules.doctree b/docs/source/_build/doctrees/implementation/modules.doctree similarity index 79% rename from docs/_build/doctrees/modules.doctree rename to docs/source/_build/doctrees/implementation/modules.doctree index 120fcc7..a54b3ca 100644 Binary files a/docs/_build/doctrees/modules.doctree and b/docs/source/_build/doctrees/implementation/modules.doctree differ diff --git a/docs/_build/doctrees/index.doctree b/docs/source/_build/doctrees/index.doctree similarity index 58% rename from docs/_build/doctrees/index.doctree rename to docs/source/_build/doctrees/index.doctree index 65d6814..681e7c4 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/source/_build/doctrees/index.doctree differ diff --git a/docs/_build/doctrees/introduction.doctree b/docs/source/_build/doctrees/introduction.doctree similarity index 100% rename from docs/_build/doctrees/introduction.doctree rename to docs/source/_build/doctrees/introduction.doctree diff --git a/docs/_build/doctrees/quickstart/index.doctree b/docs/source/_build/doctrees/quickstart/index.doctree similarity index 100% rename from docs/_build/doctrees/quickstart/index.doctree rename to docs/source/_build/doctrees/quickstart/index.doctree diff --git a/docs/_build/doctrees/tutorials/index.doctree b/docs/source/_build/doctrees/tutorials/index.doctree similarity index 100% rename from docs/_build/doctrees/tutorials/index.doctree rename to docs/source/_build/doctrees/tutorials/index.doctree diff --git a/docs/_build/html/.buildinfo b/docs/source/_build/html/.buildinfo similarity index 100% rename from docs/_build/html/.buildinfo rename to docs/source/_build/html/.buildinfo diff --git a/docs/_build/html/_modules/grogupy/core.html b/docs/source/_build/html/_modules/grogupy/core.html similarity index 98% rename from docs/_build/html/_modules/grogupy/core.html rename to docs/source/_build/html/_modules/grogupy/core.html index 8ff4288..5ebd162 100644 --- a/docs/_build/html/_modules/grogupy/core.html +++ b/docs/source/_build/html/_modules/grogupy/core.html @@ -53,8 +53,9 @@

Advanced usage

Development

Advanced usage

Development

Advanced usage

Development

Advanced usage

Development

Advanced usage

Development

Advanced usage

Development

@@ -198,7 +191,7 @@

H

@@ -206,24 +199,15 @@

I

-

L

@@ -231,42 +215,27 @@

M

@@ -275,7 +244,7 @@

O

@@ -283,19 +252,19 @@

P

@@ -303,15 +272,15 @@

R

@@ -319,15 +288,15 @@

S

@@ -335,24 +304,11 @@

T

-

U

- - -
    -
  • - utilities - -
  • -
- diff --git a/docs/source/_build/html/implementation/environment.html b/docs/source/_build/html/implementation/environment.html new file mode 100644 index 0000000..8be167f --- /dev/null +++ b/docs/source/_build/html/implementation/environment.html @@ -0,0 +1,133 @@ + + + + + + + + + Environment variables — grogupy 1.0.0 documentation + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

Environment variables

+

Coming soon…

+
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/docs/source/_build/html/implementation/grogupy.core.html b/docs/source/_build/html/implementation/grogupy.core.html new file mode 100644 index 0000000..eee07d1 --- /dev/null +++ b/docs/source/_build/html/implementation/grogupy.core.html @@ -0,0 +1,322 @@ + + + + + + + + + grogupy.core module — grogupy 1.0.0 documentation + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+
+ +
+
+
+
+ +
+

grogupy.core module

+
+
+grogupy.core.build_hh_ss(dh)[source]
+

It builds the Hamiltonian and Overlap matrix from the sisl.dh class.

+

It restructures the data in the SPIN BOX representation, where NS is +the number of supercells and NO is the number of orbitals.

+
+
Args:
+
dhsisl.physics.Hamiltonian

Hamiltonian read in by sisl

+
+
+
+
Returns:
+
hh(NS, NO, NO) np.array_like

Hamiltonian in SPIN BOX representation

+
+
ss(NS, NO, NO) np.array_like

Overlap matrix in SPIN BOX representation

+
+
+
+
+
+ +
+
+grogupy.core.calc_Vu(H, Tu)[source]
+

Calculates the local perturbation in case of a spin rotation.

+
+
Args:
+
H(NO, NO) np.array_like

Hamiltonian

+
+
Tu(NO, NO) array_like

Rotation around u

+
+
+
+
Returns:
+
Vu1(NO, NO) np.array_like

First order perturbed matrix

+
+
Vu2(NO, NO) np.array_like

Second order perturbed matrix

+
+
+
+
+
+ +
+
+grogupy.core.onsite_projection(matrix, idx1, idx2)[source]
+

It produces the slices of a matrix for the on site projection.

+

The slicing is along the last two axes as these contains the orbital indexing.

+
+
Args:
+
matrix(…, :, :) np.array_like

Some matrix

+
+
idxnp.array_like

The indexes of the orbitals

+
+
+
+
Returns:
+
np.array_like

Reduced matrix based on the projection

+
+
+
+
+
+ +
+
+grogupy.core.parallel_Gk(HK, SK, eran, eset)[source]
+

Calculates the Greens function by inversion.

+

It calculates the Greens function on all the energy levels at the same time.

+
+
Args:
+
HK(NO, NO), np.array_like

Hamiltonian at a given k point

+
+
SK(NO, NO), np.array_like

Overlap Matrix at a given k point

+
+
eran(eset) np.array_like

Energy sample along the contour

+
+
esetint

Number of energy samples along the contour

+
+
+
+
Returns:
+
Gk(eset, NO, NO), np.array_like

Green’s function at a given k point

+
+
+
+
+
+ +
+
+grogupy.core.remove_clutter_for_save(pairs, magnetic_entities)[source]
+

Removes unimportant data from the dictionaries.

+

It is used before saving to throw away data that +is not needed for post processing.

+
+
Args:
+
pairsdict

Contains all the pair information

+
+
magnetic_entitiesdict

Contains all the magnetic entity information

+
+
+
+
Returns:
+
pairsdict

Contains all the reduced pair information

+
+
magnetic_entitiesdict

Contains all the reduced magnetic entity information

+
+
+
+
+
+ +
+
+grogupy.core.sequential_GK(HK, SK, eran, eset)[source]
+

Calculates the Greens function by inversion.

+

It calculates sequentially over the energy levels.

+
+
Args:
+
HK(NO, NO), np.array_like

Hamiltonian at a given k point

+
+
SK(NO, NO), np.array_like

Overlap Matrix at a given k point

+
+
eran(eset) np.array_like

Energy sample along the contour

+
+
esetint

Number of energy samples along the contour

+
+
+
+
Returns:
+
Gk(eset, NO, NO), np.array_like

Green’s function at a given k point

+
+
+
+
+
+ +
+
+grogupy.core.setup_pairs_and_magnetic_entities(magnetic_entities, pairs, dh, simulation_parameters)[source]
+

It creates the complete structure of the dictionaries and fills some basic data.

+

It creates orbital indexes, spin box indexes, coordinates and tags for magnetic entities. +Furthermore it creates the structures for the energies, the perturbed potentials and +the Greens function calculation. It dose the same for the pairs.

+
+
Args:
+
pairsdict

Contains the initial pair information

+
+
magnetic_entitiesdict

Contains the initial magnetic entity information

+
+
dhsisl.physics.Hamiltonian

Hamiltonian read in by sisl

+
+
simulation_parametersdict

A set of parameters from the simulation

+
+
+
+
Returns:
+
pairsdict

Contains the initial information and the complete structure

+
+
magnetic_entitiesdict

Contains the initial information and the complete structure

+
+
+
+
+
+ +
+ + +
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/docs/_build/html/implementation/index.html b/docs/source/_build/html/implementation/grogupy.grogu.html similarity index 60% rename from docs/_build/html/implementation/index.html rename to docs/source/_build/html/implementation/grogupy.grogu.html index f93de93..4b837a4 100644 --- a/docs/_build/html/implementation/index.html +++ b/docs/source/_build/html/implementation/grogupy.grogu.html @@ -6,7 +6,7 @@ - Implementation — grogupy 1.0.0 documentation + grogupy.grogu module — grogupy 1.0.0 documentation @@ -21,8 +21,8 @@ - - + + @@ -56,14 +56,23 @@

Advanced usage