1#ifndef RPC_LM_BD_STEP_H
2#define RPC_LM_BD_STEP_H
14#include <prdc/cpu/RField.h>
15#include <util/containers/DArray.h>
16#include <util/containers/DArray.h>
22 using namespace Prdc::Cpu;
121 {
return (*etaNewPtr_)[i]; }
124 {
return (*etaOldPtr_)[i]; }
127 void generateEtaNew();
130 void exchangeOldNew();
134 #ifndef RPC_LM_BD_STEP_TPP
Field of real double precision values on an FFT mesh.
Brownian dynamics simulator for PS-FTS.
BdStep is an abstract base class for Brownian dynamics steps.
BdSimulator< D > & simulator()
Get parent BdSimulator object.
System< D > & system()
Get parent System object.
Random & random()
Get Random number generator of parent System.
Leimkuhler-Matthews Brownian dynamics stepper.
virtual bool step()
Take a single Brownian dynamics step.
virtual void readParameters(std::istream &in)
Read required parameters from file.
virtual void setup()
Setup before simulation.
LMBdStep(BdSimulator< D > &simulator)
Constructor.
virtual ~LMBdStep()
Destructor.
Dynamically allocatable contiguous array template.
ScalarParam< Type > & read(std::istream &in, const char *label, Type &value)
Add and read a new required ScalarParam < Type > object.
PSCF package top-level namespace.
Utility classes for scientific computation.