41 std::vector<PyOpalObjectNS::AttributeDef>
53 "VariableRFCavity class is a field element that models a rectangular RF cavity.";
55 namespace PyVariableRFCavity {
57 const char*
module_docstring =
"variable_rf_cavity contains the VariableRFCavity class";
66 "update_time_dependence",
constexpr double e
The value of.
void registerExceptions()
Register exception translations with boost.
void Initialise()
Globals namespace provides routines to initialise global objects:
const char * module_docstring
BOOST_PYTHON_MODULE(variable_rf_cavity)
Generates a field like E = a(t) * sin{2*pi * integral(f(tau),0,t) + q(t)} B = 0 where E0,...
virtual void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
Initialise ready for tracking.
PyOpalObject<C> is the basic wrapper class for Opal Objects.
void addGetFieldValue(PYCLASS &pyclass, double distanceUnits, double timeUnits, double bfieldUnits, double efieldUnits)
Add a "get_field_value" method to the python class (for elements that expose a field)
virtual void doSetup()
Overload the method to perform any additional setup that can be made before the OpalObject is accesse...
boost::python::class_< PyC > make_element_class(const char *className)
This is the basic method to make a class for elements.