PyORBIT-Collaboration / py-orbit

Core of Py-ORBIT code
MIT License
25 stars 38 forks source link

The "TurnNumber" particles attributes were added. This attribute allo… #64

Closed shishlo closed 2 years ago

shishlo commented 2 years ago

…ws to assign the turn number to the particles in the lost bunch that accumulates the particles lost at apertures. The Ring TEAPOT lattice class was modified with Turn Counter TEAPOT node added to the end of an ordinary TEAPOT lattice. This node will track bunch and will increase TurnNumber bunch attribute each time. So, there are bunch integer attribute "TunBunch" and a particles attribute with the same name. The bunch attribute is used to define particles attributes during the injection and collimation.