Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
946 bytes
|
Line | |
---|
1 | function sigmaL = physics_bunchlength(eVRF,E,rho) |
---|
2 | % PHYSICS_bunchlength - Compute bunch length |
---|
3 | % |
---|
4 | % INPUTS |
---|
5 | % 1. E - Energy in GeV |
---|
6 | % 2. eVRF - RF voltage in keV |
---|
7 | % 3. rho - Curvature radius in meters |
---|
8 | % |
---|
9 | % OUPUTS |
---|
10 | % 1. sigmaL - bunch length |
---|
11 | % |
---|
12 | % EXAMPLES |
---|
13 | % 1. physics_bunchlength(4000,2.75,5.36) |
---|
14 | % |
---|
15 | % See Also physics_RFacceptance, physics_quantumlifetime, |
---|
16 | % physics_energyloss, physics_synchronousphase |
---|
17 | |
---|
18 | % |
---|
19 | % Written by Laurent S. NAdolski |
---|
20 | % |
---|
21 | % rho 12.376 m for Booster |
---|
22 | % rho 5.360 m for storage ring |
---|
23 | |
---|
24 | % plot(1000:4000,physics_bunchlength(1000:4000,2.739,5.36)/2.99792458e8*1e12*2.35); grid on |
---|
25 | % xlabel('VRF [kV]') |
---|
26 | % ylabel('sigmaL FWHM (ps)') |
---|
27 | |
---|
28 | h = getharmonicnumber; |
---|
29 | alpha = 4.5e-4; %getmcf('Model'); |
---|
30 | OmegaRF = 2*pi*getrf('Model','Physics'); |
---|
31 | OmegaRF2 = OmegaRF*OmegaRF; |
---|
32 | c = 2.99792458e8; |
---|
33 | sigmaEoE = 1.016e-3; |
---|
34 | cosPhis = cos(physics_synchronousphase(eVRF,E,rho)); |
---|
35 | sigmaL = sqrt(2*pi*alpha*h*c*c./cosPhis/OmegaRF2./eVRF/1e-6*E)*sigmaEoE; |
---|
Note: See
TracBrowser
for help on using the repository browser.