orbit.utils.orbit_mpi_utils.bunch_pyorbit_to_orbit_nHarm#
- orbit.utils.orbit_mpi_utils.bunch_pyorbit_to_orbit_nHarm(ringLength, nHarm, pyOrbitBunch, name_of_orbit_mpi_bunch_file)[source]#
Translates pyORBIT bunch to ORBIT_MPI bunch, incorporating RF harmonic number, and dumps it into a file. The ring length should be defined in the input (in meters). Lines in bunch files: ORBIT_MPI: 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]