PSCF v1.4.0
r1d/solvers/Polymer.h
1#ifndef R1D_POLYMER_H
2#define R1D_POLYMER_H
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 <pscf/solvers/PolymerTmpl.h> // base class template
12
13// Forward declarations
14namespace Pscf {
15 namespace R1d {
16 class Block;
17 class Propagator;
18 }
19}
20
21namespace Pscf {
22namespace R1d {
23
24 using namespace Util;
25
41 class Polymer : public PolymerTmpl<Block, Propagator, double>
42 {
43
44 public:
45
49 Polymer();
50
54 ~Polymer();
55
65 void compute(DArray< DArray<double> > const & wFields);
66
67 private:
68
69 // Restrict access
70 using PolymerTmpl<Block, Propagator, double>::solve;
71
72 };
73
74} // namespace R1d
75} // namespace Pscf
76
77// Explicit instantiation declaration
78namespace Pscf {
79 extern template class PolymerTmpl<R1d::Block, R1d::Propagator, double>;
80}
81#endif
virtual void solve(double phiTot=1.0)
Block within a block polymer.
Polymer()
Default constructor.
void compute(DArray< DArray< double > > const &wFields)
Compute solution to modified diffusion equation and concentrations.
MDE solver for one-direction of one block.
Dynamically allocatable contiguous array template.
Definition DArray.h:32
SCFT with real 1D fields.
PSCF package top-level namespace.