1#ifndef PSPC_SWEEP_PARAMETER_H
2#define PSPC_SWEEP_PARAMETER_H
16 template <
int D>
class System;
109 { systemPtr_ = &system;}
121 void update(
double newVal);
126 std::string
type()
const;
175 template <
class Archive>
176 void serialize(Archive ar,
const unsigned int version);
181 enum ParamType {
Block, Chi, Kuhn, Phi_Polymer, Phi_Solvent,
182 Mu_Polymer, Mu_Solvent,
Solvent, Cell_Param,
183 Chi_Bottom, Chi_Top, Null};
201 System<D>* systemPtr_;
208 void readParamType(std::istream& in);
220 void set_(
double newVal);
225 bool isFilmIterator()
const;
231 std::istream& operator >> (std::istream&, SweepParameter<U>&);
236 operator << (std::ostream&, SweepParameter<U>
const&);
248 SweepParameter<D>& param);
258 SweepParameter<D>
const & param);
262#include "SweepParameter.tpp"
Block within a branched polymer.
Solver and descriptor for a solvent species.
Class for storing data about an individual sweep parameter.
std::string type() const
Return a string representation of the parameter type.
void getInitial()
Store the pre-sweep value of the corresponding parameter.
SweepParameter()
Default constructor.
double initial() const
Return the initial system parameter value.
void serialize(Archive ar, const unsigned int version)
Serialize to or from an archive.
int id(int i) const
Get a id for a sub-object or element to which this is applied.
void update(double newVal)
Update the corresponding parameter value in the system.
double change() const
Return the total change planned for this parameter during sweep.
double current()
Return the current system parameter value.
void setSystem(System< D > &system)
Set the system associated with this object.
void writeParamType(std::ostream &out) const
Write the parameter type to an output stream.
Main class for SCFT simulation of one system.
Dynamically allocatable contiguous array template.
C++ namespace for polymer self-consistent field theory (PSCF).
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.