at.physics.revolution#
Revolution frequency, momentum compaction factor, slip factor
Functions
|
Compute the momentum compaction factor |
|
Compute the slip factor |
|
Compute the revolution frequency of the full ring [Hz] |
- get_mcf(ring, dp=0.0, keep_lattice=False, fit_order=1, n_step=2, **kwargs)[source]#
Compute the momentum compaction factor
- Parameters:
ring (Lattice) – Lattice description (
ring.is_6dmust beFalse)dp (float) – Momentum deviation
keep_lattice (bool) – Assume no lattice change since the previous tracking.
fit_order (int) – Maximum momentum compaction factor order to be fitted. Default to 1, corresponding to the first-order momentum compaction factor.
n_step (int) – Number of different calculated momentum deviations to be fitted with a polynomial. Default to 2.
- Keyword Arguments:
DPStep (float) – Momentum step size. Default:
DConstant.DPStep- Returns:
mcf (float/array) – Momentum compaction factor
up to the order fit_order. Returns a float if fit_order==1 otherwise returns an array.