-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCudaDirectForceTypes.h
70 lines (51 loc) · 1.29 KB
/
CudaDirectForceTypes.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
#ifndef CUDADIRECTFORCETYPES_H
#define CUDADIRECTFORCETYPES_H
struct DirectEnergyVirial_t {
// Energies
double energy_vdw;
double energy_elec;
double energy_excl;
// Finished virial
double vir[9];
// DP Shift forces for virial calculation
double sforce[27*3];
// FP Shift forces for virial calculation
long long int sforce_fp[27*3];
};
struct DirectSettings_t {
float kappa;
float kappa2;
float boxx;
float boxy;
float boxz;
float roff, roff2, roff3, roff5;
float ron, ron2;
float roffinv;
float roffinv2;
float roffinv3;
float roffinv4;
float roffinv5;
float roffinv6;
float roffinv12;
float roffinv18;
float inv_roff2_ron2_3;
float k6, k12, dv6, dv12;
float ga6, gb6, gc6;
float ga12, gb12, gc12;
float GAconst, GBcoef;
float Aconst, Bconst, Cconst, Dconst;
float dvc;
float Acoef, Bcoef, Ccoef;
float Denom, Eaddr, Constr;
float e14fac;
float hinv;
float *ewald_force;
};
// Enum for VdW and electrostatic models
enum {NONE=0,
VDW_VSH=1, VDW_VSW=2, VDW_VFSW=3, VDW_VGSH=4, VDW_CUT=5,
EWALD=101, CSHIFT=102, CFSWIT=103, CSHFT=104, CSWIT=105, RSWIT=106,
RSHFT=107, RSHIFT=108, RFSWIT=109, GSHFT=110, EWALD_LOOKUP=111};
// Enum for vdwparam
enum {VDW_MAIN, VDW_IN14};
#endif // CUDADIRECTFORCETYPES_H