field100 module
Define the rf field corresponding to FIELD_MAP 100.
This is 1D longitudinal field along z. The only one that is completely
implemented for now.
- class Field100(folder, filename, length_m, z_0=0.0, flag_cython=False)[source]
Bases:
FieldDefine a RF field, 1D longitudinal.
- Parameters:
- _load_fieldmap(path, **validity_check_kwargs)[source]
Load a 1D field (
EDZextension).- Parameters:
path (
Path) – The path to theEDZfile to load.- Return type:
- Returns:
e_z – Function that takes in
zposition and returns corresponding field, at null phase, for amplitude of \(1\,\mathrm{MV/m}\).n_z – Number of interpolation points.
n_cell – Number of cell for cavities.
- shift()[source]
Shift the electric field map.
Warning
You must ensure that for
z < 0andz > element.length_mthe electric field is null. Interpolation can lead to funny results!- Return type:
- e_z_functions(amplitude, phi_0_rel)[source]
Generate a function for longitudinal transfer matrix calculation.
- _abc_impl = <_abc._abc_data object at 0x7318faaa2200>