ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleSymmetry::Irred_Sector Class Reference

#include <irred_sec.h>

Collaboration diagram for ModuleSymmetry::Irred_Sector:

Classes

struct  ap_less_func
struct  apR_less_func
struct  len_less_func

Public Member Functions

void find_irred_sector (const Symmetry &symm, const Atom *atoms, const int nat, const int ntype, const std::vector< int > &iat2it, const std::vector< int > &iat2ia, const std::vector< TC > &Rs, const TC &period, const Lattice &lat, const std::string &output_dir="")
const std::map< Tap, std::set< TC > > & get_irred_sector () const
TCdouble get_return_lattice (const Symmetry &symm, const ModuleBase::Matrix3 &gmatd, const TCdouble gtransd, const TCdouble &posd_a1, const TCdouble &posd_a2) const
TCdouble get_return_lattice (const int iat, const int isym) const

Protected Member Functions

void cal_return_lattice_all (const Symmetry &symm, const Atom *atoms, const int nat, const std::vector< int > &iat2it, const std::vector< int > &iat2ia)
TC rotate_R (const Symmetry &symm, const int isym, const int iat1, const int iat2, const TC &R, const char gauge='R') const
 The sub functions to find irreducible sector: {abR}.
TapR rotate_apR_by_formula (const Symmetry &symm, const int isym, const TapR &iapR, const char gauge='R') const
ModuleBase::Matrix3 direct_to_cartesian (const ModuleBase::Matrix3 &d, const ModuleBase::Matrix3 &latvec) const
void output_full_map_to_irreducible_sector (const int nat)
void output_sector_star ()
void write_irreducible_sector (const std::string &output_dir)
void gen_symm_bvk (const Symmetry &symm, const Atom *atoms, const Lattice &lat, const int nat, const int ntype, const TC bvk_period)
 The sub functions judge special symmetry.

Protected Attributes

std::map< Tap, std::set< TC > > irreducible_sector_
 whether in 2D plain or not for each symmetry operation
std::map< TapR, std::pair< int, TapR >, apR_less_func > full_map_to_irreducible_sector_
std::map< TapR, std::map< int, TapR > > sector_stars_
std::vector< std::vector< TCdouble > > return_lattice_
 the direct lattice vector of {R|t}\tau-\tau' for each atoms and each symmetry operation. [natom][nsym]
std::vector< int > invmap_
std::vector< int > isymbvk_to_isym_
 symmetry info for BvK supercell
int bvk_nsym_

Friends

class Symmetry_rotation
class Symmetry_rotation_k

Member Function Documentation

◆ cal_return_lattice_all()

void ModuleSymmetry::Irred_Sector::cal_return_lattice_all ( const Symmetry & symm,
const Atom * atoms,
const int nat,
const std::vector< int > & iat2it,
const std::vector< int > & iat2ia )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ direct_to_cartesian()

ModuleBase::Matrix3 ModuleSymmetry::Irred_Sector::direct_to_cartesian ( const ModuleBase::Matrix3 & d,
const ModuleBase::Matrix3 & latvec ) const
protected
Here is the call graph for this function:

◆ find_irred_sector()

void ModuleSymmetry::Irred_Sector::find_irred_sector ( const Symmetry & symm,
const Atom * atoms,
const int nat,
const int ntype,
const std::vector< int > & iat2it,
const std::vector< int > & iat2ia,
const std::vector< TC > & Rs,
const TC & period,
const Lattice & lat,
const std::string & output_dir = "" )

The main function to find irreducible sector: {abR}

