1 #ifndef MCMD_SYSTEM_INTERFACE_H 2 #define MCMD_SYSTEM_INTERFACE_H 11 #include <mcMd/simulation/System.h> 12 #include <mcMd/chemistry/Molecule.h> 13 #include <simp/boundary/Boundary.h> 15 #include <util/containers/DArray.h> 16 #include <util/containers/PArrayIterator.h> 86 int nMolecule(
int speciesId)
const;
119 bool hasBonds()
const;
124 bool hasAngles()
const;
129 bool hasDihedrals()
const;
134 bool hasLinks()
const;
139 bool hasExternal()
const;
144 bool hasTethers()
const;
208 assert(simulationPtr_);
209 return *simulationPtr_;
226 assert(boundaryPtr_);
227 return *boundaryPtr_;
235 assert(moleculeSetsPtr_);
236 return (*moleculeSetsPtr_)[speciesId].size();
245 assert(moleculeSetsPtr_);
246 (*moleculeSetsPtr_)[speciesId].begin(iterator);
255 assert(moleculeSetsPtr_);
256 (*moleculeSetsPtr_)[speciesId].begin(iterator);
264 {
return hasBonds_; }
272 {
return hasAngles_; }
278 {
return hasDihedrals_; }
284 {
return hasLinks_; }
290 {
return hasExternal_; }
294 inline bool SystemInterface::hasTethers()
const 296 {
return hasTethers_; }
bool hasExternal() const
Does an external potential exist?
bool hasLinks() const
Does a link potential exist?
An interface to a System.
bool hasBonds() const
Does a bond potential exist?
An orthorhombic periodic unit cell.
bool hasAngles() const
Does an angle potential exist?
A set of interacting Molecules enclosed by a Boundary.
Forward iterator for a PArray.
File containing preprocessor macros for error handling.
Classes used by all simpatico molecular simulations.
The main object in a simulation, which coordinates others.
bool hasDihedrals() const
Does a dihedral potential exist?
Simulation & simulation() const
Get the parent Simulation by reference.
Utility classes for scientific computation.
Forward iterator for a PArray.
void begin(int speciesId, System::MoleculeIterator &iterator)
Initialize an iterator for molecules of one species in this SystemInterface.
Dynamically allocatable contiguous array template.
int nMolecule(int speciesId) const
Get the number of molecules of one Species in this SystemInterface.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
Boundary & boundary() const
Get the Boundary by reference.
System & system() const
Get the parent System by reference.