orbit.utils.orbit_mpi_utils.bunch_pyorbit_to_orbit#

orbit.utils.orbit_mpi_utils.bunch_pyorbit_to_orbit(ringLength, pyOrbitBunch, name_of_orbit_mpi_bunch_file)[source]#

Translates pyORBIT bunch to ORBIT_MPI bunch and dumps it into the file. The ring length should be defined in the input (in meters). 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]