1 |
|
/* |
2 |
< |
* Copyright (C) 2000-2004 Object Oriented Parallel Simulation Engine (OOPSE) project |
2 |
> |
* Copyright (C) 2000-2009 The Open Molecular Dynamics Engine (OpenMD) project |
3 |
|
* |
4 |
< |
* Contact: oopse@oopse.org |
4 |
> |
* Contact: gezelter@openscience.org |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
7 |
|
* modify it under the terms of the GNU Lesser General Public License |
33 |
|
#ifndef PRIMITIVES_MOLECULE_HPP |
34 |
|
#define PRIMITIVES_MOLECULE_HPP |
35 |
|
#include <vector> |
36 |
< |
|
36 |
> |
#include <iostream> |
37 |
|
#include "math/Vector3.hpp" |
38 |
|
|
39 |
< |
namespace oopse{ |
39 |
> |
namespace OpenMD{ |
40 |
|
|
41 |
|
/** |
42 |
|
* @class Molecule Molecule.hpp "primitives/Molecule.hpp" |
72 |
|
return localIndex_; |
73 |
|
} |
74 |
|
|
75 |
+ |
/** add an atom into this molecule */ |
76 |
+ |
void addAtom(Atom* atom); |
77 |
+ |
|
78 |
+ |
/** add a bond into this molecule */ |
79 |
+ |
void addBond(Bond* bond); |
80 |
+ |
|
81 |
+ |
/** add a bend into this molecule */ |
82 |
+ |
void addBend(Bend* bend); |
83 |
+ |
|
84 |
+ |
/** add a torsion into this molecule*/ |
85 |
+ |
void addTorsion(Torsion* torsion); |
86 |
+ |
|
87 |
+ |
/** add a rigidbody into this molecule */ |
88 |
+ |
void addRigidBody(RigidBody *rb); |
89 |
+ |
|
90 |
+ |
/** add a cutoff group into this molecule */ |
91 |
+ |
void addCutoffGroup(CutoffGroup* cp) |
92 |
+ |
|
93 |
+ |
/** */ |
94 |
+ |
void complete(); |
95 |
+ |
|
96 |
|
/** Returns the total number of atoms in this molecule */ |
97 |
|
unsigned int getNAtoms() { |
98 |
|
return atoms_.size(); |
217 |
|
/** Returns the total mass of this molecule */ |
218 |
|
double getTotalMass(); |
219 |
|
|
220 |
< |
friend ostream& operator <<(ostream& o, const Molecule& mol); |
220 |
> |
friend std::ostream& operator <<(std::ostream& o, const Molecule& mol); |
221 |
|
|
222 |
|
private: |
223 |
|
int localIndex_; |
232 |
|
std::vector<CutoffGroup*> cutoffGroups_; |
233 |
|
}; |
234 |
|
|
235 |
< |
} //namespace oopse |
235 |
> |
} //namespace OpenMD |
236 |
|
#endif // |