1#ifndef RP_BD_SIMULATOR_H
2#define RP_BD_SIMULATOR_H
11#include <rp/fts/simulator/Simulator.h>
12#include <pscf/backend/TmplDeclare.h>
21 template <
class T>
class Factory;
25 template <
int D,
class T>
class System;
26 template <
int D,
class T>
class BdStep;
27 template <
int D,
class T>
class Analyzer;
50 template <
int D,
class T>
109 virtual void analyze(
int min,
int max,
110 std::string classname,
111 std::string filename);
196 void setup(
int nStep,
bool isSimulation);
203 template <
int D,
class T>
inline
205 {
return (
bool)bdStepPtr_; }
208 template <
int D,
class T>
inline
216 template <
int D,
class T>
inline
219 {
return *analyzerManagerPtr_; }
222 template <
int D,
class T>
inline
224 {
return *analyzerManagerPtr_; }
Manager for a list of Analyzer objects.
Abstract base for periodic output and/or analysis actions.
Brownian dynamics simulator for PS-FTS.
virtual void readParameters(std::istream &in)
Read parameter file block.
BdSimulator< D, T > BdSimulatorT
Alias for BdSimulator class in program-level namespace.
AnalyzerManager< D, T > & analyzerManager()
Get the AnalyzerManager (const).
Simulator< D, T > SimulatorT
Alias for Simulator class in program-level namespace.
BdStep< D, T > & bdStep()
Get the BdStep by non-const reference.
virtual void analyze(int min, int max, std::string classname, std::string filename)
Read and analyze a trajectory file.
BdSimulator(System< D, T > &system)
Constructor.
bool hasBdStep() const
Does this BdSimulator have a BdStep object?
void simulate(int nStep)
Perform a field theoretic Brownian dynamics (BD) simulation.
Factory< TrajectoryReader< D, T > > & trajectoryReaderFactory()
Get the trajectory reader factory by reference.
Template for abstract base class for Brownian dynamics (BD) steps.
Simulator(System< D, T > &system)
Constructor.
System< D, T > & system()
Get the parent system by reference.
long iTotalStep_
Step counter - total number of attempted BD or MC steps.
SimState< D, T > & state()
Get the SimState stored internal state by reference.
long iStep_
Step counter - number of steps for which the compressor converged.
Base class template for classes that represent a complete system.
Trajectory file reader (abstract base class).
File containing preprocessor macros for error handling.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.
Utility classes for scientific computation.