rf_field module
Hold parameters that are shared by all cavities of same type.
See also
- class RfField(section_idx)[source]
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 – 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 – Number of cells in the cavity.
n_z – Number of points in the file that gives
e_spat, the spatial component of the electric field.section_idx (
int)