9 #include <mcMd/mcSimulation/McSystem.h> 10 #include <mcMd/mdSimulation/MdSystem.h> 11 #include <mcMd/mdIntegrators/MdIntegrator.h> 13 #include <mcMd/potentials/pair/MdPairPotential.h> 14 #include <mcMd/potentials/pair/McPairPotential.h> 50 read<int>(in,
"nStep", nStep_);
60 loadParameter<int>(ar,
"nStep", nStep_);
95 for (
int iStep = 0; iStep < nStep_; ++iStep) {
A System for use in a Markov chain Monte Carlo simulation.
void buildCellList()
Build the CellList with current configuration.
void calculateForces()
Compute all forces in this System.
void incrementNAttempt()
Increment the number of attempted moves.
virtual void save(Serializable::OArchive &ar)
Save internal state to an archive.
void loadParamComposite(Serializable::IArchive &ar, ParamComposite &child, bool next=true)
Add and load a required child ParamComposite.
bool move()
Generate, attempt and accept or reject a move.
MdIntegrator & mdIntegrator()
Return the MdIntegrator by reference.
virtual void loadParameters(Serializable::IArchive &ar)
Load internal state from an archive.
virtual void setup()
Initialize internal state, if any.
virtual void save(Serializable::OArchive &ar)
Save state to an archive.
Saving / output archive for binary ostream.
MdPairPotential & pairPotential() const
Return MdPairPotential by reference.
McSystem & system()
Get parent McSystem.
void incrementNAccept()
Increment the number of accepted moves.
virtual void loadParameters(Serializable::IArchive &ar)
Load state from an archive.
virtual void setup()
Initialize before a run.
Utility classes for scientific computation.
An McMove that acts on one McSystem.
McPairPotential & pairPotential() const
Return the McPairPotential by reference.
Saving archive for binary istream.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
void buildPairList()
Build the internal PairList.
void readProbability(std::istream &in)
Read the probability from file.
void setClassName(const char *className)
Set class name string.
void readParamComposite(std::istream &in, ParamComposite &child, bool next=true)
Add and read a required child ParamComposite.
A System for Molecular Dynamics simulation.
virtual void step()=0
Take a complete MD integration step.
virtual void readParameters(std::istream &in)
Read nStep, dt, skin, maxNPair from file.
DpdMove(McSystem &system)
Constructor.
virtual void saveParameters(Serializable::OArchive &ar)
Save parameters to an archive, without configuration.