PSCF v1.1
fd1d/solvers/Polymer.h
1#ifndef FD1D_POLYMER_H
2#define FD1D_POLYMER_H
3
4/*
5* PSCF - Polymer Self-Consistent Field Theory
6*
7* Copyright 2016 - 2022, The Regents of the University of Minnesota
8* Distributed under the terms of the GNU General Public License.
9*/
10
11#include "Block.h"
12#include <pscf/solvers/PolymerTmpl.h>
13
14namespace Pscf {
15namespace Fd1d
16{
17
37 class Polymer : public PolymerTmpl<Block>
38 {
39
40 public:
41
45 Polymer();
46
50 ~Polymer();
51
57 void setPhi(double phi);
58
64 void setMu(double mu);
65
74 void compute(DArray<Block::WField> const & wFields);
75
76 };
77
78}
79}
80#endif
Descriptor and solver for a branched polymer species.
void setPhi(double phi)
Set volume fraction (if ensemble is closed).
void compute(DArray< Block::WField > const &wFields)
Compute solution to modified diffusion equation.
void setMu(double mu)
Set chemical potential mu (if ensemble is open).
Polymer()
Default constructor.
Descriptor and MDE solver for an acyclic block polymer.
Definition: PolymerTmpl.h:42
double phi() const
Get the overall volume fraction for this species.
Definition: Species.h:90
double mu() const
Get the chemical potential for this species (units kT=1).
Definition: Species.h:96
Dynamically allocatable contiguous array template.
Definition: DArray.h:32
C++ namespace for polymer self-consistent field theory (PSCF).