8 #include "MdPairPotential.h" 9 #include <mcMd/simulation/System.h> 10 #include <mcMd/simulation/Simulation.h> 11 #include <simp/boundary/Boundary.h> 43 UTIL_THROW(
"PairList not initialized in MdPairPotential::buildPairList");
53 for (
begin(iSpec, molIter); molIter.
notEnd(); ++molIter) {
54 molIter->begin(atomIter);
55 for ( ; atomIter.
notEnd(); ++atomIter) {
void addAtom(Atom &atom)
Add an Atom to the CellList.
An interface to a System.
void build(const Boundary &boundary)
Use a complete CellList to build a new PairList.
bool notEnd() const
Is the current pointer not at the end of the array?
A set of interacting Molecules enclosed by a Boundary.
File containing preprocessor macros for error handling.
Classes used by all simpatico molecular simulations.
bool isInitialized() const
Has the initialize function been called?
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
void setup(const Boundary &boundary)
Setup an empty grid of cells for the internal cell list.
Simulation & simulation() const
Get the parent Simulation by reference.
MdPairPotential(System &system)
Constructor.
bool notEnd() const
Is the current pointer not at the end of the PArray?
Utility classes for scientific computation.
void shift(Vector &r) const
Shift Cartesian Vector r to its primary image.
Forward iterator for an Array or a C array.
Forward iterator for a PArray.
PairList pairList_
Verlet neighbor pair list for nonbonded interactions.
void clearStatistics()
Clear statistical accumulators (maxNAtom, maxNPair, buildCounter).
void begin(int speciesId, System::MoleculeIterator &iterator)
Initialize an iterator for molecules of one species in this SystemInterface.
bool isPairListCurrent()
Return true if PairList is current, false if obsolete.
virtual ~MdPairPotential()
Destructor.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
int nSpecies() const
Get the number of Species in this Simulation.
void buildPairList()
Build the internal PairList.
void clearPairListStatistics()
Clear all statistical accumulators stored in PairList.
void setClassName(const char *className)
Set class name string.
bool isCurrent(const Boundary &boundary) const
Returns true if PairList is current, false otherwise.
Boundary & boundary() const
Get the Boundary by reference.
An object that can read multiple parameters from file.