12#include <pscf/solvers/PolymerTmpl.h>
13#include <pspc/field/RField.h>
14#include <util/containers/FArray.h>
118 double phiTot = 1.0);
138 double stress(
int n)
const;
166 {
return stress_[n]; }
168 #ifndef PSPC_POLYMER_TPP
Descriptor and MDE solver for an acyclic block polymer.
Block< D > & block(int id)
Get a specified Block.
int nBlock() const
Number of blocks.
virtual void solve(double phiTot=1.0)
Solve modified diffusion equation.
double length() const
Sum of the lengths of all blocks in the polymer.
Descriptor and solver for one polymer species.
void setPhi(double phi)
Set value of phi (volume fraction), if ensemble is closed.
double stress(int n) const
Get precomputed contribution to stress from this species.
void setupUnitCell(UnitCell< D > const &unitCell)
Set up the unit cell after a change in unit cell parameters.
void setMu(double mu)
Set value of mu (chemical potential), if ensemble is closed.
Polymer()
Default constructor.
void compute(DArray< RField< D > > const &wFields, double phiTot=1.0)
Compute solution to MDE and block concentrations.
PolymerTmpl< Block< D > > Base
Base class typedef (PolymerTmpl instance)
void computeStress()
Compute stress contribution from this species.
Field of real double precision values on an FFT mesh.
double phi() const
Get the overall volume fraction for this species.
Ensemble ensemble()
Get the statistical ensemble for this species (open or closed).
double phi_
Volume fraction, set by either setPhi or compute function.
double mu_
Chemical potential, set by either setPhi or compute function.
double mu() const
Get the chemical potential for this species (units kT=1).
Base template for UnitCell<D> classes, D=1, 2 or 3.
Dynamically allocatable contiguous array template.
A fixed size (static) contiguous array template.
void setClassName(const char *className)
Set class name string.
C++ namespace for polymer self-consistent field theory (PSCF).