TRIQS/triqs_modest 3.3.0
Modular Electronic Structure Toolkit
|
#include <triqs_modest/local_space.hpp>
Describe the atomic orbitals within downfolded \(\mathcal{C}\) space.
The local space \( \mathcal{C} \) 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 61 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) | |
Construct a new local space object. | |
Accessors | |
spin_kind_e | spin_kind () const |
Spin kind of \( \sigma \) index. | |
long | n_sigma () const |
Dimension of the \( \sigma \) index. | |
std::vector< std::string > | sigma_names () const |
Names of spin indices for naming blocks in block GFs. | |
long | dim () const |
Dimension of the correlated space. | |
std::vector< atomic_orbs > const & | atomic_shells () const |
List of all atomic shells spanning the \( \mathcal{C} \) space. | |
long | n_atoms () const |
The number of atoms. | |
nda::array< std::vector< long >, 2 > const & | atoms_block_decomposition () const |
2-dim array of all blocks spanning \( \mathcal{C} \) space -> atoms_block_decomposition. | |
nda::array< nda::matrix< dcomplex >, 2 > const & | rotation_from_dft_to_local_basis () const |
2-dim array 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 |
Array of rotation matrices from spherical harmonics to dft specific orbital basis. | |
long | first_shell_of_its_equiv_cls (long idx) const |
Given the index 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 |
Transformed view containing the dimension of each atomic shell. | |
Views and shapes | |
template<typename Mesh > | |
block2_gf< Mesh > | atomic_view (block2_gf< Mesh > const &G_C) |
Views a 2-dim block GF 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 | ||
) |
Construct a new local space object.
spin_kind | Kind of \( \sigma \) index. |
atomic_shells | List of all atomic orbitals. |
irreps_decomp_per_atom | List of all blocks spanning \( \mathcal{C} \) space -> atoms_block_decomposition. |
rotation_from_dft_to_local_basis | Rotation matices from DFT to local basis. |
rotation_from_spherical_to_dft_basis | Rotation matrices 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 148 of file local_space.hpp.
|
inline |
Transformed view containing the dimension of each atomic shell.
Definition at line 151 of file local_space.hpp.
|
inline |
List of all atomic shells spanning the \( \mathcal{C} \) space.
Definition at line 127 of file local_space.hpp.
|
inline |
Views a 2-dim block GF according to the atomic decomposition.
Mesh | The Green's function meesh |
G_C | A 2-dim block GF spanning the entire \( \mathcal{C} \) space [0, sigma](M, M). |
Definition at line 170 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 |
2-dim array of all blocks spanning \( \mathcal{C} \) space -> atoms_block_decomposition.
Definition at line 134 of file local_space.hpp.
|
inline |
Dimension of the correlated space.
Definition at line 124 of file local_space.hpp.
long triqs::modest::local_space::first_shell_of_its_equiv_cls | ( | long | idx | ) | const |
Given the index 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 197 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 130 of file local_space.hpp.
|
inline |
Dimension of the \( \sigma \) index.
Definition at line 115 of file local_space.hpp.
|
inline |
2-dim array of all \( (a, \sigma) \) local rotation matices that rotate the data.
Definition at line 137 of file local_space.hpp.
|
inline |
Array of rotation matrices from spherical harmonics to dft specific orbital basis.
Definition at line 140 of file local_space.hpp.
|
inline |
Names of spin indices for naming blocks in block GFs.
Definition at line 118 of file local_space.hpp.
|
inline |
Spin kind of \( \sigma \) index.
Definition at line 112 of file local_space.hpp.
|
friend |
|
friend |