source: MML/trunk/machine/SOLEIL/Booster/applications/track.m @ 17

Last change on this file since 17 was 17, checked in by zhangj, 11 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1%  reglage tracking simulé
2
3Gr = 0.0435 ;           % gradient remanent  T/m
4a  = 0.0517 ;           % G/I   T/m/A
5Br = 0.0020 ;           % Champ remanent T
6b  = 0.00135416 ;       % B/I  T/A
7rho=12.3773 ;           % rayon dipole
8Iqfc = -0.24 ;             % Offset QPF
9Iqdc = -0.36 ;             % Offset QPD
10Ibc = 0. ;              % Offset Dip
11Iqf0 = 198.38 ;
12Iqd0 = 157.28 ;
13Id0  = 546.76 ;
14phi =-0.0001 ;
15rd0  = (Iqd0*a)/(Id0*b*rho) ;
16rf0  = (Iqf0*a)/(Id0*b*rho) ;
17sprintf('KF0= %g   KD0= %g', rf0, rd0)
18
19m1   =[ 0.124  0.0176 ; 0.0285  0.1 ] ; % matrice dnu dK=m1*dnu
20
21w=2*3.14159*(50./17.);
22i=0;
23clear fq fd r time
24
25i = 1 : 1 : 340;
26t=i/1000;
27time=t;
28fq = 0.5*(1-cos(w*(t+phi)));
29fd = 0.5*(1-cos(w*t));
30
31pf=Gr + a*(Iqfc + Iqf0*fq);
32pd=Gr + a*(Iqdc + Iqd0*fq);
33p0=Br + b*(Ibc + Id0*fd);
34rf=pf./(p0*rho);
35rd=pd./(p0*rho);
36dnux= 0.4 + 8.4045*(rf-rf0) - 01.4792*(rd-rd0);
37dnuz= 0.4 - 2.3953*(rf-rf0) + 10.4216*(rd-rd0);
38
39
40plot(time(20:170) , dnux(20:170) , time(20:170) , dnuz(20:170))
41ylim([0 .5]);
42
43%Calcul offset sur Qpole en A
44testf =  (rf0*p0(20)*rho - (Gr + a*Iqf0*fq(20)))/a;
45testd =  (rd0*p0(20)*rho - (Gr + a*Iqd0*fq(20)))/a;
46sprintf('courant offset  : If= %g   Id= %g', testf, testd)
47
Note: See TracBrowser for help on using the repository browser.