42 std::vector<PyOpalObjectNS::AttributeDef>
58 "VariableRFCavityFringeField class is a field element that models a rectangular RF cavity.";
60 namespace PyVariableRFCavityFringeField {
63 "variable_rf_cavity contains the VariableRFCavityFringeField class";
72 "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:
BOOST_PYTHON_MODULE(variable_rf_cavity_fringe_field)
const char * module_docstring
Generates a field like Ey = E0*a(t)*y^{2n+1} g_n(z) sin{f(t)*t-q(t)} Ez = E0*a(t)*y^{2n} f_n(z) sin{f...
void initialise() const
Lookup the time dependencies and update.
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.