NAMD
ComputeRestraints.h
Go to the documentation of this file.
1 
7 #ifndef COMPUTERESTRAINTS_H
8 #define COMPUTERESTRAINTS_H
9 
10 #include "ComputeHomePatch.h"
11 #include "ReductionMgr.h"
12 
14 {
15 private:
16  int consExp; // Exponent for energy function from SimParameters
17  //****** BEGIN selective restraints (X,Y,Z) changes
18  Bool consSelectOn; // Selection of Cartesian components active?
19  Bool consSelectX, consSelectY,
20  consSelectZ; // which components are active?
21  //****** END selective restraints (X,Y,Z) changes
22  //****** BEGIN moving constraints changes
23  Bool consMoveOn; // Are the moving constraints on?
24  Vector moveVel; // velocity of the constraint movement (A/timestep).
25  //****** END moving constraints changes
26  //****** BEGIN rotating constraints changes
27  // rotating constraints.
28  // Ref. pos. of all the atoms that are constrained will rotate
29  Bool consRotOn; // Are the rotating constraints on?
30  Vector rotAxis; // Axis of rotation
31  Vector rotPivot; // Pivot point of rotation
32  BigReal rotVel; // Rotation velocity (deg/timestep);
33  //****** END rotating constraints changes
34 
35 public:
36  ComputeRestraints(ComputeID c, PatchID pid); // Constructor
37  virtual ~ComputeRestraints(); // Destructor
38  virtual void doForce(FullAtom* p, Results* r);
40 
41 };
42 
43 #endif
44 
int ComputeID
Definition: NamdTypes.h:183
Definition: Vector.h:64
SubmitReduction * reduction
virtual void doForce(FullAtom *p, Results *r)
ComputeRestraints(ComputeID c, PatchID pid)
int Bool
Definition: common.h:133
virtual ~ComputeRestraints()
int PatchID
Definition: NamdTypes.h:182
double BigReal
Definition: common.h:114