The Element class¶
The Element
class is top-level class in KENV. It contains all
the accelerator`s element (f.e. solenoid or accels) data.
-
class
kenv.accelerator.
Element
(z0: float, max_field: float, file_name: str, name: str, *, x: float = 0.0, xp: float = 0.0, y: float = 0.0, yp: float = 0.0)[source]¶ Initialization of an accelerator element.
- Parameters
z0 (float) – Position of the element center
max_field (float) – Maximum value of the field on the element axis
file_name (string) – Name of the file
name (string) – Name of the element
x (float, optional) – Offset of the element along the x-axis, [m]
xp (float, optional) – Element rotation in the z-x plane, [rad]
y (float, optional) – Offset of the element along the y-axis, [m]
yp (float, optional) – Element rotation in the z-y plane, [rad]