TwissContainer#
- class orbit.bunch_generators.TwissContainer(alpha, beta, emittance)[source]#
Bases:
objectKeeps the twiss paremeters alpha, beta and the emittance. Calculates the normalized value (u**2+(alpha*u + beta*u’)**2)/(beta*emittance), which is (gamma*u**2+2*alpha*u*u’+beta*u’**2)/(emittance). Translates the normalized values u and up to the non-normalized ones.
Methods Summary
getNormalizedH(u, up)Returns (u**2+(alpha*u + beta*u')**2)/(beta*emittance)
Returns the maximal value of u'.
getU_Max()Returns the maximal value of u.
getU_UP(u_norm, up_norm)Returns the coordinate and momentum for normilized ones u = sqrt(beta*emittance)*u_norm up = sqrt(emittance/beta)*(up_norm - alpha*u_norm)
setEmittance(emittance)Methods Documentation