source: MML/trunk/mml/at/doc_html/at/getcod.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.1 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 getcod</title>
6  <meta name="keywords" content="getcod">
7  <meta name="description" content="GETCOD Closed Orbit Distortion">
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; getcod.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&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->
19
20<h1>getcod
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>GETCOD Closed Orbit Distortion</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>function orbit = getcod(RING, DP) </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"> GETCOD Closed Orbit Distortion
31 GETCOD(RING,DP) finds closed orbit for a given momentum
32 deviation DP. It calls FINDORBIT4 which assumes a lattice
33 with NO accelerating cavities and NO radiation</pre></div>
34
35<!-- crossreference -->
36<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
37This function calls:
38<ul style="list-style-image:url(../matlabicon.gif)">
39</ul>
40This function is called by:
41<ul style="list-style-image:url(../matlabicon.gif)">
42</ul>
43<!-- crossreference -->
44
45
46<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
47<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function orbit = getcod(RING, DP)</a>
480002 <span class="comment">% GETCOD Closed Orbit Distortion</span>
490003 <span class="comment">% GETCOD(RING,DP) finds closed orbit for a given momentum</span>
500004 <span class="comment">% deviation DP. It calls FINDORBIT4 which assumes a lattice</span>
510005 <span class="comment">% with NO accelerating cavities and NO radiation</span>
520006
530007
540008 <span class="keyword">if</span> nargin &lt; 1
550009     <span class="keyword">global</span> THERING
560010 <span class="keyword">end</span>
570011 <span class="keyword">if</span> nargin &lt; 2
580012     DP = 0.0;
590013 <span class="keyword">end</span>
600014
610015 <span class="comment">%localspos = findspos(THERING,1:length(RING)+1);</span>
620016 orbit = findorbit4(THERING,DP,1:length(RING)+1);</pre></div>
63<hr><address>Generated on Fri 18-May-2007 17:13:39 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
64</body>
65</html>
Note: See TracBrowser for help on using the repository browser.