create a fast ring from ESRF lattice generate a Broad Band Resonator Impedance add to fast ring
0001 %create a fast ring from ESRF lattice 0002 %generate a Broad Band Resonator Impedance 0003 %add to fast ring 0004 makeFastRingWithBBR; 0005 0006 %Generate particle distribution and track 0007 %watch rms values 0008 NP=1e4; 0009 Nturns=1000; 0010 particles=atbeam(NP,atsigma(esrf)); 0011 disp(std(particles')) 0012 for i=1:Nturns 0013 particles=ringpass(fastringBBR,particles,1); 0014 disp(std(particles')) 0015 end