-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhamop.h
66 lines (53 loc) · 2.29 KB
/
hamop.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
#ifndef hamop_h
#define hamop_h hamop_h
#include<complex>
#include<iostream>
#include<grid.h>
using namespace std;
class wavefunction;
class fluid;
class hamop
{
public:
hamop(grid g,
double (*fpx)(double, int),
double (*fpy)(double, int),
double (*fpz)(double, int),
double (*fpsx)(double, double, double, double, int),
double (*fpsy)(double, double, double, double, int),
double (*fpsz)(double, double, double, double, int),
double (*fpixy)(double, double, double, double, int),
double (*fpimx)(long, long, long, double, grid),
double (*fpimy)(long, long, long, double, grid),
double (*fpf)(double, int),
double (*dft)(grid, double, double, double, double, int, const fluid &, const wavefunction &)
);
double vecpot_x(double time, int me);
double vecpot_y(double time, int me);
double vecpot_z(double time, int me);
double scalarpot(double x, double y, double z, double time, int me);
double scalarpotx(double x, double y, double z, double time, int me);
double scalarpoty(double x, double y, double z, double time, int me);
double scalarpotz(double x, double y, double z, double time, int me);
double interactionpotxy(double x, double y, double z, double time, int me);
double imagpot(long xindex, long yindex, long zindex, double time, grid g);
double imagpotx(long xindex, long yindex, long zindex, double time, grid g);
double imagpoty(long xindex, long yindex, long zindex, double time, grid g);
double field(double time, int me);
double dftpot(grid g, double x, double y, double z, double time, int me,
const fluid &wf_one, const wavefunction &wf_two);
private:
double delta_x, delta_y, delta_z;
double (*hamopvecpotx)(double, int);
double (*hamopvecpoty)(double, int);
double (*hamopvecpotz)(double, int);
double (*hamopscalarpotx)(double, double, double, double, int);
double (*hamopscalarpoty)(double, double, double, double, int);
double (*hamopscalarpotz)(double, double, double, double, int);
double (*hamopinteractionpotxy)(double, double, double, double, int);
double (*hamopimagpotx)(long, long, long, double, grid);
double (*hamopimagpoty)(long, long, long, double, grid);
double (*hamopfield)(double, int);
double (*hamopdftpot)(grid, double, double, double, double, int, const fluid &, const wavefunction &);
};
#endif // hamop_h