ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/RigidBody.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/RigidBody.hpp (file contents):
Revision 1113 by tim, Thu Apr 15 16:18:26 2004 UTC vs.
Revision 1118 by tim, Mon Apr 19 03:52:27 2004 UTC

# Line 39 | Line 39 | class RigidBody : public StuntDouble { (public)
39    void getFrc( double theF[3] );
40    void addFrc( double theF[3] );
41    void zeroForces();
42 +  
43 +  virtual bool isLinear() {return is_linear;}
44 +  virtual int linearAxis() {return linear_axis;}
45  
46    double getMass( void ) { return mass; }
47  
# Line 83 | Line 86 | class RigidBody : public StuntDouble { (public)
86    // utility routines
87  
88    void findCOM( void );
89 +
90 +  virtual void accept(BaseVisitor* v);
91 +
92 +  vector<Atom*> getAtoms() { return myAtoms;}
93    
94   protected:
95  
# Line 96 | Line 103 | class RigidBody : public StuntDouble { (public)
103    double I[3][3];  // the inertial tensor (body fixed)
104    double sU[3][3]; // the standard unit vectors (body fixed)
105  
106 +  bool is_linear;
107 +  int linear_axis;
108 +  const static double momIntTol = 1e-6;
109 +
110    vector<Atom*> myAtoms;  // the vector of atoms
111    vector<vec3> refCoords;
112    vector<mat3x3> refOrients;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines