Imported Upstream version 4.6.0
[debian/atlc] / docs / html-docs / tutorial.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
2 <HTML>
3 <HEAD>
4 <META name="generator" content="Mostly bluefish and vi. Sometimes netscape">
5 <META http-equiv="CONTENT-TYPE" content="text/html; charset=iso-8859-1">
6
7 <META name="DESCRIPTION" content="FAQ for atlc">
8 <META name="KEYWORDS" content="atlc tutorial arbitrary transmission line calculator">
9 <TITLE>atlc - Arbitrary Transmission Line Calculator Tutorial</TITLE>
10 </HEAD>
11 <BODY>
12
13 <H1><CODE>atlc's</CODE> Tutorial</H1>
14 The arbitrary transmission line calculator (<CODE>atlc</CODE>) project is used when you wish to know the properties (Zo, capacitance per unit length, velocity factor, electric-field distribution, etc) of a transmission line or directional copuler. Unlike the well known analytical formulas printed in any book on transmission lines, <CODE>atlc</CODE> has great flexibility, as <STRONG>any</STRONG> cross section can be analysed, even one like this. <br>
15 <img src="jpgs/very-odd.jpg" ALT="very odd line"><p>
16 All this is required, is that the cross section can be drawn and saved as a bitmap file and the programme <CODE>atlc</CODE> used to evaluate the bitmap. 
17
18 The following examples show how this is done. 
19 <OL>
20
21 <br>
22 <LI> <a href="#very_odd">Very odd transmission line</A> In the first tutorial, that very odd transmissionl line  will be analysed. It is shown just how easy it is. By far the most difficult part in using atlc is drawing the cross-section, but luckily this is rarely necessary</LI>
23         <LI><a href="#coax">Coaxial cable</A> In the second example, a standard piece of coaxial cable will be analysed. This has the advantage for now that we calculate the answer from stardard formula for a sanity check.</LI>
24         <LI><a href="#sym_rectangular">Symmetrical rectangular transmission line.</A> In the example, a transmission line with one <STRONG>rect</STRONG>angular conductor <STRONG>cen</STRONG>trally located <STRONG>in</STRONG>side another <STRONG>rect</STRONG>angular conductor will be analysed. The programme <CODE>create_bmp_for_rect_cen_in_rect</CODE> will be used for this - the name hopefully conveying the conductor shapes and the symmetry. </LI>
25         <LI><a href="#coupler1">Directional coupler.</A> Assume we wished to analyse the coupling between two closely spaced square conductors in a rectangular outer conductor, with a vacuum dielectric. </LI>
26 </OL>
27
28 <OL>
29
30
31 <LI>
32 <a name="very_odd" ><STRONG>Very odd line</STRONG></a> Assuming we wanted to analyse that rather strange transmission line above, its cross-section would first be saved as a bitmap. One conductor would be drawn pure red, the other pure green. Assuming for a monent the dielectric is a vacuum (virtually the same permittivity as air), the dielectic would be drawn pure whilte. (The colours are critical and are discussed more in the section marked <a href="colours.html">Colours</a> at the top of the page). Assuming the cross section was in a file very_odd.bmp, we would run atlc like this:
33 <PRE>
34 wren % atlc very-odd.bmp
35 </PRE>
36 atlc would produce the following output. 
37 <pre>
38 very-odd.bmp 2 Er=  1.00 Zo=  56.557 Ohms C=   59.0 pF/m L=  188.7 nH/m v= 2.998e+08 m/s v_f= 1.000 VERSION= 4.6.0
39 </PRE>
40 All information is printed on one long line so its easy to process with other software. Note the impedance Zo  is 56.557 Ohms. 
41 <p>
42 The size (number of pixels) in the bitmap should be sufficient that the structure can be drawn accurately, but not so large that it takes too long to process. About 1 MB is reasonable. 
43 </LI>
44
45 <LI>
46 <STRONG><a name="coax" >Coaxial cable</a></STRONG> To analyse coaxial cable, we would normally use the formulas published in book. The impedance for instance, is given by Zo=59.95849160*log<sub>e</sub>(D/d))/sqrt(Er) - (the 59.958 .. is ussually seen in books as 60).  <CODE>atlc</CODE> can be used too. We are not suggesting that <CODE>atlc</CODE> is used instead of the normal formula for coax on a regular basis, but since it's a simple example, it is useful for demonstration. Also, as there is an analytical expression for Zo, we can get some idea of the <a href="accuracy.html">accuracy</a> of <CODE><a href="atlc.1.html">atlc</a></CODE>
47 <br>
48 <br>
49 Since the cross section consists of a <STRONG>circ</STRONG>ular conductor <STRONG>in</STRONG>side another <STRONG>circ</STRONG>ular conductor, the programme <CODE><a href="create_bmp_for_circ_in_circ.1.html">create_bmp_for_circ_in_circ</a></CODE> can be used to generate the bitmap, rather than the more time consuming procedure of using a graphics package and drawing it manually.. <br><br>
50 We will assume that the inner diameter of the outer conductor is 12 mm, the outer diameter of the inner conductor is 3.9  mm, and the dielectric has a permittivity of 1.0. Since the conductors are coaxial, there is zero offset between their centres. The programme <a href="create_bmp_for_circ_in_circ.1.html"><CODE>create_bmp_for_circ_in_circ</CODE></a> will be used to generate the bitmap, with these physical dimensions <br>
51 <br>
52 If we run  <CODE><a href="create_bmp_for_circ_in_circ.1.html">create_bmp_for_circ_in_circ</a></CODE> without any arguments, it will print a usage message, showing the first argument should the the outer diamater (D=12 mm), the second the inner conductor (d=3.9 mm), the third the offset 'O' between the conductors (O is zero since they are coaxial and there is therefore no offset between centres).  The fourth argument is the relative permittivity (1.0 in this case).
53
54 Ignoring the options, which are not necessary unless we wish to change the behaviour of  <CODE><a href="create_bmp_for_circ_in_circ.1.html">create_bmp_for_circ_in_circ</a></CODE>, we would type <br><br>
55 <CODE>
56 % create_bmp_for_circ_in_circ 12 3.9 0 1.0 coaxial_1.bmp <br> 
57 </code>
58 This will produce a bitmap like the image on the left. The inner conductor is red, the outer green and the dielectric is white in this case, as Er=1.0. Don't worry about the fact that the outer conductor is square, as the inside of it is round, which is all that matters. 
59 <br>
60 <img src="jpgs/coaxial1.jpg" ALT="coax 12/3.9 mm" >
61 <br>
62 To calculate the properties of this coaxial cable, we then run    <CODE><a href="atlc.1.html">atlc</a></CODE>, where it will print the important properties to the screen, again on one long line (you will have to scroll the brower to see it all).<p>
63 <pre>
64 % atlc coaxial_1.bmp
65 coaxial_1.bmp 2 Er=  1.00 Zo=  67.390 Ohms C=   49.5 pF/m L=  224.8 nH/m v= 2.998e+08 m/s v_f= 1.000 VERSION= 4.6.0
66 </pre>
67 <br>
68 The correct answer, given by the formula  Zo=59.95849160*log<sub>e</sub>(D/d)/sqrt(Er) is 67.3892 Ohms, so atlc's estimate of Zo= 67.390 Ohms is in error by only 0.001%!! We could probably increase the accuracy further, by generating a larger bitmap with <CODE>create_bmp_for_circ_in_circ</CODE>, by adding the -b command line option, but there is no point. Who can argue with an error of just 0.001% ???
69 <p>We could if we wanted use an outer conductor which is round on both the inner and outer like this:<br>
70 <img src="jpgs/true-round-coax.jpg" ALT="coax 12/3.9 mm" >
71 <br>
72 so it looks more like normal coax. However, there are three good reasons <strong>not</strong> to do this. This applies to any structure you draw.
73 <ul>
74 <li>It is more difficult to draw in a graphics package</LI>
75 <LI>atlc will run slower. This is because it needs to compute the voltage at each pixel outside the outer conductor, rather than just know all pixels are at zero. In fact the computation time rises from 1 minute and 34 s to 1 minute and 51s - an increase of 18%.</LI>
76 <LI>If the voltage on the outer conductor was non-zero (say +1 V for example), atlc would be less accurate too. This is because atlc would have to calculate the voltage everywhere outside the outer conductor, which should in theory be 1 V everwhere, but atlc would need to compute this.  This is not an issue when the outer conductor is 0 V (green) since the voltages on all dielectrics are initalised to 0 V. But if the outer conductor was +1 V for example, these voltages would need to be computed and whilst they would all end up close to +1 V, they would not be exactly +1 V. 
77 </LI>
78 </uL><br>
79 <strong>Hence there are a number of good reasons to replace any dielectric with a conductor, when it is obvious it does not change the impedance. </strong><br><br>
80 </LI>
81
82
83
84
85
86
87 <LI>
88 <STRONG><a name="sym_rectangular" >Symmetrical rectangular transmission line.</a></STRONG> In this tutorial we will analyse a <STRONG>rect</STRONG>angular conductor placed <STRONG>cen</STRONG>trally <STRONG>in</STRONG>side a second <STRONG>rect</STRONG>angular conductor. We will assume the outer is 10x7  mm, the inner 2 by 5 mm and assume the dielectric is not air, but a polystryene with a relative permittity of Er=2.5. The section marked <a href="colours.html">Colours</A> will show that for a dielectric of Er=2.5, the dielectric must be drawn in yellow, with 255 parts red, 255 parts green and no blue. We could draw this quite easily by a graphics package and produce someting like this. <p>
89 <img src="jpgs/rect9.jpg" ALT="rectangular transmission line">
90 <p>The outer conductor needs only to be 2 pixels thick. Drawing a few more is usually benificial, as otherwise they can be hard to see. Do not make it too thick (say more than 30 pixels) as it will start to  slow atlc. <p>
91 Once the bitmap is drawn, a copy of which is in atlc-x.y.z/examples/rect9.bmp, <CODE>atlc</CODE> is used to process the bitmap. 
92 <pre>
93 % atlc rect9.bmp</pre>
94
95 Although drawning that would not be hard in the Gimp, Photoshop or whatever, it is even easier to use  <a href="create_bmp_for_rect_cen_in_rect.1.html"><code>create_bmp_for_rect_cen_in_rect</code></a> to generate the bitmap, giving it the 4 dimensions in the order W H w h and the permittivity, which in the following example is 2.5.
96 <pre>
97 % create_bmp_for_rect_cen_in_rect 10 7 2 5 2.5  rect10.bmp
98 % atlc rect10.bmp
99 rect10.bmp 2 Er=  2.50 Zo=  23.95 Ohms C= 220.2 pF/m L= 126.3 nH/m v= 1.896e+08 m/s v_f= 0.632 VERSION= 4.2.5
100 </pre>
101 In order to understand how to use <CODE>create_bmp_for_rect_cen_in_rect</CODE> (or any other programme for that matter), we should run it with no arguments, to get a list of the paramters it needs and any options it may have.  <br>
102 </LI>
103 <LI>
104 <a name="coupler1" >Directional coupler.</a> Now consider analysing this structure, which is a coupler. A bitmap of it can be found in atlc-x.y.z/examples/cop1.bmp
105 <p>
106 <img src="jpgs/cop1.jpg" ALT="rectangular transmission line" width="50%"><p>
107 This time, since this is a coupler, the second inner conductor must be drawn pure blue. Coupled lines are quite a complex suhject, but the important properties to know are the odd and even mode impedance, Zodd and Zeven. Again <CODE>atlc</CODE> is used to determine these. 
108 <pre>
109 % atlc cop1.bmp
110 </pre>
111 atlc responds, but this time giving both the odd mode impedance, the even mode impedance and the characteristic impedance Zo. 
112 <pre>
113 cop1.bmp 3 Er_odd= 1.00 Er_even= 1.00 Zodd= 31.69 Zeven= 138.99 Zo=  66.37 Zdiff=  63.38 Zcomm=  69.50 Ohms VERSION=4.2.5
114 </pre>
115 <P>The characteristic impedance Zo is the square root of the odd and even mode impedances. Zo=sqrt(Zodd*Zeven)=sqrt(31.59*138.99)=66.37.
116 <br>The common mode impedance Zcomm is Zeven/2 and the differential mode impedance Zdiff is  2*Zodd.</P>
117 <P>Please see the tutorial on <a href="couplers.html">couplers</a> for further examples on the use of couplers.</P>
118 </LI>
119 </OL>
120 <p><EM>atlc</EM> is written and supported by <a href="jpgs/home-email.jpg">Dr. David Kirkby (G8WRB)</A> It it issued under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU General Public License</A><p>
121 <a href="http://atlc.sourceforge.net">Return to the atlc homepage</a>
122 <a href="http://homepage.ntlworld.com/drkirkby/list1.html"></a>
123 <a href="http://homepage.ntlworld.com/drkirkby/list2.html"></a>
124 <a href="http://homepage.ntlworld.com/drkirkby/list3.html"></a>
125 <a href="http://homepage.ntlworld.com/drkirkby/list4.html"></a>
126 <a href="http://homepage.ntlworld.com/drkirkby/list5.html"></a>
127 <a href="http://homepage.ntlworld.com/drkirkby/list6.html"></a>
128 <a href="http://homepage.ntlworld.com/drkirkby/list7.html"></a>
129 <BR>
130 <BR>
131 <A href="http://sourceforge.net"> <IMG
132 src="http://sourceforge.net/sflogo.php?group_id=25836&amp;type=5"
133 width="210" height="62" border="0" alt="SourceForge.net
134 Logo"></A>
135 </body>
136 </html>