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 |
|
|
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 |
|
|
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 |
+ |
double momIntTol; |
109 |
+ |
|
110 |
|
vector<Atom*> myAtoms; // the vector of atoms |
111 |
|
vector<vec3> refCoords; |
112 |
|
vector<mat3x3> refOrients; |