9 #include "McExternalEnergyAverage.h" 11 #include <util/misc/FileMaster.h> 12 #include <mcMd/chemistry/Molecule.h> 13 #include <mcMd/chemistry/Atom.h> 14 #include <mcMd/potentials/external/ExternalPotential.h> 43 for (molIter->begin(atomIter); atomIter.
notEnd(); ++atomIter) {
A System for use in a Markov chain Monte Carlo simulation.
std::ofstream outputFile_
Output file stream.
void begin(int speciesId, MoleculeIterator &iterator)
Initialize an iterator for molecules of one species in this System.
bool notEnd() const
Is the current pointer not at the end of the array?
McSystem & system()
Return reference to parent system.
virtual double energy(const Vector &position, int i) const =0
Returns external potential energy of a single particle.
Simulation & simulation() const
Get the parent Simulation by reference.
virtual void sample(long iStep)
Calculate, analyze and/or output a physical quantity.
ExternalPotential & externalPotential() const
Return ExternalPotential by reference.
bool notEnd() const
Is the current pointer not at the end of the PArray?
Utility classes for scientific computation.
McExternalEnergyAverage(McSystem &system)
Constructor.
Average accumulator_
Average object - statistical accumulator.
Forward iterator for an Array or a C array.
Forward iterator for a PArray.
AverageAnalyzer averages of total potential energy.
void sample(double value)
Add a sampled value to the ensemble.
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.
bool isAtInterval(long counter) const
Return true iff counter is a multiple of the interval.