ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/primitives/Molecule.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/primitives/Molecule.hpp (file contents):
Revision 1733 by tim, Fri Nov 12 06:19:04 2004 UTC vs.
Revision 1901 by tim, Tue Jan 4 22:18:36 2005 UTC

# Line 35 | Line 35
35   #include <vector>
36   #include <iostream>
37  
38 + #include "constraints/ConstraintPair.hpp"
39   #include "math/Vector3.hpp"
40   #include "primitives/Atom.hpp"
41   #include "primitives/RigidBody.hpp"
42 < //#include "primitives/Bond.hpp"
43 < //#include "primitives/Bend.hpp"
44 < //#include "primitives/Torsion.hpp"
44 < #include "primitives/SRI.hpp"
42 > #include "primitives/Bond.hpp"
43 > #include "primitives/Bend.hpp"
44 > #include "primitives/Torsion.hpp"
45   #include "primitives/CutoffGroup.hpp"
46  
47   namespace oopse{
# Line 113 | Line 113 | class Molecule {
113          void addRigidBody(RigidBody *rb);
114  
115          /** add a cutoff group into this molecule */
116 <        void addCutoffGroup(CutoffGroup* cp);        
116 >        void addCutoffGroup(CutoffGroup* cp);    
117  
118 +        void addConstraintPair(ConstraintPair* consPair);
119 +
120          /** */
121          void complete();
122  
# Line 154 | Line 156 | class Molecule {
156          }
157  
158          /** Returns the total number of constraints in this molecule */
159 <        unsigned int getNConstraints() {
160 <            return constraints_.size();
159 >        unsigned int getNConstraintPairs() {
160 >            return constraintPairs_.size();
161          }
162  
163          Atom* getAtomAt(unsigned int i) {
# Line 229 | Line 231 | class Molecule {
231           */        
232          CutoffGroup* nextCutoffGroup(std::vector<CutoffGroup*>::iterator& i);
233  
234 <        Constraint* beginConstraint(std::vector<Constraint*>::iterator& i);
234 >        ConstraintPair* beginConstraintPair(std::vector<ConstraintPair*>::iterator& i);
235  
236 <        Constraint* nextConstraint(std::vector<Constraint*>::iterator& i);
236 >        ConstraintPair* nextConstraintPair(std::vector<ConstraintPair*>::iterator& i);
237          
236        //void setStampID( int info ) {stampID = info;}
238  
238        void calcForces( void );
239
240        void atoms2rigidBodies( void );
241
239          /** return the total potential energy of short range interaction of this molecule */
240          double getPotential();
241  
242 +        /** get total mass of this molecule */        
243 +        double getMass();
244  
245          /** return the center of mass of this molecule */
246          Vector3d getCom();
# Line 268 | Line 267 | class Molecule {
267          std::vector<RigidBody*> rigidBodies_;
268          std::vector<StuntDouble*> integrableObjects_;
269          std::vector<CutoffGroup*> cutoffGroups_;
270 <        std::vector<Constraint*> constraints_;
270 >        std::vector<ConstraintPair*> constraintPairs_;
271  
272          int stampId_;
273          std::string moleculeName_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines