NAMD
ComputeSphericalBC.h
Go to the documentation of this file.
1 
7 #ifndef COMPUTESPHERICALBC_H
8 #define COMPUTESPHERICALBC_H
9 
10 #include "ComputeHomePatch.h"
11 #include "ReductionMgr.h"
12 
14 {
15 private:
16  BigReal r1; // Radius of first sphere
17  BigReal r1_2; // Radius of first sphere squared
18  BigReal k1; // First force constant
19  BigReal r2; // Radius of second sphere (-1 if inactive)
20  BigReal r2_2; // Raidus of second sphere squared
21  BigReal k2; // Second force constant
22  int exp1; // Exponent for first boundary condition
23  int exp2; // Exponent for second boundary condition
24  Bool twoForces; // Are there two potentials or just one
25  BigReal energy; // Energy computed for the current timestep
26  Vector center; // Center of spheres
27 
28 public:
29  ComputeSphericalBC(ComputeID c, PatchID pid); // Constructor
30  virtual ~ComputeSphericalBC(); // Destructor
31  virtual void doForce(FullAtom* p, Results* r);
33 
34 };
35 
36 #endif
37 
38 
39 
40 
41 
42 
43 
int ComputeID
Definition: NamdTypes.h:183
virtual void doForce(FullAtom *p, Results *r)
Definition: Vector.h:64
ComputeSphericalBC(ComputeID c, PatchID pid)
int Bool
Definition: common.h:133
int PatchID
Definition: NamdTypes.h:182
double BigReal
Definition: common.h:114
SubmitReduction * reduction