11#include <pscf/solvers/PolymerTmpl.h>
12#include <util/containers/FSArray.h>
16 template <
typename T>
class DArray;
21 template <
int D>
class RField;
25 template <
int D>
class Block;
127 double phiTot = 1.0);
187 template <
int D>
inline
189 {
return stress_[n]; }
const Vertex & vertex(int id) const
Get a specified Vertex by const reference.
Pair< int > const & path(int is, int it) const
Get an id for a propagator from one vertex towards a target.
int nVertex() const
Number of vertices (junctions and chain ends).
int nPropagator() const
Number of propagators (2*nBlock).
int nBead() const
Total number of beads in the polymer (bead model).
int nBlock() const
Number of blocks.
double length() const
Sum of the lengths of all blocks in the polymer (thread model).
Pair< int > const & propagatorId(int id) const
Get a propagator identifier, indexed by order of computation.
PolymerType::Enum type() const
Get Polymer type (Branched or Linear)
Template for an MDE solver and descriptor for a block polymer.
Block< D > & block(int id)
virtual void solve(double phiTot=1.0)
Propagator< D > & propagator(int blockId, int directionId)
Edge & edge(int id) final
Field of real double precision values on an FFT mesh.
Block within a branched polymer.
Descriptor and solver for one polymer species.
void computeStress()
Compute SCFT stress contribution from this polymer species.
void compute(DArray< RField< D > > const &wFields, double phiTot=1.0)
Compute MDE solutions and block concentrations.
void clearUnitCellData()
Clear all data that depends on unit cell parameters.
Propagator< D > PropagatorT
Propagator type, for one direction within a block.
void setNParams(int nParams)
Set the number of unit cell parameters.
Block< D > BlockT
Block type, for a block within a block polymer.
double stress(int n)
Get derivative of free energy w/ respect to a unit cell parameter.
PolymerTmpl< Block< D >, Propagator< D > > Base
Base class, partial template specialization.
MDE solver for one-direction of one block.
double phi() const
Get the overall volume fraction for this species.
void setPhi(double phi)
Set value of phi (volume fraction), if ensemble is closed.
void setQ(double q)
Set q and compute phi or mu (depending on the ensemble).
double mu() const
Get the chemical potential for this species (units kT=1).
Ensemble ensemble() const
Get the statistical ensemble for this species (open or closed).
void setMu(double mu)
Set value of mu (chemical potential), if ensemble is closed.
double q() const
Get the molecular partition function for this species.
Dynamically allocatable contiguous array template.
A fixed capacity (static) contiguous array with a variable logical size.
Fields, FFTs, and utilities for periodic boundary conditions (CUDA)
Periodic fields and crystallography.
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.
Utility classes for scientific computation.