-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid_bigcell.h
75 lines (55 loc) · 1.53 KB
/
grid_bigcell.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef GRID_BIGCELL_H
#define GRID_BIGCELL_H
#include "module_base/global_function.h"
#include "module_base/global_variable.h"
#include "module_base/matrix3.h"
#include "grid_meshcell.h"
class Grid_BigCell: public Grid_MeshCell
{
public:
Grid_BigCell();
~Grid_BigCell();
// save the relative cartesian position
// to bigcell of each atom.
double** tau_in_bigcell;
protected:
//---------------------------------
void init_big_latvec(void);
double bigcell_vec1[3];
double bigcell_vec2[3];
double bigcell_vec3[3];
ModuleBase::Matrix3 bigcell_latvec0;
ModuleBase::Matrix3 bigcell_GT;
//---------------------------------
//---------------------------------
void init_grid_expansion(void);
// get the max radius of all orbitals.
// which will use to generate grid expansion,
// and the meshball.
double orbital_rmax;
// Measure the distance between two bigcell
// in each direction.
double bigcell_dx;
double bigcell_dy;
double bigcell_dz;
// the added number of bigcelli each direction.
int dxe;
int dye;
int dze;
// expansion grid dimension.
int nxe;
int nye;
int nze;
int nxyze;
//---------------------------------
//---------------------------------
void init_tau_in_bigcell(void);
//this flag will be false at first and turned to true after memory of tau_in_meshcell has been allocated.
bool flag_tib;
int* index_atom;
//---------------------------------
//---------------------------------
void grid_expansion_index(bool f2normal, int *target)const;
//---------------------------------
};
#endif