at.physics.revolution#
Revolution frequency, momentum compaction factor, slip factor
Functions
|
Compute the momentum compaction factor \(\alpha\) |
|
Compute the slip factor \(\eta=1/\gamma^2-\alpha\) |
|
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 \(\alpha\)
- Parameters:
ring (Lattice) – Lattice description (
ring.is_6d
must 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 \(\alpha\) up to the order fit_order. Returns a float if fit_order==1 otherwise returns an array.
- get_revolution_frequency(ring, dp=None, dct=None, df=None)[source]#
Compute the revolution frequency of the full ring [Hz]
- get_slip_factor(ring, **kwargs)[source]#
Compute the slip factor \(\eta=1/\gamma^2-\alpha\)
- Parameters:
ring (Lattice) – Lattice description (
ring.is_6d
must beFalse
)- Keyword Arguments:
dp (float) – Momentum deviation
DPStep (float) – Momentum step size. Default:
DConstant.DPStep
- Returns:
eta (float) – Slip factor \(\eta\)