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 atoms = new Atom[ntype];
26 set_atom_flag = true;
27 atoms[0].label = "Al";
28 atoms[1].label = "Cu";
29
30 for (int it = 0; it < ntype; it++)
31 {
32 Atom *atom = &atoms[it];
33 for (int ia = 0; ia < atom->na; ia++)
34 {
35 for (int ik = 0; ik < 3; ++ik)
36 {
37 atom->tau[ia][ik] = 3.0 * ia + ik;
38 }
39 }
40 }
41}
46{
47 na = 1;
48 tau.resize(na);
49 mbl.resize(na);
50}
51Atom::~Atom() {}
58Sep_Cell::Sep_Cell() noexcept {}
59Sep_Cell::~Sep_Cell() noexcept {}
60#endif
~Atom_pseudo()
Definition atom_pseudo.cpp:11
Atom_pseudo()
Definition atom_pseudo.cpp:7
int na
Number of atoms in this type.
Definition atom_spec.h:44
~Atom()
Destructor.
Definition atom_spec.cpp:13
Atom()
Constructor.
Definition atom_spec.cpp:9
std::vector< ModuleBase::Vector3< double > > tau
Cartesian coordinates of each atom in this type, in unit of lat0.
Definition atom_spec.h:52
std::vector< ModuleBase::Vector3< int > > mbl
whether the atoms can move or not
Definition atom_spec.h:28
Magnetism()
Constructor.
Definition magnetism.cpp:8
~Magnetism()
Destructor.
Definition magnetism.cpp:16
SepPot()
Definition symm_rho_soc_test.cpp:39
~SepPot()
Definition symm_rho_soc_test.cpp:40
~Sep_Cell() noexcept
Definition symm_rho_soc_test.cpp:42
Sep_Cell() noexcept
Definition symm_rho_soc_test.cpp:41
~UnitCell()
Definition symm_rho_soc_test.cpp:36
int ntype
number of atom species in UnitCell
Definition unitcell.h:154
Atom * atoms
Definition unitcell.h:165
ModuleBase::Matrix3 & latvec
Definition unitcell.h:142
UnitCell()
Definition symm_rho_soc_test.cpp:35
bool set_atom_flag
added on 2009-3-8 by mohan
Definition unitcell.h:215
int nat
total number of atoms of all species in unitcell
Definition unitcell.h:155
std::string & Coordinate
Definition unitcell.h:133
std::string & latName
Definition unitcell.h:134
double & lat0_angstrom
Definition unitcell.h:136
~pseudo()
Definition symm_rho_soc_test.cpp:30
pseudo()
Definition symm_rho_soc_test.cpp:29
const std::string atom
Definition para_tag.h:36