1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <title>Description of time_inject</title> |
---|
6 | <meta name="keywords" content="time_inject"> |
---|
7 | <meta name="description" content="calcul du temp d'injection"> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
10 | <meta name="robots" content="index, follow"> |
---|
11 | <link type="text/css" rel="stylesheet" href="../../../../m2html.css"> |
---|
12 | </head> |
---|
13 | <body> |
---|
14 | <a name="_top"></a> |
---|
15 | <div><a href="../../../../index.html">Home</a> > <a href="#">machine</a> > <a href="#">Soleil</a> > <a href="../index.html">common</a> > <a href="index.html">synchro</a> > time_inject.m</div> |
---|
16 | |
---|
17 | <!--<table width="100%"><tr><td align="left"><a href="../../../../index.html"><img alt="<" border="0" src="../../../../left.png"> Master index</a></td> |
---|
18 | <td align="right"><a href="index.html">Index for machine/Soleil/common/synchro <img alt=">" border="0" src="../../../../right.png"></a></td></tr></table>--> |
---|
19 | |
---|
20 | <h1>time_inject |
---|
21 | </h1> |
---|
22 | |
---|
23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
24 | <div class="box"><strong>calcul du temp d'injection</strong></div> |
---|
25 | |
---|
26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
27 | <div class="box"><strong>This is a script file. </strong></div> |
---|
28 | |
---|
29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
30 | <div class="fragment"><pre class="comment"> calcul du temp d'injection</pre></div> |
---|
31 | |
---|
32 | <!-- crossreference --> |
---|
33 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
34 | This function calls: |
---|
35 | <ul style="list-style-image:url(../../../../matlabicon.gif)"> |
---|
36 | </ul> |
---|
37 | This function is called by: |
---|
38 | <ul style="list-style-image:url(../../../../matlabicon.gif)"> |
---|
39 | </ul> |
---|
40 | <!-- crossreference --> |
---|
41 | |
---|
42 | |
---|
43 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../../up.png"></a></h2> |
---|
44 | <div class="fragment"><pre>0001 |
---|
45 | 0002 <span class="comment">% calcul du temp d'injection</span> |
---|
46 | 0003 |
---|
47 | 0004 |
---|
48 | 0005 Id_inj=21.3; |
---|
49 | 0006 |
---|
50 | 0007 Idc=0.; |
---|
51 | 0008 Id0=546.76; |
---|
52 | 0009 w=2*3.14159*(50./17.); |
---|
53 | 0010 |
---|
54 | 0011 t_inj=real(acos( 1-2*(Id_inj-Idc)/Id0 ) / w); |
---|
55 | 0012 |
---|
56 | 0013 |
---|
57 | 0014 sprintf(<span class="string">' Dt / déclanchement alim dipole injection : %g ms avant canon/kicker'</span>, t_inj) |
---|
58 | 0015 sprintf(<span class="string">' Delai carte CPT alim dipole injection : %g '</span>, (0.33 + 7.83e-05 - t_inj)) |
---|
59 | 0016 |
---|
60 | 0017 |
---|
61 | 0018 |
---|
62 | 0019 Gr = 0.0435 ; <span class="comment">% gradient remanent T/m</span> |
---|
63 | 0020 a = 0.0517 ; <span class="comment">% G/I T/m/A</span> |
---|
64 | 0021 Br = 0.0006 ; <span class="comment">% Champ remanent T</span> |
---|
65 | 0022 b = 0.00135416 ; <span class="comment">% B/I T/A</span> |
---|
66 | 0023 |
---|
67 | 0024 |
---|
68 | 0025 Iqf0 = 198.38 ; |
---|
69 | 0026 Iqd0 = 157.28 ; |
---|
70 | 0027 Iqfc = 7.16 ; <span class="comment">% Offset QPF</span> |
---|
71 | 0028 Iqdc = 5.55 ; |
---|
72 | 0029 |
---|
73 | 0030 Iqpf_inj=Iqfc + 0.5*Iqf0*(1-cos(w*t_inj)); |
---|
74 | 0031 Iqpd_inj=Iqdc + 0.5*Iqd0*(1-cos(w*t_inj)); |
---|
75 | 0032 sprintf(<span class="string">' injection Iqf= %g et Iqd= %g A'</span>,Iqpf_inj , Iqpd_inj) |
---|
76 | 0033 |
---|
77 | 0034 |
---|
78 | 0035 |
---|
79 | 0036 B_inj = Br + b*(Idc + 0.5*Id0*(1-cos(w*t_inj))); |
---|
80 | 0037 sprintf(<span class="string">' B dipole injection : %g T'</span>, B_inj) |
---|
81 | 0038 t=t_inj+1e-06 ; |
---|
82 | 0039 B = Br + b*(Idc + 0.5*Id0*(1-cos(w*t))); |
---|
83 | 0040 sprintf(<span class="string">' Variation relative avec dt= 1*µs : %g '</span>, (B_inj-B)/B_inj )</pre></div> |
---|
84 | <hr><address>Generated on Mon 21-May-2007 15:35:27 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
85 | </body> |
---|
86 | </html> |
---|