source: MML/trunk/at/doc_html/at/simulator/element/rfcavity.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.4 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 rfcavity</title>
6  <meta name="keywords" content="rfcavity">
7  <meta name="description" content="RFCAVITY('FAMILYNAME',Length [m],Voltage[V], Frequency[Hz], Harmonic Number,'METHOD')">
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="#">simulator</a> &gt; <a href="index.html">element</a> &gt; rfcavity.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/simulator/element&nbsp;<img alt=">" border="0" src="../../../right.png"></a></td></tr></table>-->
19
20<h1>rfcavity
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>RFCAVITY('FAMILYNAME',Length [m],Voltage[V], Frequency[Hz], Harmonic Number,'METHOD')</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 z = rfcavity(fname,L,V,F,H,method) </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">RFCAVITY('FAMILYNAME',Length [m],Voltage[V], Frequency[Hz], Harmonic Number,'METHOD')
31    creates a new family in the FAMLIST - a structure with fields
32        FamName            family name
33        Length            length[m]
34        Voltage            peak voltage (V)
35        Frequency        RF frequency [Hz]
36         HarmNumber        Harmonic Number
37        PassMethod        name of the function on disk to use for tracking
38 returns assigned address in the FAMLIST that uniquely identifies
39 the family</pre></div>
40
41<!-- crossreference -->
42<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
43This function calls:
44<ul style="list-style-image:url(../../../matlabicon.gif)">
45</ul>
46This function is called by:
47<ul style="list-style-image:url(../../../matlabicon.gif)">
48</ul>
49<!-- crossreference -->
50
51
52<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
53<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function z = rfcavity(fname,L,V,F,H,method)</a>
540002 <span class="comment">%RFCAVITY('FAMILYNAME',Length [m],Voltage[V], Frequency[Hz], Harmonic Number,'METHOD')</span>
550003 <span class="comment">%    creates a new family in the FAMLIST - a structure with fields</span>
560004 <span class="comment">%        FamName            family name</span>
570005 <span class="comment">%        Length            length[m]</span>
580006 <span class="comment">%        Voltage            peak voltage (V)</span>
590007 <span class="comment">%        Frequency        RF frequency [Hz]</span>
600008 <span class="comment">%         HarmNumber        Harmonic Number</span>
610009 <span class="comment">%        PassMethod        name of the function on disk to use for tracking</span>
620010 <span class="comment">% returns assigned address in the FAMLIST that uniquely identifies</span>
630011 <span class="comment">% the family</span>
640012
650013 ElemData.FamName = fname;  <span class="comment">% add check for identical family names</span>
660014 ElemData.Length = L;
670015 ElemData.Voltage = V;
680016 ElemData.Frequency = F;
690017 ElemData.HarmNumber = H;
700018 ElemData.PhaseLag = 0;
710019 ElemData.PassMethod=method;
720020
730021 <span class="keyword">global</span> FAMLIST
740022 z = length(FAMLIST)+1; <span class="comment">% number of declare families including this one</span>
750023 FAMLIST{z}.FamName = fname;
760024 FAMLIST{z}.NumKids = 0;
770025 FAMLIST{z}.KidsList= [];
780026 FAMLIST{z}.ElemData= ElemData;
790027
800028</pre></div>
81<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>
82</body>
83</html>
Note: See TracBrowser for help on using the repository browser.