orbit.utils.orbit_mpi_utils.bunch_orbit_to_pyorbit#

orbit.utils.orbit_mpi_utils.bunch_orbit_to_pyorbit(ringLength, kineticEnergy, name_of_orbit_mpi_bunch_file, pyOrbitBunch=None, number_parts=- 1)[source]#

Translates ORBIT_MPI bunch to pyORBIT bunch and returns it. PyORBIT bunch needs the ring length (m) and energy, mass and charge of the synchronous particle, but the ORBIT_MPI does not have it. So, this information is specified in pyOrbitBunch or it will be proton by default. ORBIT_MPI file has lines: x[mm] xp[mrad] y[mm] yp[mrad] phi[rad] dE[GeV]. pyORBIT: x[m] xp[rad] y[m] yp[rad] z[m] dE[GeV]