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 1187 by chrisfen, Sat May 22 18:16:18 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 63 | Line 66 | class RigidBody : public StuntDouble { (public)
66    void lab2Body( double r[3] );
67    void body2Lab( double r[3] );
68  
69 +  double getZangle( );
70 +  void setZangle( double zAng );
71 +  void addZangle( double zAng );
72 +
73    void calcRefCoords( void );
74    void doEulerToRotMat(vec3 &euler, mat3x3 &myA );
75    void calcForcesAndTorques( void );
# Line 83 | Line 90 | class RigidBody : public StuntDouble { (public)
90    // utility routines
91  
92    void findCOM( void );
93 +
94 +  virtual void accept(BaseVisitor* v);
95 +
96 +  vector<Atom*> getAtoms() { return myAtoms;}
97    
98   protected:
99  
# Line 95 | Line 106 | class RigidBody : public StuntDouble { (public)
106    double A[3][3];  // the rotation matrix
107    double I[3][3];  // the inertial tensor (body fixed)
108    double sU[3][3]; // the standard unit vectors (body fixed)
109 +  double zAngle;   // the rotation about the z-axis (body fixed)
110  
111 +  bool is_linear;
112 +  int linear_axis;
113 +  double momIntTol;
114 +
115    vector<Atom*> myAtoms;  // the vector of atoms
116    vector<vec3> refCoords;
117    vector<mat3x3> refOrients;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines