source: MML/trunk/machine/SOLEIL/doc_html/machine/Soleil/common/synchro/time_inject.html @ 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: 3.8 KB
Line 
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 &copy; 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> &gt;  <a href="#">machine</a> &gt; <a href="#">Soleil</a> &gt; <a href="../index.html">common</a> &gt; <a href="index.html">synchro</a> &gt; time_inject.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../../../../index.html"><img alt="<" border="0" src="../../../../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for machine/Soleil/common/synchro&nbsp;<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>
34This function calls:
35<ul style="list-style-image:url(../../../../matlabicon.gif)">
36</ul>
37This 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
450002 <span class="comment">% calcul du temp d'injection</span>
460003
470004
480005 Id_inj=21.3;
490006
500007 Idc=0.;
510008 Id0=546.76;
520009 w=2*3.14159*(50./17.);
530010
540011 t_inj=real(acos( 1-2*(Id_inj-Idc)/Id0 ) / w);
550012
560013
570014 sprintf(<span class="string">' Dt  / déclanchement alim dipole injection : %g  ms avant canon/kicker'</span>, t_inj)
580015 sprintf(<span class="string">' Delai carte CPT alim dipole injection     : %g '</span>, (0.33 + 7.83e-05 - t_inj))
590016 
600017
610018
620019 Gr = 0.0435 ;           <span class="comment">% gradient remanent  T/m</span>
630020 a  = 0.0517 ;           <span class="comment">% G/I   T/m/A</span>
640021 Br = 0.0006 ;           <span class="comment">% Champ remanent T</span>
650022 b  = 0.00135416 ;       <span class="comment">% B/I  T/A</span>
660023
670024
680025 Iqf0 = 198.38 ;
690026 Iqd0 = 157.28 ;
700027 Iqfc = 7.16 ;             <span class="comment">% Offset QPF</span>
710028 Iqdc = 5.55 ;
720029
730030 Iqpf_inj=Iqfc + 0.5*Iqf0*(1-cos(w*t_inj));
740031 Iqpd_inj=Iqdc + 0.5*Iqd0*(1-cos(w*t_inj));
750032 sprintf(<span class="string">' injection  Iqf= %g   et Iqd= %g  A'</span>,Iqpf_inj , Iqpd_inj)
760033
770034
780035
790036 B_inj  = Br + b*(Idc + 0.5*Id0*(1-cos(w*t_inj)));
800037 sprintf(<span class="string">' B dipole injection : %g   T'</span>, B_inj)
810038 t=t_inj+1e-06 ;
820039 B      = Br + b*(Idc + 0.5*Id0*(1-cos(w*t)));
830040 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> &copy; 2003</address>
85</body>
86</html>
Note: See TracBrowser for help on using the repository browser.