11#include <rp/fts/montecarlo/McMove.h>
12#include <pscf/field/RField.h>
13#include <util/containers/DArray.h>
15#include <pscf/backend/TmplDeclare.h>
38 template <
int D,
class T>
133 RFieldT& etaNew(
int i)
134 {
return (*etaNewPtr_)[i]; }
136 RFieldT& etaOld(
int i)
137 {
return (*etaOldPtr_)[i]; }
140 void generateEtaNew();
143 void exchangeOldNew();
Brownian dynamics Monte-Carlo move.
McSimulator< D, T > & simulator()
Get parent McSimulator object (non-const ref).
void bdSetup()
Setup before simulation loop.
void readParameters(std::istream &in) override
Read body of parameter file block.
bool needsDc() override
Do dc derivative components need to be saved before a step?
bool bdStep()
Take a single Brownian dynamics step.
BdMove(McSimulator< D, T > &simulator)
Constructor.
~BdMove()=default
Destructor.
bool move() override
Generate a short BD simulation.
McMove is an abstract base class for Monte Carlo moves.
Random & random()
Get the scalar random number generator.
McSimulator< D, T > & simulator()
Get parent McSimulator object (non-const ref).
VecRandom< T > & vecRandom()
Get the vector random number generator.
System< D, T > & system()
Get parent System object (non-const ref).
McMove(McSimulator< D, T > &simulator)
Constructor.
Monte-Carlo simulation coordinator.
Dynamically allocatable contiguous array template.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.