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

Classes

class  QList
 QList class for managing q-points. More...
class  ReciprocalGrid
 Abstract base class shared by K_Vectors (electrons) and QList (phonons). More...

Functions

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

Function Documentation

◆ kpoints_equivalent()

bool ModuleCell::kpoints_equivalent ( const ModuleBase::Vector3< double > & first,
const ModuleBase::Vector3< double > & second,
const double epsilon )

Compare reciprocal fractional coordinates modulo integer reciprocal vectors.

Here is the caller graph for this function:

◆ restrict_kpt()

void ModuleCell::restrict_kpt ( ModuleBase::Vector3< double > & kvec,
double epsilon )

Fold a point into (-0.5, 0.5] in direct coordinates.

Uses the epsilon-shifted fmod convention shared with the symmetry checker, and zeroes components below the epsilon tolerance.

Parameters
kvecpoint to fold in place
epsilonsymmetry tolerance
Here is the caller graph for this function: