helper module

Define functions to compute 1D longitudinal electric fields.

The ones used by Field will be in field_helpers.py from now on.

null_field_1d(pos: Any) float

Define a null electric/magnetic field.

create_1d_field_func(field_values: ndarray, corresponding_positions: ndarray) Callable[[float], float]

Create the function to get spatial component of electric field.

_evaluate_1d_field(pos: float, field_values: ndarray, corresponding_positions: ndarray) float

Interpolate an electric/magnetic 1D field file.

normalized_e_1d(pos: float, e_func: Callable[[float], float], phi: float, phi_0: float) float

Compute electric field, normalized.

normalized_e_1d_complex(pos: float, e_func: Callable[[float], float], phi: float, phi_0: float) complex

Compute electric field, normalized.

e_1d(pos: float, e_func: Callable[[float], float], phi: float, amplitude: float, phi_0: float) float

Compute normed 1D electric field.

e_1d_complex(pos: float, e_func: Callable[[float], float], phi: float, amplitude: float, phi_0: float) complex

Compute normed 1D electric field.

shifted_e_spat(e_spat: Callable[[float], float], z_shift: float, z_pos: float) float

Shift electric field by z_shift.