--- trunk/OOPSE/libmdtools/Molecule.hpp 2003/07/31 15:35:07 658 +++ trunk/OOPSE/libmdtools/Molecule.hpp 2004/04/12 20:32:20 1097 @@ -4,7 +4,7 @@ #include "Atom.hpp" #include "SRI.hpp" #include "MoleculeStamp.hpp" -#include "Exclude.hpp" +#include "RigidBody.hpp" typedef struct{ @@ -13,16 +13,14 @@ typedef struct{ int nBonds; // ... .. .. . .bonds .. .. . . . . int nBends; // . . . . .. . .bends . . . . .. . int nTorsions; // .. . . .. . . torsions . . .. . . + int nRigidBodies; // .. .. .. . rigid bodies ... .. int nOriented; // .. . . . .. . oriented atoms . . . - int nExcludes; // . . .. . . . .exclude pairs.. . . . Atom** myAtoms; // the array of atoms - Exclude** myExcludes;// the array of Excluded pairs Bond** myBonds; // arrays of all the short range interactions Bend** myBends; Torsion** myTorsions; - - + RigidBody** myRigidBodies; } molInit; class Molecule{ @@ -40,27 +38,25 @@ class Molecule{ (public) int getMyIndex( void ) { return myIndex; } int getGlobalIndex( void ) { return globalIndex; } - int getNAtoms ( void ) {return nAtoms;} - int getNBonds ( void ) {return nBonds;} - int getNBends ( void ) {return nBends;} - int getNTorsions( void ) {return nTorsions;} - int getNOriented( void ) {return nOriented;} - int getNExcludes( void ) {return nExcludes;} - int getNMembers ( void ) {return nMembers;} - int getStampID ( void ) {return stampID;} + int getNAtoms ( void ) {return nAtoms;} + int getNBonds ( void ) {return nBonds;} + int getNBends ( void ) {return nBends;} + int getNTorsions( void ) {return nTorsions;} + int getNRigidBodies( void ) {return nRigidBodies;} + int getNOriented( void ) {return nOriented;} + int getNMembers ( void ) {return nMembers;} + int getStampID ( void ) {return stampID;} - Atom** getMyAtoms ( void ) {return myAtoms;} - Bond** getMyBonds ( void ) {return myBonds;} - Bend** getMyBends ( void ) {return myBends;} - Torsion** getMyTorsions( void ) {return myTorsions;} - Exclude** getMyExcludes( void ) {return myExcludes;} + Atom** getMyAtoms ( void ) {return myAtoms;} + Bond** getMyBonds ( void ) {return myBonds;} + Bend** getMyBends ( void ) {return myBends;} + Torsion** getMyTorsions( void ) {return myTorsions;} + RigidBody** getMyRigidBodies( void ) {return myRigidBodies;} - void setStampID( int info ) {stampID = info;} - + void setStampID( int info ) {stampID = info;} - - void calcForces( void ); + void atoms2rigidBodies( void ); double getPotential( void ); void printMe( void ); @@ -78,9 +74,9 @@ class Molecule{ (public) int nBonds; // ... .. .. . .bonds .. .. . . . . int nBends; // . . . . .. . .bends . . . . .. . int nTorsions; // .. . . .. . . torsions . . .. . . + int nRigidBodies; // .. . . .. .rigid bodies . . .. . . int nOriented; // .. . . . .. . oriented atoms . . . int nMembers; // .. . . . . . .atoms (legacy code) . . . - int nExcludes; // . . . . .. .. excludes .. . . int myIndex; // mostly just for debug (and for making pressure calcs work) int globalIndex; @@ -89,7 +85,7 @@ class Molecule{ (public) Bond** myBonds; // arrays of all the short range interactions Bend** myBends; Torsion** myTorsions; - Exclude** myExcludes; // array of the excluded pairs of long range forces + RigidBody** myRigidBodies; };