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

Minimal concrete subclass exposing the pure-virtual hook. More...

Inheritance diagram for TestGrid:
Collaboration diagram for TestGrid:

Public Member Functions

void reduce_by_symmetry (const UnitCell &, const ModuleSymmetry::Symmetry &, bool, std::string &, bool &, const int, std::ofstream &) override
 Reduce this grid according to symmetry operations.
Public Member Functions inherited from ModuleCell::ReciprocalGrid
 ReciprocalGrid ()=default
virtual ~ReciprocalGrid ()=default
ReciprocalGrid & operator= (const ReciprocalGrid &)=default
ReciprocalGrid & operator= (ReciprocalGrid &&)=default
virtual void renew (const int &kpoint_number)
 Resize the point-related containers.
double Monkhorst_Pack_formula (const int &k_type, const double &offset, const int &n, const int &dim)
 Coordinate of a point generated by the Monkhorst-Pack scheme.
void Monkhorst_Pack (const int *nmp_in, const double *koffset_in, const int k_type)
 Generate a Monkhorst-Pack mesh.
void kvec_d2c (const ModuleBase::Matrix3 &reciprocal_vec)
 Convert direct to Cartesian coordinates.
void kvec_c2d (const ModuleBase::Matrix3 &latvec)
 Convert Cartesian to direct coordinates.
void set_both_kvec (const ModuleBase::Matrix3 &G, const ModuleBase::Matrix3 &R, std::string &skpt, std::ofstream &ofs_running, std::ofstream &ofs_warning)
 Set both the direct and Cartesian coordinates, and print the table.
void normalize_wk (const int &degspin)
 Normalize the weights so that they sum to the spin degeneracy.
void print_klists (std::ofstream &ofs) const
 Print the points in both Cartesian and direct coordinates.
void reduce_ibz (const ModuleBase::Matrix3 *rot_ops, int nrotkm, const ModuleBase::Matrix3 &G, const ModuleBase::Matrix3 &k_lattice, const ModuleBase::Matrix3 *kkmatrix, double epsilon, std::vector< ModuleBase::Vector3< double > > &vec_ibz, std::vector< double > &wk_ibz, std::vector< int > &ibz_index, std::vector< int > &ibz2bz)
 Star (IBZ) reduction primitive shared by k-points and q-points.

Additional Inherited Members

Public Attributes inherited from ModuleCell::ReciprocalGrid
std::vector< ModuleBase::Vector3< double > > kvec_c
 Cartesian coordinates of the points, in unit of 2*pi/lat0.
std::vector< ModuleBase::Vector3< double > > kvec_d
 Direct coordinates of the points.
std::vector< ModuleBase::Vector3< double > > kvec_c_full
 Cartesian coordinates of the full (unreduced) mesh, in unit of 2*pi/lat0.
std::vector< double > wk
 Weight of each point.
std::vector< int > ngk
 Number of plane waves for each point (filled by the PW basis).
int nmp [3] = {0, 0, 0}
 Monkhorst-Pack grid dimensions.
std::vector< int > kl_segids
 Index of the k-line segment each point belongs to.
bool kc_done = false
 Whether the Cartesian coordinates have been computed.
bool kd_done = false
 Whether the direct coordinates have been computed.
int nks = 0
 Number of points in the current pool (spin-free view).
int nkstot = 0
int nkstot_nospin = 0
bool is_mp = false
 Whether this is a Monkhorst-Pack grid.
int k_nkstot = 0
 Total number of points read from a point-list file (0 = auto mesh).
std::string k_kword
 Type keyword of the point-list file.
Protected Member Functions inherited from ModuleCell::ReciprocalGrid
virtual int spin_factor () const
 Spin-like multiplicity used by renew() (1 for q-points).
bool build_star_ops (const UnitCell &ucell, const ModuleSymmetry::Symmetry &symm, bool use_symm, ModuleBase::Matrix3 &k_vec, std::vector< ModuleBase::Matrix3 > &kgmatrix, int &nrotkm) const
 Build the reciprocal-space point-group operations for star reduction.

Detailed Description

Minimal concrete subclass exposing the pure-virtual hook.

Member Function Documentation

◆ reduce_by_symmetry()

void TestGrid::reduce_by_symmetry ( const UnitCell & ucell,
const ModuleSymmetry::Symmetry & symm,
bool use_symm,
std::string & skpt,
bool & match,
const int my_rank,
std::ofstream & ofs_running )
inlineoverridevirtual

Reduce this grid according to symmetry operations.

Pure virtual: implemented by K_Vectors (electron IBZ, including the magnetic/time-reversal handling) and by QList (q-point star reduction plus irreducible-representation analysis).

Implements ModuleCell::ReciprocalGrid.


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