TwissContainer#

class orbit.bunch_generators.TwissContainer(alpha, beta, emittance)[source]#

Bases: object

Keeps 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

getAlphaBetaEmitt()

getAlphaBetaGammaEmitt()

getNormalizedH(u, up)

Returns (u**2+(alpha*u + beta*u')**2)/(beta*emittance)

getUP_Max()

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

getAlphaBetaEmitt()[source]#
getAlphaBetaGammaEmitt()[source]#
getNormalizedH(u, up)[source]#

Returns (u**2+(alpha*u + beta*u’)**2)/(beta*emittance)

getUP_Max()[source]#

Returns the maximal value of u’.

getU_Max()[source]#

Returns the maximal value of u.

getU_UP(u_norm, up_norm)[source]#

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)[source]#