1 #ifndef MCMD_PAIR_LIST_H 2 #define MCMD_PAIR_LIST_H 12 #include <simp/boundary/Boundary.h> 13 #include <util/param/ParamComposite.h> 14 #include <util/containers/DArray.h> 15 #include <util/space/Vector.h> 65 static const int NullIndex = -1;
86 void readParameters(std::istream &in);
117 void initialize(
int atomIdEnd,
double potentialCutoff);
122 void setup(
const Boundary &boundary);
140 void addAtom(
Atom& atom);
152 void build(
const Boundary& boundary);
178 bool isInitialized()
const;
193 bool isCurrent(
const Boundary &boundary)
const;
196 bool isValid()
const;
205 int maxNAtom()
const;
210 int maxNPair()
const;
215 int buildCounter()
const;
220 void clearStatistics();
347 friend class ::PairListTest;
356 { cellList_.addAtom(atom); }
374 {
return maxNAtom_; }
380 {
return maxNAtom2_; }
386 {
return buildCounter_; }
392 {
return isInitialized_; }
void addAtom(Atom &atom)
Add an Atom to the CellList.
int buildCounter() const
Return number of times the PairList has been built thus far.
An orthorhombic periodic unit cell.
Classes used by all simpatico molecular simulations.
bool isInitialized() const
Has the initialize function been called?
Saving / output archive for binary ostream.
A point particle within a Molecule.
Utility classes for scientific computation.
int nAtom() const
Get the number of pairs currently in the PairList.
int nPair() const
Get the number of pairs currently in the PairList.
Iterator for pairs in a PairList.
A cell list for Atom objects in a periodic system boundary.
Dynamically allocatable contiguous array template.
Saving archive for binary istream.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
int maxNPair() const
Get the maximum number of pairs encountered thus far.
int maxNAtom() const
Get the maximum number of atoms encountered thus far.
An object that can read multiple parameters from file.