source: MML/trunk/machine/SOLEIL/StorageRing/Lattices/lowalpha/test_lowalpha.m @ 4

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: 857 bytes
Line 
1%%
2%[x, ATIndex, LostBeam] = getturns([.0 0, 0.0, 0, 0.01681, 0.0]', 1000, [1]);
3%[x, ATIndex, LostBeam] = getturns([.0 0, 0.0, 0, 0.01677, 0.0]', 1000, [1]);
4%[x, ATIndex, LostBeam] = getturns([.0, 0, 0.0, 0, 0.01661, 0.0]', 2000, [1]);
5[x, ATIndex, LostBeam] = getturns([1e-6, 0, 1e-6, 0, 0.02571, 0.0]', 1000, [1]);
6
7if LostBeam
8    ATIndex
9else
10
11figure(11)
12plot(x(1,:,6),x(1,:,5)*100,'k'); grid on; hold on
13xlabel('ctau')
14ylabel('delta (%)')
15
16figure(2)
17subplot(2,2,1)
18plot(x(1,:,1)*1e3); grid on
19xlabel('turn number')
20ylabel('x (mm)')
21
22subplot(2,2,2)
23plot(x(1,:,3)*1e3); grid on
24xlabel('turn number')
25ylabel('z (mm)')
26
27subplot(2,2,3)
28plot(x(1,:,5)*100); grid on
29xlabel('turn number')
30ylabel('delta (%)')
31
32subplot(2,2,4)
33plot(x(1,:,1)*1e3, x(1,:,2)*1e3,'.'); grid on
34xlabel('x (mm)')
35ylabel('px (mrad)')
36
37end
38
39%% Compute alpha to all order
40physics_mcf;
41
Note: See TracBrowser for help on using the repository browser.