Tinker9 70bd052 (Thu Nov 9 12:11:35 2023 -0800)
Loading...
Searching...
No Matches
evdw.h
1#pragma once
2#include "ff/energybuffer.h"
3#include "tool/rcman.h"
4
6
7extern "C"
8{
9 class LJ
10 {
11 int foo;
12 };
13
14 class BUCK
15 {
16 int foo;
17 };
18
19 class MM3HB
20 {
21 int foo;
22 };
23
24 class HAL
25 {
26 int foo;
27 };
28
29 class GAUSS
30 {
31 int foo;
32 };
33}
34
35namespace tinker {
38enum class Vdw : int
39{
40 DECOUPLE = 0,
41 ANNIHILATE = 1,
42
43 ATOM_TYPE = 10,
44 ATOM_CLASS = 11,
45
46 ARITHMETIC = 20,
47 GEOMETRIC = 21,
48 CUBIC_MEAN = 22,
49 HHG = 23,
50 W_H = 24,
51
52 LJ,
53 BUCK,
54 MM3HB,
55 HAL,
56 GAUSS,
57};
58}
59
60namespace tinker {
66void evdw(int vers);
67
72void elj(int vers);
74void elj14(int vers);
75
77void ebuck(int vers);
78
80void emm3hb(int vers);
81
83void egauss(int vers);
84
103void ehal(int vers);
104
109}
110
111//====================================================================//
112// //
113// Global Variables //
114// //
115//====================================================================//
116
117namespace tinker {
132
137
142
149
155
162
168
171
180
184
191TINKER_EXTERN int (*vdw14ik)[2];
193TINKER_EXTERN int (*vexclude)[2];
195}
196
197namespace tinker {
199
203
207
209
212TINKER_EXTERN int* mut;
213}
Definition: evdw.h:15
Definition: evdw.h:30
Definition: evdw.h:25
Definition: evdw.h:10
Definition: evdw.h:20
#define TINKER_EXTERN
Definition: macro.h:108
CountBufferTraits::type * CountBuffer
Definition: energybuffer.h:92
EnergyBufferTraits::type * EnergyBuffer
Definition: energybuffer.h:93
VirialBufferTraits::type(* VirialBuffer)[VirialBufferTraits::value]
Definition: energybuffer.h:94
mixed virial_prec
Definition: precision.h:98
float real
Definition: precision.h:80
fixed grad_prec
Definition: precision.h:103
mixed energy_prec
Floating-point type for total energies.
Definition: precision.h:97
ResourceOperation
Definition: rcman.h:46
void vdwSoftcoreData(RcOp)
void emm3hb(int vers)
Vdw
Constant flags for the VDW energy functions.
Definition: evdw.h:39
real dhal
Value of in buffered 14-7 vdw potential.
grad_prec * gxred
Halgren buffered 14-7 reduced vdw gradients for each atom.
real scalpha
Scale factor for soft core buffered 14-7 potential.
int * jvdw
Type or class index into vdw parameters for each atom. The indices have been sorted and start from 0.
void elj(int vers)
Lennard-Jones 12-6 potential.
int * mut
State weighting values (lambda) of all atoms for van der Waals potentials.
void ehalReduceXyz()
energy_prec elrc_vol
Long-range energy correction (lrc), used as e += lrc/volume.
void evdw(int vers)
real * radmin4
VDW 1-4 parameters: minimum energy distance and well depth.
void ehal(int vers)
Halgren buffered 14-7 potential.
real * xred
Halgren buffered 14-7 reduced x, y, z coordinates for each atom.
real ghal
Value of in buffered 14-7 vdw potential.
virial_prec vlrc_vol
Long-range virial correction (lrc), used as v(i,i) += lrc/volume.
real scexp
Exponential factor for soft core buffered 14-7 potential.
void ebuck(int vers)
void elj14(int vers)
real * radmin
Minimum energy distance (radmin) or well depth parameter (epsilon) for each jvdw pair....
void ehalResolveGradient()
void evdwData(RcOp)
int njvdw
Number of unique values in the jvdw array.
void egauss(int vers)
@ ATOM_TYPE
Indexing mode.
@ BUCK
Buckingham potential.
@ GAUSS
Gaussian expansion VDW potential.
@ LJ
Lennard-Jones 12-6 potential.
@ W_H
Combining rule.
@ DECOUPLE
VDW lambda type: decouple.
@ GEOMETRIC
Combining rule.
@ HHG
Combining rule.
@ ARITHMETIC
Combining rule.
@ ATOM_CLASS
Indexing mode.
@ CUBIC_MEAN
Combining rule.
@ MM3HB
MM3 exp-6 potential.
@ ANNIHILATE
VDW lambda type: annihilate.
@ HAL
Halgren buffered 14-7 potential.
Definition: testrt.h:9
int(* vdw14ik)[2]
real vlam
grad_prec * devx
real * epsilon
int nvexclude
grad_prec * devy
Vdw vdwtyp
real * yred
grad_prec * gzred
real v3scale
real v2scale
Vdw vdwindex
real * atom_rad
grad_prec * devz
int(* vexclude)[2]
int * ired
Vdw epsrule
real * epsilon4
real * atom_eps
real * kred
energy_prec energy_ev
real v5scale
Vdw vcouple
int nvdw14
real * zred
virial_prec virial_ev[9]
grad_prec * gyred
real * vexclude_scale
Vdw radrule
EnergyBuffer ev
real v4scale
CountBuffer nev
VirialBuffer vir_ev