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 1118 by tim, Mon Apr 19 03:52:27 2004 UTC vs.
Revision 1452 by tim, Mon Aug 23 15:11:36 2004 UTC

# Line 26 | Line 26 | class RigidBody : public StuntDouble { (public)
26   public:
27    
28    RigidBody();
29 +  //RigidBody(const RigidBody& rb);
30 +  
31    virtual ~RigidBody();
32  
33    void addAtom(Atom* at, AtomStamp* ats);
# Line 37 | Line 39 | class RigidBody : public StuntDouble { (public)
39    void setVel( double theV[3] );
40  
41    void getFrc( double theF[3] );
42 +  void setFrc(double theF[3] );
43    void addFrc( double theF[3] );
44    void zeroForces();
45    
# Line 60 | Line 63 | class RigidBody : public StuntDouble { (public)
63    virtual char* getType() { return rbName;}
64  
65    void getTrq( double theT[3] );
66 +  void setTrq(double theT[3]);
67    void addTrq( double theT[3] );
68  
69    void getI( double the_I[3][3] );
70    void lab2Body( double r[3] );
71    void body2Lab( double r[3] );
72  
73 +  double getZangle( );
74 +  void setZangle( double zAng );
75 +  void addZangle( double zAng );
76 +
77    void calcRefCoords( void );
78    void doEulerToRotMat(vec3 &euler, mat3x3 &myA );
79    void calcForcesAndTorques( void );
# Line 90 | Line 98 | class RigidBody : public StuntDouble { (public)
98    virtual void accept(BaseVisitor* v);
99  
100    vector<Atom*> getAtoms() { return myAtoms;}
101 <  
101 >  int getNumAtoms() {return myAtoms.size();}
102 >
103 >  void getAtomPos(double theP[3], int index);
104 >  void getAtomVel(double theV[3], int index);
105 >  void getAtomRefCoor(double pos[3], int index);
106   protected:
107  
108    double mass;     // the total mass
# Line 102 | Line 114 | class RigidBody : public StuntDouble { (public)
114    double A[3][3];  // the rotation matrix
115    double I[3][3];  // the inertial tensor (body fixed)
116    double sU[3][3]; // the standard unit vectors (body fixed)
117 +  double zAngle;   // the rotation about the z-axis (body fixed)
118  
119    bool is_linear;
120    int linear_axis;
121 <  const static double momIntTol = 1e-6;
121 >  double momIntTol;
122  
123    vector<Atom*> myAtoms;  // the vector of atoms
124    vector<vec3> refCoords;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines