Nus = nus (VrfMV, alpha, U0MeV, E0MeV, h) this function return the synchrotron tune input: VrfMV is the RF voltage in MV alpha is the momentum compaction factor U0MeV is the energy lost per turn in MeV E0MeV is the beam energy in MeV h is the harmonic number
0001 function Nus = nus (VrfMV, alpha, U0MeV, E0MeV, h) 0002 % Nus = nus (VrfMV, alpha, U0MeV, E0MeV, h) 0003 % this function return the synchrotron tune 0004 % input: 0005 % VrfMV is the RF voltage in MV 0006 % alpha is the momentum compaction factor 0007 % U0MeV is the energy lost per turn in MeV 0008 % E0MeV is the beam energy in MeV 0009 % h is the harmonic number 0010 0011 Phi=pi - asin(U0MeV./VrfMV); 0012 Nus= sqrt(-(VrfMV/E0MeV)*(h * alpha)/(2*pi) .* cos(Phi)); 0013 0014 end