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_ESOLVER_H
2#define TEST_ESOLVER_H
3
5
7{
8 Coordinate = "Direct";
9 latName = "none";
10 lat0_angstrom = 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 = 2;
23 nat = 2;
24
25 atom_label.resize(ntype);
26 atom_label[0] = "Al";
27 atom_label[1] = "Cu";
28
29 atoms = new Atom[ntype];
30 set_atom_flag = true;
31
32 for (int it = 0; it < ntype; it++)
33 {
34 Atom* atom = &atoms[it];
35 for (int ia = 0; ia < atom->na; ia++)
36 {
37 for (int ik = 0; ik < 3; ++ik)
38 {
39 atom->tau[ia][ik] = 3.0 * ia + ik;
40 }
41 }
42 }
43}
45{
46}
48{
49}
51{
52}
54{
55 na = 1;
56 tau.resize(na);
57 mbl.resize(na);
58}
60{
61}
63{
64}
66{
67}
69{
70}
72{
73}
74#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
Atom()
Definition atom_spec.cpp:5
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
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
~UnitCell()
Definition symmetry_test_analysis.cpp:34
Atom * atoms
Definition unitcell.h:18
ModuleBase::Matrix3 & latvec
Definition unitcell.h:35
UnitCell()
Definition symmetry_test_analysis.cpp:33
int & ntype
Definition unitcell.h:45
int & nat
Definition unitcell.h:46
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
std::string & latName
Definition unitcell.h:27
double & lat0_angstrom
Definition unitcell.h:29
~pseudo()
Definition symmetry_test_analysis.cpp:26
pseudo()
Definition symmetry_test_analysis.cpp:23