PSCF v1.5.0
ForceBiasMove_u.h
1#ifndef RPG_FORCE_BIAS_MOVE_U_H
2#define RPG_FORCE_BIAS_MOVE_U_H
3
4/*
5* PSCF - Polymer Self-Consistent Field
6*
7* Copyright 2015 - 2026, David Morse (morse012@um.edu) and co-authors
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include <rp/fts/montecarlo/ForceBiasMoveBase.h> // base class template
12#include <pscf/backend/cuda/CUT.h> // template argument
13
14namespace Pscf {
15namespace Rp {
16
17 using namespace Util;
18
30 template <int D>
32 : public ForceBiasMoveBase<D,CUT>
33 {
34
35 public:
36
43
44 private:
45
49 void computeForceBias(RField<D,CUT> & result,
50 RField<D,CUT> const & di,
51 RField<D,CUT> const & df,
52 RField<D,CUT> const & dwc,
53 double mobility);
54
55 };
56
57}
58}
59
60// Explicit instantiation declarations
61namespace Pscf {
62 namespace Rp {
63 extern template class ForceBiasMoveBase<1,CUT>;
64 extern template class ForceBiasMoveBase<2,CUT>;
65 extern template class ForceBiasMoveBase<3,CUT>;
66 extern template class ForceBiasMove<1,CUT>;
67 extern template class ForceBiasMove<2,CUT>;
68 extern template class ForceBiasMove<3,CUT>;
69 }
70}
71#endif
Backend identifier class for the GPU-enabled CUDA backend.
Definition CUT.h:31
ForceBiasMoveBase(McSimulator< D, CUT > &simulator)
ForceBiasMove(McSimulator< D, CUT > &simulator)
Constructor.
McSimulator< D, CUT > & simulator()
Definition McMove.h:342
Monte-Carlo simulation coordinator.
Definition McSimulator.h:55
Code for programs that simulate real-valued periodic fields.
Definition param_pc.dox:2
PSCF package top-level namespace.