1#ifndef PYELEMENTS_PYABSTRACTTIMEDEPENDENCE_H
2#define PYELEMENTS_PYABSTRACTTIMEDEPENDENCE_H
8namespace PyAbstractTimeDependence {
11"Update the TimeDependence and then calculate the value at a give time\n"
12"- t [float]: time at which to evaluate the function\n"
13"Returns the function value.\n";
19 std::string
name = objectPtr->getOpalName();
20 std::shared_ptr<AbstractTimeDependence> model =
22 double value = model->getValue(t);
std::string functionDocstring
double function(PyOpalObjectNS::PyOpalObject< C > pyobject, double t)
static std::shared_ptr< AbstractTimeDependence > getTimeDependence(std::string name)
Look up the time dependence that has a given name.
PyOpalObject<C> is the basic wrapper class for Opal Objects.
std::shared_ptr< C > getOpalShared()
Returns the Opal Object from the PyOpalObject.