Skip to content
Snippets Groups Projects

Emittance calculation

Merged GUBAIDULIN requested to merge emittance_calculation into develop
1 file
+ 6
4
Compare changes
  • Side-by-side
  • Inline
@@ -293,11 +293,13 @@ class Bunch:
Return the average Courant-Snyder invariant of each plane.
"""
Jx = (self.ring.optics.local_gamma[0] * self['x']**2) + \
(2*self.ring.optics.local_alpha[0] * self['x'])*self['xp'] + \
xb = self['x'] - self['delta'] * self.ring.optics.local_dispersion[0]
yy = self['y'] - self['delta'] * self.ring.optics.local_dispersion[2]
Jx = (self.ring.optics.local_gamma[0] * xb**2) + \
(2*self.ring.optics.local_alpha[0] *xb)*self['xp'] + \
(self.ring.optics.local_beta[0] * self['xp']**2)
Jy = (self.ring.optics.local_gamma[1] * self['y']**2) + \
(2*self.ring.optics.local_alpha[1] * self['y']*self['yp']) + \
Jy = (self.ring.optics.local_gamma[1] * yb**2) + \
(2*self.ring.optics.local_alpha[1] * yb*self['yp']) + \
(self.ring.optics.local_beta[1] * self['yp']**2)
Js = (self.ring.long_gamma * self['tau']**2) + \
(2*self.ring.long_alpha * self['tau']*self['delta']) + \
Loading