Parameters
output_dirif non-empty, write_irreducible_sector() dumps a debug listing to <output_dir>/irreducible_sector.txt (callers pass the run's global output directory setting); kept as an explicit argument rather than reading the global config directly so this LibRI-free class has no module_parameter link dependency.
Here is the call graph for this function:

◆ gen_symm_bvk()

void ModuleSymmetry::Irred_Sector::gen_symm_bvk ( const Symmetry & symm,
const Atom * atoms,
const Lattice & lat,
const int nat,
const int ntype,
const TC bvk_period )
protected

The sub functions judge special symmetry.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_irred_sector()

const std::map< Tap, std::set< TC > > & ModuleSymmetry::Irred_Sector::get_irred_sector ( ) const
inline

◆ get_return_lattice() [1/2]

TCdouble ModuleSymmetry::Irred_Sector::get_return_lattice ( const int iat,
const int isym ) const
inline

◆ get_return_lattice() [2/2]

TCdouble ModuleSymmetry::Irred_Sector::get_return_lattice ( const Symmetry & symm,
const ModuleBase::Matrix3 & gmatd,
const TCdouble gtransd,
const TCdouble & posd_a1,
const TCdouble & posd_a2 ) const

Perfoming {R|t} to atom position r in the R=0 lattice, we get Rr+t, which may get out of R=0 lattice, whose image in R=0 lattice is r'=Rr+t-O. This function is to get O for each atom and each symmetry operation. Preserve the input coordinate representatives; do not wrap away their integer lattice shifts.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ output_full_map_to_irreducible_sector()

void ModuleSymmetry::Irred_Sector::output_full_map_to_irreducible_sector ( const int nat)
protected

◆ output_sector_star()

void ModuleSymmetry::Irred_Sector::output_sector_star ( )
protected

◆ rotate_apR_by_formula()

TapR ModuleSymmetry::Irred_Sector::rotate_apR_by_formula ( const Symmetry & symm,
const int isym,
const TapR & iapR,
const char gauge = 'R' ) const
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rotate_R()

TC ModuleSymmetry::Irred_Sector::rotate_R ( const Symmetry & symm,
const int isym,
const int iat1,
const int iat2,
const TC & R,
const char gauge = 'R' ) const
protected

The sub functions to find irreducible sector: {abR}.

gauge='L' means H(R)=<R|H|0>; gauge='R' means H(R)=<0|H|R> gauge='L': R'=R+O_1-O_2; gauge='R': R'=R+O_2-O_1

Here is the caller graph for this function:

◆ write_irreducible_sector()

void ModuleSymmetry::Irred_Sector::write_irreducible_sector ( const std::string & output_dir)
protected
Here is the caller graph for this function:

◆ Symmetry_rotation

friend class Symmetry_rotation
friend

◆ Symmetry_rotation_k

friend class Symmetry_rotation_k
friend

Member Data Documentation

◆ bvk_nsym_

int ModuleSymmetry::Irred_Sector::bvk_nsym_
protected

◆ full_map_to_irreducible_sector_

std::map<TapR, std::pair<int, TapR>, apR_less_func> ModuleSymmetry::Irred_Sector::full_map_to_irreducible_sector_
protected

◆ invmap_

std::vector<int> ModuleSymmetry::Irred_Sector::invmap_
protected

◆ irreducible_sector_

std::map<Tap, std::set<TC> > ModuleSymmetry::Irred_Sector::irreducible_sector_
protected

whether in 2D plain or not for each symmetry operation

irreducible atom pairs: [n_iap][(isym, ap=(iat1, iat2))] The index range of the orbital matrix to be calculated: irreducible R in irreducible atom pairs

◆ isymbvk_to_isym_

std::vector<int> ModuleSymmetry::Irred_Sector::isymbvk_to_isym_
protected

symmetry info for BvK supercell

◆ return_lattice_

std::vector<std::vector<TCdouble> > ModuleSymmetry::Irred_Sector::return_lattice_
protected

the direct lattice vector of {R|t}\tau-\tau' for each atoms and each symmetry operation. [natom][nsym]

◆ sector_stars_

std::map<TapR, std::map<int, TapR> > ModuleSymmetry::Irred_Sector::sector_stars_
protected

The documentation for this class was generated from the following files: