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

Namespaces

namespace  Symm_Other
namespace  SpinRotation
 SU(2) spin-1/2 representation of a real-space symmetry operation.

Classes

class  Irred_Sector
class  LittleGroup
 Little group (group of the wavevector) of a q-point. More...
class  Symmetry_Basic
 Basic symmetry operations class. More...
class  Symmetry_rotation_k
 k-space AO-representation symmetry restoration: reconstructs D(k) at every k-star member from D(k_ibz), for crystal-symmetry-reduced BZ sampling. More...
class  Symmetry
 Symmetry analysis class. More...
class  Symmetry_rotation

Typedefs

using Tap = std::pair<int, int>
using TC = std::array<int, 3>
using TapR = std::pair<Tap, TC>
using TCdouble = ModuleBase::Vector3<double>

Functions

void output_return_lattice (const std::vector< std::vector< TCdouble > > &return_lattice)
std::vector< int > get_isymbvk_to_isym_map (const std::vector< ModuleBase::Matrix3 > &bvkgmat, const ModuleSymmetry::Symmetry &symm)
int gcd (const int a, const int b)
int m2im_k (int m)
void symmetrize_force_cartesian (Symmetry *symm, const int nat, const ModuleBase::Vector3< double > &a1, const ModuleBase::Vector3< double > &a2, const ModuleBase::Vector3< double > &a3, ModuleBase::matrix &force)
 Symmetrize a per-atom Cartesian force vector in place.
std::string mat3_fmt (const ModuleBase::Matrix3 &m)
void print_symrot_info_R (const Symmetry_rotation &symrot, const Symmetry &symm, const int lmax_ao, const std::vector< TC > &Rs)
void print_symrot_info_k (const Symmetry_rotation &symrot, const K_Vectors &kv, const UnitCell &ucell)
template<typename T>
std::string vec3_fmt (const T &x, const T &y, const T &z)
template<typename T>
std::string vec3_fmt (const ModuleBase::Vector3< T > &v)
RI::Tensor< std::complex< double > > rotmat_Slm_to_tensor (const ModuleBase::ComplexMatrix &block)
float conj_elem (const float v)
double conj_elem (const double v)
std::complex< float > conj_elem (const std::complex< float > &v)
std::complex< double > conj_elem (const std::complex< double > &v)
template<typename Tdata>
void print_tensor (const RI::Tensor< Tdata > &t, const std::string &name, const double &threshold=0.0)
template<typename Tdata>
void print_tensor3 (const RI::Tensor< Tdata > &t, const std::string &name, const double &threshold=0.0)
template<typename Tdata>
void set_block (const int starti, const int startj, const RI::Tensor< std::complex< double > > &block, RI::Tensor< Tdata > &obj_tensor)
template<typename TR>
void print_global (const TR *tlocal, const int nr, const int nc, const std::string name)
template<typename TR>
void print_local (const Parallel_Orbitals &pv, const TR *tlocal, const std::string name)
template<typename TR>
void print_atompair_local (const Parallel_Orbitals &pv, const int iat1, const int iat2, const TR *tlocal, const std::string name)
void set_block (const int starti, const int startj, const int nr, const ModuleBase::ComplexMatrix &block, double *obj)
void set_block (const int starti, const int startj, const int nr, const ModuleBase::ComplexMatrix &block, std::complex< double > *obj)

Variables

bool test_brav = 0
 for test only

Typedef Documentation

◆ Tap

using ModuleSymmetry::Tap = std::pair<int, int>

◆ TapR

using ModuleSymmetry::TapR = std::pair<Tap, TC>

◆ TC

using ModuleSymmetry::TC = std::array<int, 3>

◆ TCdouble

Function Documentation

◆ conj_elem() [1/4]

double ModuleSymmetry::conj_elem ( const double v)
inline

◆ conj_elem() [2/4]

float ModuleSymmetry::conj_elem ( const float v)
inline

Elementwise complex conjugation used by the time-reversal branch of restore_HR_nspin4. Overloaded (not specialized) so a real Tdata compiles to the identity.

Here is the caller graph for this function:

◆ conj_elem() [3/4]

std::complex< double > ModuleSymmetry::conj_elem ( const std::complex< double > & v)
inline

◆ conj_elem() [4/4]

std::complex< float > ModuleSymmetry::conj_elem ( const std::complex< float > & v)
inline

◆ gcd()

int ModuleSymmetry::gcd ( const int a,
const int b )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_isymbvk_to_isym_map()

std::vector< int > ModuleSymmetry::get_isymbvk_to_isym_map ( const std::vector< ModuleBase::Matrix3 > & bvkgmat,
const ModuleSymmetry::Symmetry & symm )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ m2im_k()

int ModuleSymmetry::m2im_k ( int m)
inline
Here is the caller graph for this function:

◆ mat3_fmt()

std::string ModuleSymmetry::mat3_fmt ( const ModuleBase::Matrix3 & m)
Here is the caller graph for this function:

◆ output_return_lattice()

void ModuleSymmetry::output_return_lattice ( const std::vector< std::vector< TCdouble > > & return_lattice)
inline

◆ print_atompair_local()

template<typename TR>
void ModuleSymmetry::print_atompair_local ( const Parallel_Orbitals & pv,
const int iat1,
const int iat2,
const TR * tlocal,
const std::string name )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_global()

template<typename TR>
void ModuleSymmetry::print_global ( const TR * tlocal,
const int nr,
const int nc,
const std::string name )
inline
Here is the caller graph for this function:

◆ print_local()

template<typename TR>
void ModuleSymmetry::print_local ( const Parallel_Orbitals & pv,
const TR * tlocal,
const std::string name )
inline
Here is the call graph for this function:

◆ print_symrot_info_k()

void ModuleSymmetry::print_symrot_info_k ( const Symmetry_rotation & symrot,
const K_Vectors & kv,
const UnitCell & ucell )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_symrot_info_R()

void ModuleSymmetry::print_symrot_info_R ( const Symmetry_rotation & symrot,
const Symmetry & symm,
const int lmax_ao,
const std::vector< TC > & Rs )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_tensor()

template<typename Tdata>
void ModuleSymmetry::print_tensor ( const RI::Tensor< Tdata > & t,
const std::string & name,
const double & threshold = 0.0 )
inline
Here is the caller graph for this function:

◆ print_tensor3()

template<typename Tdata>
void ModuleSymmetry::print_tensor3 ( const RI::Tensor< Tdata > & t,
const std::string & name,
const double & threshold = 0.0 )
inline

◆ rotmat_Slm_to_tensor()

RI::Tensor< std::complex< double > > ModuleSymmetry::rotmat_Slm_to_tensor ( const ModuleBase::ComplexMatrix & block)
inline

rotmat_Slm_ (inherited from Symmetry_rotation_k, shared with the LibRI-free k-space restoration) is stored as ModuleBase::ComplexMatrix; convert to RI::Tensor here, at the boundary of the real-space (RI::Tensor atom-pair) rotation code that needs that type.

Here is the caller graph for this function:

◆ set_block() [1/3]

void ModuleSymmetry::set_block ( const int starti,
const int startj,
const int nr,
const ModuleBase::ComplexMatrix & block,
double * obj )
inline
Here is the call graph for this function:

◆ set_block() [2/3]

void ModuleSymmetry::set_block ( const int starti,
const int startj,
const int nr,
const ModuleBase::ComplexMatrix & block,
std::complex< double > * obj )
inline

◆ set_block() [3/3]

template<typename Tdata>
void ModuleSymmetry::set_block ( const int starti,
const int startj,
const RI::Tensor< std::complex< double > > & block,
RI::Tensor< Tdata > & obj_tensor )
inline
Here is the caller graph for this function:

◆ symmetrize_force_cartesian()

void ModuleSymmetry::symmetrize_force_cartesian ( Symmetry * symm,
const int nat,
const ModuleBase::Vector3< double > & a1,
const ModuleBase::Vector3< double > & a2,
const ModuleBase::Vector3< double > & a3,
ModuleBase::matrix & force )

Symmetrize a per-atom Cartesian force vector in place.

Convert Cartesian -> direct, apply symmetrize_vec3_nat, then convert back to Cartesian. The lattice vectors are passed explicitly by the caller (the current cell), because Symmetry::a1/a2/a3 may have been replaced by the symmetry-optimized lattice during the analysis. Shared by the PW and LCAO force paths.

Parameters
symmsymmetry handler
natnumber of atoms
a1first lattice vector of the current cell
a2second lattice vector of the current cell
a3third lattice vector of the current cell
forceper-atom Cartesian forces, nat x 3, modified in place
Here is the call graph for this function:

◆ vec3_fmt() [1/2]

template<typename T>
std::string ModuleSymmetry::vec3_fmt ( const ModuleBase::Vector3< T > & v)
Here is the call graph for this function:

◆ vec3_fmt() [2/2]

template<typename T>
std::string ModuleSymmetry::vec3_fmt ( const T & x,
const T & y,
const T & z )
Here is the caller graph for this function:

Variable Documentation

◆ test_brav

bool ModuleSymmetry::test_brav = 0
extern

for test only