field7700 module

Define the rf field corresponding to FIELD_MAP 7700.

This is 1D longitudinal field along z. The only one that is completely implemented for now.

class Field7700(folder, filename, length_m, z_0=0.0, flag_cython=False)[source]

Bases: Field100

Define a RF field, 1D longitudinal.

Parameters:
  • folder (Path)

  • filename (str)

  • length_m (float)

  • z_0 (float, default: 0.0)

  • flag_cython (bool, default: False)

extensions: Collection[str] = ('.edx', '.edy', '.edz', '.bdx', '.bdy', '.bdz')
is_implemented: bool = True
_load_fieldmap(path, **validity_check_kwargs)[source]

Load a 3D field.

Warning

The field will be calculated on the axis only. We remove any transverse component for now.

Parameters:

path (Path) – The path to the file to load.

Return type:

tuple[Callable[[float], float], tuple[int], int]

Returns:

  • field (Callable[[Pos3D], float]) – Function that takes in position and returns corresponding field, at null phase, for amplitude of \(1\,\mathrm{MV/m}\).

  • n_xyz (tuple[int, int, int]) – Number of interpolation points in the three directions.

  • n_cell (int) – Number of cell for cavities.

_abc_impl = <_abc._abc_data object at 0x7318faaa1c40>