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

Comparing trunk/OOPSE/libmdtools/Atom.hpp (file contents):
Revision 1097 by gezelter, Mon Apr 12 20:32:20 2004 UTC vs.
Revision 1452 by tim, Mon Aug 23 15:11:36 2004 UTC

# Line 7 | Line 7
7  
8   #include "SimState.hpp"
9   #include "StuntDouble.hpp"
10 + #include "BaseVisitor.hpp"
11  
12   class Atom : public StuntDouble {
13   public:
# Line 23 | Line 24 | class Atom : public StuntDouble { (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();
# Line 47 | Line 49 | class Atom : public StuntDouble { (public)
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;
# Line 58 | Line 66 | class Atom : public StuntDouble { (public)
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 */
# Line 73 | Line 84 | class Atom : public StuntDouble { (public)
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines