rf_field module
Hold parameters that are shared by all cavities of same type.
See also
- compute_param_cav(integrated_field: complex) dict[str, float]
Compute synchronous phase and accelerating field.
- class RfField(section_idx: int)
Bases:
objectCos-like RF field.
Warning, all phases are defined as:
\[\phi = \omega_0^{rf} t\]While in the rest of the code it is defined as:
\[\phi = \omega_0_^{bunch} t\]All phases are stored in radian.
- Parameters:
e_spat (Callable[[float], float]) – Spatial component of the electric field. Needs to be multiplied by the \(\cos(\omega t)\) to have the full electric field. Initialized to null function.
n_cell (int) – Number of cells in the cavity.
n_z (int | None) – Number of points in the file that gives
e_spat, the spatial component of the electric field.
- get(*keys: str, **kwargs: bool | str | None) Any
Shorthand to get attributes from this class or its attributes.