source: MML/trunk/machine/SOLEIL/Booster/applications/time_inject.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: 961 bytes
Line 
1
2% calcul du temp d'injection
3
4
5Id_inj=21.3;
6
7Idc=0.;
8Id0=546.76;
9w=2*3.14159*(50./17.);
10
11t_inj=real(acos( 1-2*(Id_inj-Idc)/Id0 ) / w);
12
13
14sprintf(' Dt  / déclanchement alim dipole injection : %g  ms avant canon/kicker', t_inj)
15sprintf(' Delai carte CPT alim dipole injection     : %g ', (0.33 + 7.83e-05 - t_inj))
16 
17
18
19Gr = 0.0435 ;           % gradient remanent  T/m
20a  = 0.0517 ;           % G/I   T/m/A
21Br = 0.0006 ;           % Champ remanent T
22b  = 0.00135416 ;       % B/I  T/A
23
24
25Iqf0 = 198.38 ;
26Iqd0 = 157.28 ;
27Iqfc = 7.16 ;             % Offset QPF
28Iqdc = 5.55 ;
29
30Iqpf_inj=Iqfc + 0.5*Iqf0*(1-cos(w*t_inj));
31Iqpd_inj=Iqdc + 0.5*Iqd0*(1-cos(w*t_inj));
32sprintf(' injection  Iqf= %g   et Iqd= %g  A',Iqpf_inj , Iqpd_inj)
33
34
35
36B_inj  = Br + b*(Idc + 0.5*Id0*(1-cos(w*t_inj)));
37sprintf(' B dipole injection : %g   T', B_inj)
38t=t_inj+1e-06 ;
39B      = Br + b*(Idc + 0.5*Id0*(1-cos(w*t)));
40sprintf(' Variation relative avec dt= 1*µs  : %g ', (B_inj-B)/B_inj )
Note: See TracBrowser for help on using the repository browser.