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

Namespaces

namespace  Symm_Other

Classes

class  Symmetry_Basic
 Basic symmetry operations class. More...
class  Symmetry
 Symmetry analysis class. More...

Functions

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.

Variables

bool test_brav
 for test only

Function Documentation

◆ symmetrize_force_cartesian()

void LCAO_domain::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 caller graph for this function:

Variable Documentation

◆ test_brav

bool LCAO_domain::ModuleSymmetry::test_brav
extern

for test only