ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
reciprocal_grid.h File Reference

Abstract base class for reciprocal-space point grids. More...

#include "source_base/matrix3.h"
#include "source_base/vector3.h"
#include <fstream>
#include <string>
#include <vector>
Include dependency graph for reciprocal_grid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ModuleCell::ReciprocalGrid
 Abstract base class shared by K_Vectors (electrons) and QList (phonons). More...

Namespaces

namespace  ModuleSymmetry
namespace  ModuleCell

Functions

void ModuleCell::restrict_kpt (ModuleBase::Vector3< double > &kvec, double epsilon)
 Fold a point into (-0.5, 0.5] in direct coordinates.
bool ModuleCell::kpoints_equivalent (const ModuleBase::Vector3< double > &first, const ModuleBase::Vector3< double > &second, double epsilon)
 Compare reciprocal fractional coordinates modulo integer reciprocal vectors.

Detailed Description

Abstract base class for reciprocal-space point grids.

Note
Extracted from K_Vectors (2026-08-14; the intermediate KVectorUtils shim has since been folded back into the member functions) so that both k-points (K_Vectors) and q-points (QList) share the common spin-free functionality: mesh generation, coordinate conversion, weight normalization, printing and star (IBZ) reduction.