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
13
class
ComputeRestraints
:
public
ComputeHomePatch
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);
39
SubmitReduction
*
reduction
;
40
41
};
42
43
#endif
44
Results
Definition:
PatchTypes.h:137
ComputeID
int32 ComputeID
Definition:
NamdTypes.h:278
Vector
Definition:
Vector.h:72
ComputeRestraints::reduction
SubmitReduction * reduction
Definition:
ComputeRestraints.h:39
ComputeRestraints::doForce
virtual void doForce(FullAtom *p, Results *r)
Definition:
ComputeRestraints.C:77
ComputeHomePatch
Definition:
ComputeHomePatch.h:25
SubmitReduction
Definition:
ReductionMgr.h:305
ComputeRestraints::ComputeRestraints
ComputeRestraints(ComputeID c, PatchID pid)
Definition:
ComputeRestraints.C:20
Bool
int Bool
Definition:
common.h:142
ComputeRestraints::~ComputeRestraints
virtual ~ComputeRestraints()
Definition:
ComputeRestraints.C:65
ReductionMgr.h
FullAtom
Definition:
NamdTypes.h:200
ComputeHomePatch.h
PatchID
int32 PatchID
Definition:
NamdTypes.h:277
ComputeRestraints
Definition:
ComputeRestraints.h:13
BigReal
double BigReal
Definition:
common.h:123
Generated by
1.8.14