11#include <pscf/solvers/PolymerTmpl.h>
12#include <util/containers/FSArray.h>
14#include <pscf/backend/TmplDeclare.h>
18 template <
typename T>
class DArray;
21 template <
int D,
class T>
class RField;
24 template <
int D,
class T>
class Block;
49 template <
int D,
class T>
51 :
public PolymerTmpl<Block<D,T>, Propagator<D,T>, double>
103 double phiTot = 1.0);
125 double stress(
int n)
const;
169 template <
int D,
class T>
inline
171 {
return stress_[n]; }
184 class PolymerTmpl<Rp::Block<1,CPT>, Rp::Propagator<1,CPT>,
double>;
186 class PolymerTmpl<Rp::Block<2,CPT>, Rp::Propagator<2,CPT>,
double>;
188 class PolymerTmpl<Rp::Block<3,CPT>, Rp::Propagator<3,CPT>,
double>;
193 class PolymerTmpl<Rp::Block<1,CUT>, Rp::Propagator<1,CUT>,
double>;
195 class PolymerTmpl<Rp::Block<2,CUT>, Rp::Propagator<2,CUT>,
double>;
197 class PolymerTmpl<Rp::Block<3,CUT>, Rp::Propagator<3,CUT>,
double>;
Species< double > SpeciesT
PolymerSpecies< double > PolymerSpeciesT
virtual void solve(double phiTot=1.0)
Descriptor and MDE solver for one polymer species.
void setNParams(int nParam)
Set the number of unit cell parameters.
void clearUnitCellData()
Clear all data that depends on unit cell parameters.
double stress(int n) const
Get the precomputed contribution to stress from this species.
PolymerTmpl< BlockT, PropagatorT, double > PolymerTmplT
Direct base class, specialization of PolymerTmpl class template.
void computeStress()
Compute SCFT stress contribution from this polymer species.
Propagator< D, T > PropagatorT
Propagator type, for one direction within a block.
Block< D, T > BlockT
Block type, for a block within a block polymer.
void compute(DArray< RField< D, T > > const &wFields, double phiTot=1.0)
Compute MDE solutions and block concentrations.
Ensemble ensemble() const
Dynamically allocatable contiguous array template.
A fixed capacity (static) contiguous array with a variable logical size.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.
Utility classes for scientific computation.