8 #include "McPairPotential.h" 9 #include <mcMd/simulation/System.h> 10 #include <mcMd/simulation/Simulation.h> 11 #include <mcMd/chemistry/Atom.h> 12 #include <mcMd/chemistry/Molecule.h> 13 #include <simp/boundary/Boundary.h> 50 for (
begin(iSpec, molIter); molIter.
notEnd(); ++molIter) {
51 for (molIter->begin(atomIter); atomIter.
notEnd(); ++atomIter) {
virtual double maxPairCutoff() const =0
Return maximum cutoff distance.
void buildCellList()
Build the CellList with current configuration.
An interface to a System.
bool notEnd() const
Is the current pointer not at the end of the array?
McPairPotential(System &system)
Constructor.
A set of interacting Molecules enclosed by a Boundary.
File containing preprocessor macros for error handling.
Classes used by all simpatico molecular simulations.
CellList cellList_
Cell list for atom positions.
Simulation & simulation() const
Get the parent Simulation by reference.
bool notEnd() const
Is the current pointer not at the end of the PArray?
Utility classes for scientific computation.
void setup(const Boundary &boundary, double cutoff)
Setup grid of empty cells.
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.
virtual ~McPairPotential()
Destructor.
void begin(int speciesId, System::MoleculeIterator &iterator)
Initialize an iterator for molecules of one species in this SystemInterface.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
int nSpecies() const
Get the number of Species in this Simulation.
void setClassName(const char *className)
Set class name string.
Boundary & boundary() const
Get the Boundary by reference.
An object that can read multiple parameters from file.
void addAtom(Atom &atom)
Add a Atom to the appropriate cell, based on its position.