i_phase_space_beam_parameters module
Hold the beam parameters in a single phase space.
For a list of the units associated with every parameter, see Units and conventions.
Note
In this module, angles are stored in \(\mathrm{deg}\), not in \(\mathrm{rad}\)!
- class IPhaseSpaceBeamParameters(phase_space_name, eps_no_normalization, eps_normalized, envelopes=None, twiss=None, sigma=None, tm_cumul=None, mismatch_factor=None)[source]
Bases:
ABCHold Twiss, emittance, envelopes of single phase-space @ single pos.
- Parameters:
phase_space_name (
Literal['phiw','phiw99','t','x','x99','y','y99','z','zdelta'])eps_no_normalization (
ndarray[tuple[Any,...],dtype[double]] |float)eps_normalized (
ndarray[tuple[Any,...],dtype[double]] |float)envelopes (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)twiss (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)sigma (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)tm_cumul (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)mismatch_factor (
ndarray[tuple[Any,...],dtype[double]] |float|None, default:None)
- classmethod from_sigma(phase_space_name, sigma, gamma_kin, beta_kin, beam_kwargs, **kwargs)[source]
Compute Twiss, eps, envelopes just from sigma matrix.
- Parameters:
phase_space_name (
Literal['phiw','phiw99','t','x','x99','y','y99','z','zdelta'])beam_kwargs (
BeamKwargs)
- Return type:
Self
- classmethod from_other_phase_space(other_phase_space, phase_space_name, gamma_kin, beta_kin, beam_kwargs, **kwargs)[source]
Fully initialize from another phase space.
- Parameters:
other_phase_space (
Self)phase_space_name (
Literal['phiw','phiw99','t','x','x99','y','y99','z','zdelta'])beam_kwargs (
BeamKwargs)
- Return type:
Self
- abstract property alpha: ndarray[tuple[Any, ...], dtype[float64]] | float | None
Get first element/column of
self.twiss.
- abstract property beta: ndarray[tuple[Any, ...], dtype[float64]] | float | None
Get second element/column of
self.twiss.
- abstract property gamma: ndarray[tuple[Any, ...], dtype[float64]] | float | None
Get third element/column of
self.twiss.
- __init__(phase_space_name, eps_no_normalization, eps_normalized, envelopes=None, twiss=None, sigma=None, tm_cumul=None, mismatch_factor=None)
- Parameters:
phase_space_name (
Literal['phiw','phiw99','t','x','x99','y','y99','z','zdelta'])eps_no_normalization (
ndarray[tuple[Any,...],dtype[double]] |float)eps_normalized (
ndarray[tuple[Any,...],dtype[double]] |float)envelopes (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)twiss (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)sigma (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)tm_cumul (
ndarray[tuple[Any,...],dtype[double]] |None, default:None)mismatch_factor (
ndarray[tuple[Any,...],dtype[double]] |float|None, default:None)
- Return type:
None
- _abc_impl = <_abc._abc_data object at 0x7318fb680700>
- abstract property envelope_pos: ndarray[tuple[Any, ...], dtype[float64]] | float | None
Get first element/column of
self.envelopes.
- abstract property envelope_energy: ndarray[tuple[Any, ...], dtype[float64]] | float | None
Get second element/column of
self.envelopes.