helper module
Define functions to compute 1D longitudinal electric fields.
The ones used by Field will be in field_helpers.py from now
on.
- 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.