TRIQS/triqs_modest 3.3.0
Brillouin zone summation
|
#include <triqs_modest/local_space.hpp>
Describe the atomic orbitals within downfolded \(\mathcal{C}\) space.
The local space 𝓒 defines the correlated subspace which defines impurities to be solved within DMFT.
The DFT + DMFT equations involve three different spaces, following (mostly) the notations of [S. Beck et al. 2022]():
The \(\sigma\) index is a general block diagonal index. In simple cases, it is the spin index, but not always.
Definition at line 39 of file local_space.hpp.
Public Member Functions | |
local_space (spin_kind_e spin_kind, std::vector< atomic_orbs > atomic_shells, nda::array< std::vector< long >, 2 > irreps_decomp_per_atom, nda::array< nda::matrix< dcomplex >, 2 > rotation_from_dft_to_local_basis, nda::array< nda::matrix< dcomplex >, 1 > rotation_from_spherical_to_dft_basis) | |
Accessors | |
spin_kind_e | spin_kind () const |
long | n_sigma () const |
Dimension of the σ index. | |
std::vector< std::string > | sigma_names () const |
names of spin indices for naming blocks in block_gf | |
long | dim () const |
Dimension of the correlated space. | |
std::vector< atomic_orbs > const & | atomic_shells () const |
List of all atomic shells spanning the 𝓒 space. | |
long | n_atoms () const |
The number of atoms. | |
nda::array< std::vector< long >, 2 > const & | atoms_block_decomposition () const |
List of all blocks spanning 𝓒 space -> atoms_block_decomposition. | |
nda::array< nda::matrix< dcomplex >, 2 > const & | rotation_from_dft_to_local_basis () const |
List of all (a, sigma) local rotation matices that rotate the data. | |
nda::array< nda::matrix< dcomplex >, 1 > const & | rotation_from_spherical_to_dft_basis () const |
List of rotation matrices from spherical harmonics to dft specific orbital basis. | |
long | first_shell_of_its_equiv_cls (long idx) const |
Given the index idx of an atomic shell, return the index of the first atomic shell of its equivalence class. | |
std::vector< std::string > | atom_names () const |
Names of the atoms in the orbital set. | |
auto | atomic_decomposition () const |
Generates [dimension of the atomic shell]. | |
Views and shapes | |
template<typename Mesh > | |
block2_gf< Mesh > | atomic_view (block2_gf< Mesh > const &G_C) |
Views a block2gf according to the atomic decomposition. | |
nda::array< nda::matrix< dcomplex >, 2 > | atomic_view (nda::array< nda::matrix< dcomplex >, 2 > const &matrix_C) |
Creates an atomic view of block matrices by extracting specific slices based on the atomic decomposition of the current object. | |
C2PY_IGNORE gf_struct2_t | Gc_block_shape () const |
Shape of the Green function in the correlated space, without block decomposition. | |
C2PY_IGNORE gf_struct2_t | Gatom_block_shape () const |
Shape of the Green function in the correlated space, decomposed by atomic shells. | |
Friends | |
void | h5_read (h5::group g, std::string const &name, local_space &ls) |
h5 read/write | |
void | h5_write (h5::group g, std::string const &name, local_space const &ls) |
triqs::modest::local_space::local_space | ( | spin_kind_e | spin_kind, |
std::vector< atomic_orbs > | atomic_shells, | ||
nda::array< std::vector< long >, 2 > | irreps_decomp_per_atom, | ||
nda::array< nda::matrix< dcomplex >, 2 > | rotation_from_dft_to_local_basis, | ||
nda::array< nda::matrix< dcomplex >, 1 > | rotation_from_spherical_to_dft_basis | ||
) |
Definition at line 10 of file local_space.cpp.
|
inline |
Names of the atoms in the orbital set.
Definition at line 116 of file local_space.hpp.
|
inline |
Generates [dimension of the atomic shell].
Definition at line 119 of file local_space.hpp.
|
inline |
List of all atomic shells spanning the 𝓒 space.
Definition at line 95 of file local_space.hpp.
|
inline |
Views a block2gf according to the atomic decomposition.
Mesh | The Green's function meesh |
G_C | A block2_gf spanning the entire C space [0, sigma](M, M) |
Definition at line 137 of file local_space.hpp.
nda::array< nda::matrix< dcomplex >, 2 > triqs::modest::local_space::atomic_view | ( | nda::array< nda::matrix< dcomplex >, 2 > const & | matrix_C | ) |
Creates an atomic view of block matrices by extracting specific slices based on the atomic decomposition of the current object.
matrix_C | The input block matrices object from which the atomic view is created. |
Definition at line 34 of file local_space.cpp.
|
inline |
List of all blocks spanning 𝓒 space -> atoms_block_decomposition.
Definition at line 102 of file local_space.hpp.
|
inline |
Dimension of the correlated space.
Definition at line 92 of file local_space.hpp.
long triqs::modest::local_space::first_shell_of_its_equiv_cls | ( | long | idx | ) | const |
Given the index idx of an atomic shell, return the index of the first atomic shell of its equivalence class.
Definition at line 26 of file local_space.cpp.
|
inline |
Shape of the Green function in the correlated space, decomposed by atomic shells.
Definition at line 165 of file local_space.hpp.
gfs::gf_struct2_t triqs::modest::local_space::Gc_block_shape | ( | ) | const |
Shape of the Green function in the correlated space, without block decomposition.
Definition at line 44 of file local_space.cpp.
|
inline |
The number of atoms.
Definition at line 98 of file local_space.hpp.
|
inline |
Dimension of the σ index.
Definition at line 83 of file local_space.hpp.
|
inline |
List of all (a, sigma) local rotation matices that rotate the data.
Definition at line 105 of file local_space.hpp.
|
inline |
List of rotation matrices from spherical harmonics to dft specific orbital basis.
Definition at line 108 of file local_space.hpp.
|
inline |
names of spin indices for naming blocks in block_gf
Definition at line 86 of file local_space.hpp.
|
inline |
Accessor for the spin kind
Definition at line 80 of file local_space.hpp.
|
friend |
|
friend |