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

Comparing trunk/OOPSE/libmdtools/Molecule.hpp (file contents):
Revision 416 by gezelter, Wed Mar 26 23:14:02 2003 UTC vs.
Revision 483 by gezelter, Wed Apr 9 04:06:43 2003 UTC

# Line 14 | Line 14 | typedef struct{
14    int nBends;    // . . . . .. . .bends . . . . .. .
15    int nTorsions; // .. . . .. . . torsions . . .. . .
16    int nOriented; // .. . . . .. . oriented atoms . . .
17 <  
17 >  int nExcludes; // . . .. . . . .exclude pairs.. . . .
18 >
19    Atom** myAtoms;      // the array of atoms
20    Exclude** myExcludes;// the array of Excluded pairs
21    Bond** myBonds;      // arrays of all the short range interactions
# Line 33 | Line 34 | class Molecule{ (public)
34  
35    void initialize( molInit &theInit );
36  
37 <  int   getNMembers( void )  { return nMembers; }
38 <  int   getStartAtom( void ) { return startAtom; }
39 <  int   getEndAtom( void )   { return endAtom; }
40 <  int   getStampID( void )   { return stampID; }
37 >  void setMyIndex( int theIndex ){ myIndex = theIndex;}
38 >
39 >  int getNAtoms   ( void ) {return nAtoms;}
40 >  int getNBonds   ( void ) {return nBonds;}
41 >  int getNBends   ( void ) {return nBends;}
42 >  int getNTorsions( void ) {return nTorsions;}
43 >  int getNOriented( void ) {return nOriented;}
44 >  int getNExcludes( void ) {return nExcludes;}
45 >  int getNMembers ( void ) {return nMembers;}
46 >  int getStampID  ( void ) {return stampID;}
47 >
48 >  Atom**     getMyAtoms   ( void ) {return myAtoms;}
49 >  Bond**     getMyBonds   ( void ) {return myBonds;}
50 >  Bend**     getMyBends   ( void ) {return myBends;}
51 >  Torsion**  getMyTorsions( void ) {return myTorsions;}
52 >  Exclude**  getMyExcludes( void ) {return myExcludes;}
53    
54 <  void   setNMembers( int info )  { nMembers = info; }
55 <  void   setStartAtom( int info ) { startAtom = info; }
56 <  void   setEndAtom( int info )   { endAtom = info; }
57 <  void   setStampID( int info )   { stampID = info; }
54 >  void setStampID( int info ) {stampID = info;}
55 >
56 >  void calcForces( void );
57 >  double getPotential( void );
58    
59 +  void printMe( void );
60  
61 +  void getCOM( double COM[3] );
62 +  void moveCOM( double delta[3] );
63 +  double getCOMvel( double COMvel[3] );
64 +
65 +  void atomicRollCall(int* molMembership);
66 +
67   private:
68  
69    int stampID;   // the ID in the BASS component stamp array
# Line 52 | Line 72 | class Molecule{ (public)
72    int nBends;    // . . . . .. . .bends . . . . .. .
73    int nTorsions; // .. . . .. . . torsions . . .. . .
74    int nOriented; // .. . . . .. . oriented atoms . . .
75 <  int nMembers;
75 >  int nMembers;  // .. . . . . . .atoms (legacy code) . . .
76 >  int nExcludes; // . . . . .. .. excludes .. . .
77  
78 +  int myIndex; // mostly just for debug (and for making pressure calcs work)
79 +
80    Atom** myAtoms;     // the array of atoms
81 <  Bond** myBonds;      // arrays of all the short range interactions
81 >  Bond** myBonds;     // arrays of all the short range interactions
82    Bend** myBends;
83    Torsion** myTorsions;
84 +  Exclude** myExcludes; // array of the excluded pairs of long range forces
85    
62  int startAtom;
63  int endAtom;
64
65
86   };
87  
88   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines