11#include <util/param/ParamComposite.h>
12#include <pscf/chem/PolymerModel.h>
13#include <pscf/backend/TmplDeclare.h>
18 template <
typename E,
int N>
class FSArray;
23 template <
int D,
class T>
class WaveList;
26 template <
int D,
class T>
class WFields;
27 template <
int D,
class T>
class CFields;
28 template <
int D,
class T>
class Mask;
29 template <
int D,
class T>
class Domain;
30 template <
int D,
class T>
class Mixture;
34 template <
int D,
class T>
class Iterator;
36 template <
int D,
class T>
class Sweep;
38 template <
int D,
class T>
class Simulator;
123 template <
int D,
class T>
169 virtual void readParam(std::istream& in);
235 void compute(
bool needStress =
false);
271 int iterate(
bool isContinuation =
false);
667 bool isAllocatedGrid_;
672 bool isAllocatedBasis_;
699 void allocateFieldsGrid();
704 void allocateFieldsBasis();
714 void readEcho(std::istream& in, std::string&
string)
const;
724 void readEcho(std::istream& in,
double& value)
const;
731 template <
int D,
class T>
inline
739 template <
int D,
class T>
inline
743 return *mixtureModifierPtr_;
747 template <
int D,
class T>
inline
751 return *interactionPtr_;
755 template <
int D,
class T>
inline
759 return *interactionPtr_;
763 template <
int D,
class T>
inline
771 template <
int D,
class T>
inline
775 return domainPtr_->waveList();
779 template <
int D,
class T>
inline
783 return *fileMasterPtr_;
787 template <
int D,
class T>
inline
791 return *fileMasterPtr_;
797 template <
int D,
class T>
inline
802 template <
int D,
class T>
inline
807 template <
int D,
class T>
inline
812 template <
int D,
class T>
inline
817 template <
int D,
class T>
inline
822 template <
int D,
class T>
inline
824 {
return *maskPtr_; }
827 template <
int D,
class T>
inline
829 {
return *maskPtr_; }
834 template <
int D,
class T>
inline
836 {
return (environmentPtr_); }
839 template <
int D,
class T>
inline
843 return *environmentPtr_;
847 template <
int D,
class T>
inline
851 return *environmentPtr_;
855 template <
int D,
class T>
inline
863 template <
int D,
class T>
inline
871 template <
int D,
class T>
inline
873 {
return (iteratorPtr_); }
876 template <
int D,
class T>
inline
880 return *iteratorPtr_;
884 template <
int D,
class T>
inline
888 return *iteratorPtr_;
892 template <
int D,
class T>
inline
894 {
return (sweepPtr_); }
897 template <
int D,
class T>
inline
899 {
return (simulatorPtr_); }
902 template <
int D,
class T>
inline
906 return *simulatorPtr_;
910 template <
int D,
class T>
inline
914 return *simulatorPtr_;
920 template <
int D,
class T>
inline
922 {
return *mixturePtr_; }
925 template <
int D,
class T>
inline
926 Domain<D,T> & System<D,T>::domain_()
927 {
return *domainPtr_; }
930 template <
int D,
class T>
inline
931 CFields<D,T> & System<D,T>::c_()
Interaction model for complex Langevin FTS.
A list of c fields stored in both basis and r-grid format.
Spatial domain for a periodic structure with real fields.
Factory for subclasses of Environment.
Environment generator for variable-cell SCFT.
Factory for subclasses of Iterator.
Base class template for iterative solvers for SCF equations.
A field that specifies an inhomogeneous total monomer concentration.
Modifier for parameters of an associated mixture.
Solver and descriptor for a mixture of polymers and solvents.
Base class for SCFT thermodynamic property calculators.
Factory for subclasses of Simulator.
Base class for field theoretic PS-FTS simulator.
Default Factory for subclasses of Sweep.
Solve a sequence of SCFT problems along a line in parameter space.
Base class template for classes that represent a complete system.
void simulate(int nStep)
Perform a field theoretic simulation (PS-FTS).
Simulator< D, T > const & simulator() const
Get the Simulator (const).
Environment const & environment() const
Get the Environment (const).
Mask< D, T > const & mask() const
Get the mask (const).
void sweep()
Sweep in parameter space, solving an SCF problem at each point.
bool hasSimulator() const
Does this system have a Simulator?
void computeStress()
Compute SCFT stress.
CFields< D, T > const & c() const
Get the monomer concentration (c) fields (const).
bool hasEnvironment() const
Does this system have an Environment?
FileMaster const & fileMaster() const
Get the FileMaster (const).
bool hasSymmetricInputFields()
bool hasSweep() const
Does this system have a Sweep?
WFields< D, T > const & h() const
Get the external potential (h) fields (const).
int readCommands(std::istream &in)
Read and process commands from an input stream.
ScftThermo< D, T > const & scft() const
Get the ScftThermo object (const).
void clearUnitCellData()
Notify System members that unit cell parameters have been modified.
void clearCFields()
Mark c-fields, propagators and free energies as outdated.
virtual void readParam(std::istream &in)
Read input parameters (with opening and closing lines).
void setUnitCell(UnitCell< D > const &unitCell)
Set parameters of the associated unit cell.
virtual void readParameters(std::istream &in)
Read body of parameter block (without opening and closing lines).
void compute(bool needStress=false)
Solve the modified diffusion equation once, without iteration.
int iterate(bool isContinuation=false)
Iteratively solve a SCFT problem.
Interaction const & interaction() const
Get the Interaction (const).
Mixture< D, T > const & mixture() const
Get the Mixture (const).
WaveList< D, T > & waveList()
Get the WaveList (non-const).
bool hasIterator() const
Does this system have an Iterator?
MixtureModifier< D, T > & mixtureModifier()
Get the MixtureModifier (non-const).
void writeParamNoSweep(std::ostream &out) const
void writeTimers(std::ostream &out) const
Domain< D, T > const & domain() const
Get the Domain (const).
WFields< D, T > const & w() const
Get the chemical potential (w) fields (const).
void setOptions(int argc, char **argv)
Process command line options.
Iterator< D, T > const & iterator() const
Get the Iterator (const).
A container of w fields stored in both basis and r-grid format.
Base template for UnitCell<D> classes, D=1, 2 or 3.
A fixed capacity (static) contiguous array with a variable logical size.
A FileMaster manages input and output files for a simulation.
ParamComposite()
Constructor.
#define UTIL_ASSERT(condition)
Assertion macro suitable for debugging serial or parallel code.
Type
Scoped enumeration of polymer model types.
Code for programs that simulate real-valued periodic fields.
PSCF package top-level namespace.
Utility classes for scientific computation.