ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
for_test.h
Go to the documentation of this file.
1#ifndef TEST_RELAX_OLD_H
2#define TEST_RELAX_OLD_H
3
5
7{
8 Coordinate = "Direct";
9 latName = "none";
10 lat0 = 10.0;
11
12 latvec.e11 = 1.0;
13 latvec.e12 = 0.0;
14 latvec.e13 = 0.0;
15 latvec.e21 = 0.0;
16 latvec.e22 = 1.0;
17 latvec.e23 = 0.0;
18 latvec.e31 = 0.0;
19 latvec.e32 = 0.0;
20 latvec.e33 = 1.0;
21
22 ntype = 1;
23 nat = 2;
24 namax = 0;
25 nwmax = 0;
26
27 iat2it = nullptr;
28 iat2ia = nullptr;
29 iwt2iat = nullptr;
30 iwt2iw = nullptr;
31
32 itia2iat.create(1, 1);
33 lc = new int[3];
34
41
42 tpiba = 0.0;
43 tpiba2 = 0.0;
44 omega = 0.0;
45
46 atom_mass.shrink_to_fit();
47 atom_label.resize(1);
48 pseudo_fn.resize(1);
49 pseudo_type.resize(1);
50 orbital_fn.resize(1);
51
52 atoms = new Atom[ntype];
53 set_atom_flag = true;
54
55 for (int it = 0; it < ntype; it++)
56 {
57 Atom* atom = &atoms[it];
58 for (int ia = 0; ia < atom->na; ia++)
59 {
60 for (int ik = 0; ik < 3; ++ik)
61 {
62 atom->tau[ia][ik] = 3.0 * ia + ik;
63 atom->mbl[ia][ik] = 1;
64 }
65 }
66 }
67}
69{
70}
72{
73}
75{
76}
78{
79 na = 2;
80 tau.resize(na);
81 dis.resize(na);
82 mag.resize(na);
83 mbl.resize(na);
84 vel.resize(na);
85 taud.resize(na);
86}
88{
89}
91{
92}
94{
95}
97{
98}
100{
101}
105
106#endif
~Atom_pseudo()
Definition atom_pseudo.cpp:9
Atom_pseudo()
Definition atom_pseudo.cpp:5
Definition atom_spec.h:7
int na
Definition atom_spec.h:28
~Atom()
Definition atom_spec.cpp:9
std::vector< ModuleBase::Vector3< double > > vel
Definition atom_spec.h:39
std::vector< ModuleBase::Vector3< double > > dis
Definition atom_spec.h:37
Atom()
Definition atom_spec.cpp:5
std::vector< ModuleBase::Vector3< double > > taud
Definition atom_spec.h:38
std::vector< double > mag
Definition atom_spec.h:45
std::vector< ModuleBase::Vector3< double > > tau
Definition atom_spec.h:36
std::vector< ModuleBase::Vector3< int > > mbl
Definition atom_spec.h:15
Magnetism()
Definition sltk_atom_arrange_test.cpp:27
~Magnetism()
Definition sltk_atom_arrange_test.cpp:33
void create(const int d1, const int d2)
Create integer arrays.
Definition intarray.cpp:137
3x3 matrix and related mathamatical operations
Definition matrix3.h:19
double e13
Definition matrix3.h:26
double e31
Definition matrix3.h:26
double e11
element e_ij: i_row, j_column
Definition matrix3.h:26
double e33
Definition matrix3.h:26
double e32
Definition matrix3.h:26
double e21
Definition matrix3.h:26
double e12
Definition matrix3.h:26
double e23
Definition matrix3.h:26
double e22
Definition matrix3.h:26
Definition matrix.h:19
void symmetrize_mat3(ModuleBase::matrix &sigma, const Lattice &lat) const
symmetrize a 3*3 tensor, which can be stress or variation of unitcell in cell-relax
Definition symmetry.cpp:119
void symmetrize_vec3_nat(double *v) const
symmetrize a vector3 with nat elements, which can be forces or variation of atom positions in relax
Definition symmetry.cpp:85
static int symm_flag
Definition symmetry.h:30
~UnitCell()
Definition symmetry_test_analysis.cpp:34
int *& iat2it
Definition unitcell.h:47
int *& lc
Definition unitcell.h:33
Atom * atoms
Definition unitcell.h:18
ModuleBase::Matrix3 & GT
Definition unitcell.h:40
double & lat0
Definition unitcell.h:28
std::vector< std::string > orbital_fn
Definition unitcell.h:206
ModuleBase::Matrix3 & latvec
Definition unitcell.h:35
int *& iwt2iw
Definition unitcell.h:50
UnitCell()
Definition symmetry_test_analysis.cpp:33
int & ntype
Definition unitcell.h:45
double & tpiba
Definition unitcell.h:30
ModuleBase::Matrix3 & latvec_supercell
Definition unitcell.h:38
double & tpiba2
Definition unitcell.h:31
ModuleBase::IntArray & itia2iat
Definition unitcell.h:51
int & nat
Definition unitcell.h:46
double & omega
Definition unitcell.h:32
ModuleBase::Matrix3 & GGT
Definition unitcell.h:41
bool set_atom_flag
Definition unitcell.h:20
std::vector< std::string > atom_label
Definition unitcell.h:202
std::string & Coordinate
Definition unitcell.h:26
int *& iat2ia
Definition unitcell.h:48
std::vector< std::string > pseudo_fn
Definition unitcell.h:203
int & nwmax
Definition unitcell.h:53
ModuleBase::Matrix3 & invGGT
Definition unitcell.h:42
std::string & latName
Definition unitcell.h:27
ModuleBase::Matrix3 & G
Definition unitcell.h:39
int *& iwt2iat
Definition unitcell.h:49
std::vector< std::string > pseudo_type
Definition unitcell.h:204
std::vector< double > atom_mass
Definition unitcell.h:201
int & namax
Definition unitcell.h:52
~pseudo()
Definition symmetry_test_analysis.cpp:26
pseudo()
Definition symmetry_test_analysis.cpp:23
info of lattice
Definition unitcell_data.h:8