Last change
on this file since 4 was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
1.3 KB
|
Line | |
---|
1 | % calcul chrom avec foucault |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | pi=3.14159; |
---|
6 | mu0=4*pi*1e-07; |
---|
7 | sig=1.3e+06; |
---|
8 | h=0.011; |
---|
9 | ep=0.001; |
---|
10 | bro=9.175; |
---|
11 | rho=12.377; |
---|
12 | B0=0.740; |
---|
13 | E0=2750; |
---|
14 | Einj=110; |
---|
15 | delta0=0.01; |
---|
16 | mfouc0=(mu0*sig*ep)/(h*rho); |
---|
17 | |
---|
18 | mx=7.72; |
---|
19 | mz=-11.30; |
---|
20 | m1=[3.39 0.38 ; -1.32 -3.5]; %chromp versus sextu (HL/BRHO) |
---|
21 | m2=inv(m1); %sextu versus chrom |
---|
22 | |
---|
23 | w=2*pi*50/17; |
---|
24 | t=0.0219:0.0001:0.170; |
---|
25 | B=B0/2*(1-cos(w*t)); |
---|
26 | Bdot=B0/2*(w*sin(w*t)); |
---|
27 | R= (Bdot)./(B) ; |
---|
28 | R=R*25/R(1); |
---|
29 | E=E0/2*(1-cos(w*t)); |
---|
30 | delta=(delta0*Einj)./E; |
---|
31 | mfouc=mfouc0*R; |
---|
32 | chix0=-1.23; |
---|
33 | chiz0=-1.34; |
---|
34 | md = -1.7/rho; |
---|
35 | mr = -2.1/rho*Einj./E; |
---|
36 | chix=(chix0 + (md+mr+mfouc)*mx); |
---|
37 | chiz=(chiz0 + (md+mr+mfouc)*mz); |
---|
38 | sext=-m2*[chix ; chiz]; |
---|
39 | chic=m1*[sext(1,:) ; sext(2,:)]; |
---|
40 | |
---|
41 | I1=0.; |
---|
42 | I2=0.; |
---|
43 | chic1=m1*[I1*0.2/B(1)/rho ;-I2*0.2/B(1)/rho ]; |
---|
44 | |
---|
45 | |
---|
46 | chixr=chix + chic1(1)*Einj./E; |
---|
47 | chizr=chiz + chic1(2)*Einj./E; |
---|
48 | |
---|
49 | |
---|
50 | dnux=chixr.*delta*6.8; |
---|
51 | dnuz=chizr.*delta*4.8; |
---|
52 | sprintf('Brho = %g ', B(1)*rho) |
---|
53 | sprintf('chix = %g chiz = %g', chix(1), chiz(2)) |
---|
54 | sprintf('HF/Brho = %g HD/Brho = %g', sext(1,1), sext(2,1)) |
---|
55 | Ihf=sext(1,:).*B*rho/0.2; |
---|
56 | Ihd=-sext(2,:).*B*rho/0.2; |
---|
57 | sprintf('I_HF = %g A I_HD = %g A', Ihf(1), Ihd(1)) |
---|
58 | plot(t, Ihf , t , Ihd) |
---|
59 | figure(1) |
---|
60 | subplot(3,1,1) |
---|
61 | plot(t, R) |
---|
62 | subplot(3,1,2) |
---|
63 | plot(t, Ihf, t , Ihd) |
---|
64 | subplot(3,1,3) |
---|
65 | plot(t, dnux, t , dnuz) |
---|
66 | |
---|
67 | %Ihf=sext(1)*B(1)*rho/0.2 |
---|
68 | %Ihf*0.2/rho/B(1) |
---|
Note: See
TracBrowser
for help on using the repository browser.