PSCF v1.3.3
rpg/fts/brownian/BdStep.tpp
1#ifndef RPG_BD_STEP_TPP
2#define RPG_BD_STEP_TPP
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2025, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "BdStep.h"
12
13#include <rpg/fts/brownian/BdSimulator.h>
14#include <rpg/system/System.h>
15#include <pscf/cuda/CudaRandom.h>
16
17namespace Pscf {
18namespace Rpg {
19
20 using namespace Util;
21
22 /*
23 * Constructor.
24 */
25 template <int D>
27 : simulatorPtr_(&simulator),
28 systemPtr_(&(simulator.system())),
29 cudaRandomPtr_(&(simulator.cudaRandom()))
30 {}
31
32 /*
33 * Destructor, empty default implementation.
34 */
35 template <int D>
38
39 /*
40 * ReadParameters, empty default implementation.
41 */
42 template <int D>
43 void BdStep<D>::readParameters(std::istream &in)
44 {}
45
46 /*
47 * Setup at beginning of loop.
48 */
49 template <int D>
51 {}
52
53 template <int D>
55 {}
56
57 template<int D>
58 void BdStep<D>::outputTimers(std::ostream& out)
59 {}
60
61 template<int D>
64
65}
66}
67#endif
Brownian dynamics simulator.
virtual void outputTimers(std::ostream &out)
Log output timing results.
virtual void readParameters(std::istream &in)
Read required parameters from file.
virtual ~BdStep()
Destructor.
BdStep(BdSimulator< D > &simulator)
Constructor.
System< D > & system()
Get parent System object.
CudaRandom & cudaRandom()
Get Random number generator of parent System.
virtual void clearTimers()
Clear timers.
virtual void output()
Output statistics for this move (at the end of simulation)
BdSimulator< D > & simulator()
Get parent BdSimulator object.
virtual void setup()
Setup before the beginning of each simulation run.
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.