1#ifndef PSPG_SWEEP_PARAMETER_H
2#define PSPG_SWEEP_PARAMETER_H
16 template <
int D>
class System;
107 { systemPtr_ = &system;}
119 void update(
double newVal);
124 std::string
type()
const;
173 template <
class Archive>
174 void serialize(Archive ar,
const unsigned int version);
179 enum ParamType {
Block, Chi, Kuhn, Phi_Polymer, Phi_Solvent,
180 Mu_Polymer, Mu_Solvent,
Solvent, Cell_Param, Null};
198 System<D>* systemPtr_;
205 void readParamType(std::istream& in);
217 void set_(
double newVal);
223 std::istream& operator >> (std::istream&, SweepParameter<U>&);
228 operator << (std::ostream&, SweepParameter<U>
const&);
234#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 serialize(Archive ar, const unsigned int version)
Serialize to or from an archive.
double change() const
Return the total change planned for this parameter during sweep.
SweepParameter()
Default constructor.
void setSystem(System< D > &system)
Set the system associated with this object.
int id(int i) const
Get a id for a sub-object or element to which this is applied.
void getInitial()
Store the pre-sweep value of the corresponding parameter.
void update(double newVal)
Update the corresponding parameter value in the system.
double initial() const
Return the initial system parameter value.
void writeParamType(std::ostream &out) const
Write the parameter type to an output stream.
double current()
Return the current system parameter value.
Main class in SCFT simulation of one system.
Dynamically allocatable contiguous array template.
C++ namespace for polymer self-consistent field theory (PSCF).