1#ifndef RPC_RAMP_PARAMETER_H
2#define RPC_RAMP_PARAMETER_H
18 template <
int D>
class System;
132 void update(
double newVal);
137 std::string
type()
const;
198 template <
class Archive>
199 void serialize(Archive ar,
const unsigned int version);
204 enum ParamType {
Block, Chi, Kuhn, Phi_Polymer, Phi_Solvent,
205 Mu_Polymer, Mu_Solvent,
Solvent, Cell_Param,
206 Lambda_Pert, Vmonomer, Null};
224 Simulator<D>* simulatorPtr_;
227 System<D>* systemPtr_;
234 void readParamType(std::istream& in);
246 void set_(
double newVal);
268 RampParameter<D>& param);
278 RampParameter<D>
const & param);
282#include "RampParameter.tpp"
Block within a linear or branched block polymer.
RampParameter()
Default constructor.
void getInitial()
Get and store initial value this parameters.
int id(int i) const
Get id for a sub-object or element to which this is applied.
void serialize(Archive ar, const unsigned int version)
Serialize to or from an archive.
std::string type() const
Return a string representation of the parameter type.
double current()
Get the current system parameter value.
double change() const
Get the total change planned for this parameter during ramp.
void update(double newVal)
Update the corresponding parameter value in the System.
double initial() const
Get the initial system parameter value.
void writeParamType(std::ostream &out) const
Write the parameter type to an output stream.
void setSimulator(Simulator< D > &simulator)
Set the simulator and system associated with this object.
int nId() const
Number of indices associated with this type of parameter.
Field theoretic simulator (base class).
Solver and descriptor for a solvent species.
Main class, representing one complete system.
Dynamically allocatable contiguous array template.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.
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.