source: MML/trunk/at/doc_html/at/atphysics/radiationoff.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: 4.3 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 radiationoff</title>
6  <meta name="keywords" content="radiationoff">
7  <meta name="description" content="RADIATIONOFF turns classical radiation  OFF">
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="../index.html">at</a> &gt; <a href="index.html">atphysics</a> &gt; radiationoff.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 at/atphysics&nbsp;<img alt=">" border="0" src="../../right.png"></a></td></tr></table>-->
19
20<h1>radiationoff
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>RADIATIONOFF turns classical radiation  OFF</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">RADIATIONOFF turns classical radiation  OFF
31  Switch all magnets currently set to use pass-methods
32  'BndMPoleSymplectic4RadPass' and  'StrMPoleSymplectic4RadPass'
33  to their equivalents without radiation
34  'BndMPoleSymplectic4Pass' and  'StrMPoleSymplectic4Pass'
35   
36   See also <a href="radiationon.html" class="code" title="">RADIATIONON</a>, <a href="cavityon.html" class="code" title="function varargout = cavityon(varargin)">CAVITYON</a>, <a href="cavityoff.html" class="code" title="">CAVITYOFF</a></pre></div>
37
38<!-- crossreference -->
39<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
40This function calls:
41<ul style="list-style-image:url(../../matlabicon.gif)">
42</ul>
43This function is called by:
44<ul style="list-style-image:url(../../matlabicon.gif)">
45</ul>
46<!-- crossreference -->
47
48
49<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
50<div class="fragment"><pre>0001 <span class="comment">%RADIATIONOFF turns classical radiation  OFF</span>
510002 <span class="comment">%  Switch all magnets currently set to use pass-methods</span>
520003 <span class="comment">%  'BndMPoleSymplectic4RadPass' and  'StrMPoleSymplectic4RadPass'</span>
530004 <span class="comment">%  to their equivalents without radiation</span>
540005 <span class="comment">%  'BndMPoleSymplectic4Pass' and  'StrMPoleSymplectic4Pass'</span>
550006 <span class="comment">%</span>
560007 <span class="comment">%   See also RADIATIONON, CAVITYON, CAVITYOFF</span>
570008
580009
590010 <span class="keyword">if</span> ~isglobal(THERING)
600011    error(<span class="string">'Global variable THERING could not be found'</span>);
610012 <span class="keyword">end</span>
620013 localindex = findcells(THERING,<span class="string">'PassMethod'</span>,<span class="string">'StrMPoleSymplectic4RadPass'</span>);
630014 THERING = setcellstruct(THERING,<span class="string">'PassMethod'</span>,localindex, <span class="string">'StrMPoleSymplectic4Pass'</span>);
640015 totalswitched = length(localindex);
650016
660017 localindex = findcells(THERING,<span class="string">'PassMethod'</span>,<span class="string">'BndMPoleSymplectic4RadPass'</span>);
670018 THERING = setcellstruct(THERING,<span class="string">'PassMethod'</span>,localindex, <span class="string">'BndMPoleSymplectic4Pass'</span>);
680019 totalswitched = totalswitched + length(localindex);
690020
700021 disp([<span class="string">'PassMethod was changed to NOT include radiation in '</span>,num2str(totalswitched),  <span class="string">' elements'</span>])     
710022 clear localindex totalswitched</pre></div>
72<hr><address>Generated on Mon 21-May-2007 15:26:45 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
73</body>
74</html>
Note: See TracBrowser for help on using the repository browser.