7 |
|
|
8 |
|
#include "SimState.hpp" |
9 |
|
#include "StuntDouble.hpp" |
10 |
+ |
#include "BaseVisitor.hpp" |
11 |
|
|
12 |
|
class Atom : public StuntDouble { |
13 |
|
public: |
24 |
|
void setVel( double theV[3] ); |
25 |
|
|
26 |
|
void getFrc( double theF[3] ); |
27 |
+ |
void setFrc( double theF[3] ); |
28 |
|
void addFrc( double theF[3] ); |
29 |
|
|
30 |
|
virtual void zeroForces(); |
49 |
|
void setHasDipole( int value ) { has_dipole = value; } |
50 |
|
int hasDipole( void ) { return has_dipole; } |
51 |
|
|
52 |
+ |
void setHasCharge(int value) {has_charge = value;} |
53 |
+ |
int hasCharge(void) {return has_charge;} |
54 |
+ |
|
55 |
+ |
|
56 |
+ |
virtual void accept(BaseVisitor* v) {v->visit(this);} |
57 |
+ |
|
58 |
|
protected: |
59 |
|
|
60 |
|
SimState* myConfig; |
66 |
|
double* Amat; // the rotation matrix |
67 |
|
double* mu; // the array of dipole moments |
68 |
|
double* ul; // the lab frame unit directional vector |
69 |
+ |
double* quat; // the quaternion array |
70 |
|
|
71 |
+ |
double zAngle; // the rotation about the z-axis ( body-fixed ) |
72 |
+ |
|
73 |
|
double c_mass; /* the mass of the atom in amu */ |
74 |
|
|
75 |
|
int index; /* set the atom's index */ |
84 |
|
int ident; // it's unique numeric identity. |
85 |
|
|
86 |
|
int has_dipole; // dipole boolean |
87 |
+ |
int has_charge; // charge boolean |
88 |
|
|
89 |
|
bool hasCoords; |
90 |
|
|