Chaste
Release::3.4
|
#include <TimeModifier.hpp>
Public Member Functions | |
TimeModifier () | |
virtual | ~TimeModifier () |
virtual double | Calc (double param, double time) |
Public Member Functions inherited from AbstractModifier | |
AbstractModifier (void) | |
virtual | ~AbstractModifier () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Friends | |
class | boost::serialization::access |
This is just an example class to show how you might specify a custom modifier to change a parameter through time. In this case it implements a sin(time)*default_parameter factor modifier.
Definition at line 51 of file TimeModifier.hpp.
|
inline |
Constructor
Definition at line 73 of file TimeModifier.hpp.
|
inlinevirtual |
Default destructor.
Definition at line 80 of file TimeModifier.hpp.
Perform the modification.
param | the current value of the quantity which is being modified |
time | the current simulation time |
Implements AbstractModifier.
Definition at line 38 of file TimeModifier.cpp.
|
inlineprivate |
Archive the member variables.
archive | |
version |
Definition at line 63 of file TimeModifier.hpp.
|
friend |
Needed for serialization.
Definition at line 55 of file TimeModifier.hpp.