|
PSCF v1.4.0
|
Linear ramp - parameters vary linearly with step index. More...
#include <LinearRamp.h>
Public Member Functions | |
| void | readParameters (std::istream &in) override |
| Read parameters from parameter file input stream. | |
| void | setup (int nStep) override |
| Set nStep and complete initialization. | |
| void | setParameters (int iStep) override |
| Set new parameters values in associated System and Simulator. | |
| void | output () override |
| Output information at the end of a simulation. | |
Protected Member Functions | |
| LinearRamp (typename T::Simulator &simulator) | |
| Constructor. | |
| ~LinearRamp ()=default | |
| Destructor. | |
Linear ramp - parameters vary linearly with step index.
Specializations of this class template are used as base classes for two closely analogous class templates, both also named LinearRamp, that are defined in Rpc and Rpg namespaces for use in the pscf_rpc and pscf_rpg programs, respectively.
Template parameters:
Definition at line 30 of file fts/ramp/LinearRamp.h.
|
protected |
Constructor.
| simulator | parent Simulator object |
Definition at line 16 of file LinearRamp.tpp.
References Util::ParamComposite::setClassName().
|
protecteddefault |
Destructor.
|
override |
Read parameters from parameter file input stream.
| in | input parameter file stream |
Definition at line 21 of file LinearRamp.tpp.
References Util::ParamComposite::read(), Util::ParamComposite::readDArray(), and UTIL_CHECK.
|
override |
Set nStep and complete initialization.
This method is called just before the beginning of the main simulation loop.
| nStep | number of steps planned for this simulation |
Definition at line 46 of file LinearRamp.tpp.
|
override |
Set new parameters values in associated System and Simulator.
| iStep | current simulation step index |
Definition at line 58 of file LinearRamp.tpp.
|
override |
Output information at the end of a simulation.
Definition at line 78 of file LinearRamp.tpp.
References Util::Log::file().