|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Basic symmetry operations class. More...
Public Member Functions | |
| Symmetry_Basic () | |
| ~Symmetry_Basic () | |
| bool | equal (const double &m, const double &n) const |
| Control accuracy - check if two doubles are equal. | |
| void | check_boundary (double &x) const |
| Check boundary and wrap value to [0,1). | |
| double | get_translation_vector (const double &x1, const double &x2) const |
| Get translation vector. | |
| void | check_translation (double &x, const double &t) const |
| Check translation. | |
| double | check_diff (const double &x1, const double &x2) const |
| Check difference between two values. | |
| void | veccon (double *va, double *vb, const int num, const ModuleBase::Vector3< double > &aa1, const ModuleBase::Vector3< double > &aa2, const ModuleBase::Vector3< double > &aa3, const ModuleBase::Vector3< double > &bb1, const ModuleBase::Vector3< double > &bb2, const ModuleBase::Vector3< double > &bb3) |
| Convert vectors from one basis to another. | |
| void | matrigen (ModuleBase::Matrix3 *symgen, const int ngen, ModuleBase::Matrix3 *symop, int &nop) const |
| Generate symmetry operations from generators. | |
| void | setgroup (ModuleBase::Matrix3 *symop, int &nop, const int &ibrav, const int *cal_symm_repr) const |
| Set up symmetry group. | |
| void | rotate (ModuleBase::Matrix3 &gmatrix, ModuleBase::Vector3< double > >rans, int i, int j, int k, const int, const int, const int, int &, int &, int &) |
| Rotate symmetry operation. | |
| void | test_atom_ordering (double *posi, const int natom, int *subindex) const |
| Test atom ordering. | |
| int | subgroup (const int &nrot, const int &ninv, const int &nc2, const int &nc3, const int &nc4, const int &nc6, const int &ns1, const int &ns3, const int &ns4, const int &ns6) const |
| Find out the greatest subgroup according to the number of operations of certain type. | |
| bool | pointgroup (const int &nrot, int &pgnumber, std::string &pgname, const ModuleBase::Matrix3 *gmatrix, std::ofstream &ofs_running, const int *cal_symm_repr) const |
| Determine point group. | |
Public Attributes | |
| double | epsilon |
| the precision of symmetry operation | |
| double | epsilon_input |
| the input value of symmetry_prec, should not be changed | |
Protected Member Functions | |
| std::string | get_brav_name (const int ibrav) const |
| Get Bravais lattice name. | |
| void | atom_ordering (double *posi, const int natom, int *subindex) |
| Order atoms. | |
| void | atom_ordering_new (double *posi, const int natom, int *subindex) const |
| Order atoms (new version). | |
Private Member Functions | |
| void | order_atoms (double *pos, const int &nat, const int *index) const |
| Order atoms according to index. | |
| void | order_y (double *pos, const int &oldpos, const int &newpos) |
| Order atoms along y direction. | |
| void | order_z (double *pos, const int &oldpos, const int &newpos) |
| Order atoms along z direction. | |
Basic symmetry operations class.
|
inline |
|
inline |
|
protected |
Order atoms.
| posi | atom positions |
| natom | number of atoms |
| subindex | subindex array |
|
protected |
Order atoms (new version).
| posi | atom positions |
| natom | number of atoms |
| subindex | subindex array |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::check_boundary | ( | double & | x | ) | const |
Check boundary and wrap value to [0,1).
| x | value to check |
| double LCAO_domain::ModuleSymmetry::Symmetry_Basic::check_diff | ( | const double & | x1, |
| const double & | x2 ) const |
Check difference between two values.
| x1 | first value |
| x2 | second value |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::check_translation | ( | double & | x, |
| const double & | t ) const |
Check translation.
| x | coordinate |
| t | translation |
| bool LCAO_domain::ModuleSymmetry::Symmetry_Basic::equal | ( | const double & | m, |
| const double & | n ) const |
Control accuracy - check if two doubles are equal.
| m | first value |
| n | second value |
|
protected |
Get Bravais lattice name.
| ibrav | Bravais lattice type |
| double LCAO_domain::ModuleSymmetry::Symmetry_Basic::get_translation_vector | ( | const double & | x1, |
| const double & | x2 ) const |
Get translation vector.
| x1 | first coordinate |
| x2 | second coordinate |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::matrigen | ( | ModuleBase::Matrix3 * | symgen, |
| const int | ngen, | ||
| ModuleBase::Matrix3 * | symop, | ||
| int & | nop ) const |
Generate symmetry operations from generators.
| symgen | generators |
| ngen | number of generators |
| symop | output symmetry operations |
| nop | number of operations |
|
private |
Order atoms according to index.
| pos | atom positions |
| nat | number of atoms |
| index | index array |
|
private |
Order atoms along y direction.
| pos | atom positions |
| oldpos | old position |
| newpos | new position |
|
private |
Order atoms along z direction.
| pos | atom positions |
| oldpos | old position |
| newpos | new position |
| bool LCAO_domain::ModuleSymmetry::Symmetry_Basic::pointgroup | ( | const int & | nrot, |
| int & | pgnumber, | ||
| std::string & | pgname, | ||
| const ModuleBase::Matrix3 * | gmatrix, | ||
| std::ofstream & | ofs_running, | ||
| const int * | cal_symm_repr ) const |
Determine point group.
| nrot | number of rotations |
| pgnumber | point group number |
| pgname | point group name |
| gmatrix | rotation matrices |
| ofs_running | output file stream |
| cal_symm_repr | control for symmetry representation output |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::rotate | ( | ModuleBase::Matrix3 & | gmatrix, |
| ModuleBase::Vector3< double > & | gtrans, | ||
| int | i, | ||
| int | j, | ||
| int | k, | ||
| const int | , | ||
| const int | , | ||
| const int | , | ||
| int & | , | ||
| int & | , | ||
| int & | ) |
Rotate symmetry operation.
| gmatrix | rotation matrix |
| gtrans | translation vector |
| i | index in x |
| j | index in y |
| k | index in z |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::setgroup | ( | ModuleBase::Matrix3 * | symop, |
| int & | nop, | ||
| const int & | ibrav, | ||
| const int * | cal_symm_repr ) const |
Set up symmetry group.
| symop | symmetry operations |
| nop | number of operations |
| ibrav | Bravais lattice type |
| cal_symm_repr | control for symmetry representation output |
| int LCAO_domain::ModuleSymmetry::Symmetry_Basic::subgroup | ( | const int & | nrot, |
| const int & | ninv, | ||
| const int & | nc2, | ||
| const int & | nc3, | ||
| const int & | nc4, | ||
| const int & | nc6, | ||
| const int & | ns1, | ||
| const int & | ns3, | ||
| const int & | ns4, | ||
| const int & | ns6 ) const |
Find out the greatest subgroup according to the number of operations of certain type.
Used to deal with incomplete group due to a subtle symmetry_prec.
| nrot | number of rotations |
| ninv | number of inversions |
| nc2 | number of C2 operations |
| nc3 | number of C3 operations |
| nc4 | number of C4 operations |
| nc6 | number of C6 operations |
| ns1 | number of S1 operations |
| ns3 | number of S3 operations |
| ns4 | number of S4 operations |
| ns6 | number of S6 operations |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::test_atom_ordering | ( | double * | posi, |
| const int | natom, | ||
| int * | subindex ) const |
Test atom ordering.
| posi | atom positions |
| natom | number of atoms |
| subindex | subindex array |
| void LCAO_domain::ModuleSymmetry::Symmetry_Basic::veccon | ( | double * | va, |
| double * | vb, | ||
| const int | num, | ||
| const ModuleBase::Vector3< double > & | aa1, | ||
| const ModuleBase::Vector3< double > & | aa2, | ||
| const ModuleBase::Vector3< double > & | aa3, | ||
| const ModuleBase::Vector3< double > & | bb1, | ||
| const ModuleBase::Vector3< double > & | bb2, | ||
| const ModuleBase::Vector3< double > & | bb3 ) |
Convert vectors from one basis to another.
| va | output vectors |
| vb | input vectors |
| num | number of vectors |
| aa1 | first vector of source basis |
| aa2 | second vector of source basis |
| aa3 | third vector of source basis |
| bb1 | first vector of target basis |
| bb2 | second vector of target basis |
| bb3 | third vector of target basis |
| double LCAO_domain::ModuleSymmetry::Symmetry_Basic::epsilon |
the precision of symmetry operation
| double LCAO_domain::ModuleSymmetry::Symmetry_Basic::epsilon_input |
the input value of symmetry_prec, should not be changed