1#ifndef FD1D_SWEEP_PARAMETER_H
2#define FD1D_SWEEP_PARAMETER_H
11#include <util/containers/DArray.h>
108 { systemPtr_ = &system;}
120 void update(
double newVal);
125 std::string
type()
const;
172 template <
class Archive>
173 void serialize(Archive ar,
const unsigned int version);
178 enum ParamType {
Block, Chi, Kuhn, Phi_Polymer, Phi_Solvent,
179 Mu_Polymer, Mu_Solvent,
Solvent, Cell_Param, Null};
204 void readParamType(std::istream& in);
216 void set_(
double newVal);
229 template <
class Archive>
234 for (
int i = 0; i < nID_; ++i) {
Block within a branched polymer.
Solver and descriptor for a solvent species.
Class for storing data about an individual sweep parameter.
double initial() const
Return the initial system parameter value.
void getInitial()
Store the pre-sweep value of the corresponding parameter.
std::string type() const
Return a string representation of the parameter type.
double current()
Return the current system parameter value.
int id(int i) const
Get a id for a sub-object or element to which this is applied.
void setSystem(System &system)
Set the system associated with this object.
void serialize(Archive ar, const unsigned int version)
Serialize to or from an archive.
void writeParamType(std::ostream &out) const
Write the parameter type to an output stream.
SweepParameter()
Default constructor.
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.
friend std::ostream & operator<<(std::ostream &, SweepParameter const &)
Extractor for writing a SweepParameter to ostream.
friend std::istream & operator>>(std::istream &, SweepParameter &)
Inserter for reading a SweepParameter from an istream.
Main class in SCFT simulation of one system.
Dynamically allocatable contiguous array template.
void serializeEnum(Archive &ar, T &data, const unsigned int version=0)
Serialize an enumeration value.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.