Imported Upstream version 4.6.0
[debian/atlc] / docs / html-docs / accuracy.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <HTML>
3 <HEAD>
4 <META name="generator" content="bluefish and vi">
5 <META http-equiv="CONTENT-TYPE" content="text/html; charset=iso-8859-1">
6 <meta name="author" content="Dr. David Kirkby">
7 <META name="DESCRIPTION" content="Accuracy of atlc - Arbitrary Transmission Line Calculator">
8 <META name="KEYWORDS" content="transmission lines, Transmission line, atlc, finite difference">
9 <TITLE>Accuracy of atlc - Arbitrary Transmission Line Calculator</TITLE>
10 </HEAD>
11 <BODY>
12
13 <H1>Accuracy of <CODE>atlc</code></H1>
14
15 <p>In order to test the accuracy of  <CODE>atlc</code>, some simple geometries were devised, for which there are known exact closed-form analytical solutions. The following have been tested. To date, all tests have yielded acceptable accuracy. Out of 48 tests, the higest error measured is 3.05%, with However, note that in most cases where the error is over 1%, is is clearly very obvious why it is. The <a href="accuracy.html#conclusions">conclusions</a> at the end explain the reason for the higher errors observered on some simulations. 
16 <ol>
17         <li>Two_conductor_uniform_dielectric<a href="accuracy.html#Two_conductor_uniform_dielectric">Two-conductor transmission lines, with a uniform dielectric</a> are discussed in <a href="accuracy.html#Two_conductor_uniform_dielectric">section 1.0</a>. Three cases were considered - the <a href="accuracy.html#Accuracy_coax">standard coaxial cable</a>, an off-centre or <a href="accuracy.html#Accuracy_eccentric_coax">eccentric coaxial cable</a> and a <a href="accuracy.html#Accuracy_symmetrical_strip">symmetrical strip transmission line</a>. These cases were consided since there are closed form exact analytical solutions on which to compare the results of atlc. Other structures will be tested at a later date. 
18 </li>
19         <li><a href="accuracy.html#Two_conductors_hetrogeneous_dielectrics"> Two conductor transmission lines, 
20         
21 with two different dielectrics</a> are described in <a href="accuracy.html#section_2">section 2</a>. 
22         
23 The only structure considered has been a dual coaxial cable, which has an inner and outer conductor like normal coaxiale cable, but has two different concentric dielectrics. This has an exact closed-form analytical solution. Testing a coaxial cable with thress or more multiple concentric dielectrics will later be performed, as it should be possible to derive an analytical formula for such a strucutre, although this has not currently be done. 
24         
25         
26         
27 I'm unaware of any other structure which has an exact solution when there are two or more dielectrics. If you know of any, please <a href="jpgs/home-email.jpg">e-mail</A> the details. </li>
28         <li>Three conductors (<a href="accuracy.html#Accuracy_coupler">directional coupler</a>), with a single dielectric are described in <a href="accuracy.html#Section_3_Accuracy_coupler">section 3.0</a>.  For three-wires, which can be used to make a 4-port <a href="accuracy.html#Accuracy_coupler">directional coupler</a>, the  accuracy was compared using <a href="accuracy.html#Accuracy_coupler">two edge-on strip lines.</a>, as that is the only case I am aware of that has an exact analytical solution. However, comparisions with commercial tools such as the expensive HFSS package will be done at a later date. However, I am relieant on the help of others for this, since I don't personally have access to such expensive commerical software. </li>
29 </ol>
30
31 <H2><a name="Two_conductor_uniform_dielectric">Section 1. Two conductor Transmission Lines with a Uniform Dielectric</a></H2>
32 This section describes several tests for atlc using just two conductors and one dielectric. Several geometries have exact results, so it makes testing relatively easy. 
33
34 <H3><a name="Accuracy_coax" ><strong>1.1 Comparisons between atlc and a round coaxial cabl</strong>e</a></H3>
35 <p>
36
37 <img src="jpgs/coax2.jpg" ALT="coaxial line" align="left">An obvious structure to test atlc with two conductor and a single dielectric is the round coaxial cable, which has an impedance:
38 <br>
39 <STRONG>
40
41
42 Zo=59.95849160*log<sub>e</sub>(D/d)/sqrt(Er) Ohms</STRONG>
43 <br>
44  where D is the inner diameter of the outer conductor and d is the outer diameter of the inner conductor. (The number 59.958491602 is usually seen as 60 in most books, but that is only an approximation).
45  
46 <br>
47 Circular conductors can never be defined exactly using a square grid, so differences between the exact answer and <CODE>atlc</code>'s answer are due to:
48 <UL>
49 <LI>Errors in representing a circle on a square grid</LI>
50 <LI>Errors in the method <COde>atlc</code> uses. </LI>
51 </UL>
52 <br>
53 Seven coaxial cables were defined, which exibited a range of impedances between 5.5 and 179.6 Ohms. All eccept one used a vacuum dielectric. The table below shows the theoetical results and the results computed by <code>atlc</code>.
54 <TABLE border align="left">
55 <TR>
56 <TD><STRONG>Filename</STRONG></td>
57 <TD><STRONG>D</STRONG></TD>
58 <TD><STRONG>d</STRONG></TD>
59 <TD>Er</TD>
60 <TD><STRONG>Zo (theory)</STRONG></TD>
61 <TD><STRONG>Zo (<COde>atlc</code>)</STRONG></TD>
62 <TD><STRONG>Error (%)</STRONG></TD>
63
64 </TR>
65
66 <TR>
67 <TD>coax-500-200-Er=100.bmp</TD>
68 <TD>500</TD>
69 <TD>200</TD>
70 <TD>100.0</TD>
71 <TD>5.494</TD>
72 <TD>5.492</TD>
73 <TD>-0.036 %</TD>
74 <TD>0m:43s</TD>
75 </TR>
76
77 <TR>
78 <td>coax-500-400.bmp</td>
79 <TD>500</TD>
80 <TD>400</TD>
81 <TD>1.0</TD>
82 <TD>13.379</TD>
83 <TD>13.381</TD>
84 <TD>+ 0.020 %</TD>
85 <TD>0m:11s</TD>
86
87 </TR>
88 <TR>
89 <TD>coax-500-200.bmp</TD>
90 <TD>500</TD>
91 <TD>200</TD>
92 <TD>1.0</TD>
93 <TD>54.939</TD>
94 <TD>54.919</TD>
95 <TD>-0.036 %</TD>
96 <TD>0m:43s</TD>
97 </TR>
98
99 <TR>
100 <TD>coax-400-82.bmp</TD>
101 <TD>400</TD>
102 <TD>82</TD>
103 <TD>1.0</TD>
104 <TD>95.019</TD>
105 <TD>95.023</TD>
106 <TD>+0.004 %</TD>
107 <TD>0m:31s</TD>
108 </TR>
109
110
111 <TR>
112 <TD>coax-500-100.bmp</TD>
113 <TD>500</TD>
114 <TD>100</TD>
115 <TD>1.0</TD>
116 <TD>96.499</TD>
117 <TD>96.448</TD>
118 <TD>-0.053 %</TD>
119 <TD>1m:08s</TD>
120 </TR>
121
122 <TR>
123 <TD><a name="coax-500-50.bmp">coax-500-50.bmp</a></TD>
124 <TD>500</TD>
125 <TD>50</TD>
126 <TD>1.0</TD>
127 <TD>138.060</TD>
128 <TD>137.944</TD>
129 <TD>-0.008 %</TD>
130 <TD>1m:22s</TD>
131 </TR>
132
133 <TR>
134 <TD>coax-500-25.bmp</TD>
135 <TD>500</TD>
136 <TD>25</TD>
137 <TD>1.0</TD>
138 <TD>179.620</TD>
139 <TD>180.022</TD>
140 <TD>+0.244 %</TD>
141 <TD>1m:28s</TD>
142 </TR>
143
144
145 </TABLE><br clear="all">
146 <br>
147 <STRONG>Notes:</STRONG> 
148 <br>
149 <OL>
150 <LI>These results were obtained with version 4.6.0 of atlc. Other versions will undoubtablly differ slightly as effort is made to improve the algorithms in atlc. </LI>
151 <LI>Run times quoted are for a Sun Ultra 80 with 4 x 450 MHz and 4 Gb RAM, running Solaris 9. The compiler was gcc-3.2.2 with compiler options <code>-O2 -g</code>.</LI>
152 <LI>The only option used on atlc was the -d option on the occasions where the permittivity was not one of atlc's known values, so it needed to be specified on the command line</LI>
153 <LI>
154 <STRONG>The largest error for the coaxial cables is only 0.244 %, the mean error is 0.017 % with the RMS error being 0.089 %. </STRONG>
155 </LI>
156 <LI>The larger error in the last result is due to the difficulty in accurately representing a small conductor on a reasonable sized grid. The ratio between the diameters of the outer and inner conductors is 20:1, making it difficult to represent both accurately without a grid become huge and so taking a lot of CPU time. 
157 </LI>
158
159 <LI>
160 In some situations, accuracy can be improved at the expense of memory and CPU time, by using a finer grid and altering the cutoff parameter of atlc. </LI>
161 <LI>As from version 4.6.0 of atlc, a new program called coax has been provided. This allows the quick computation of the impedance of a coaxial cable. To find the impedance of a coax with an inner of 32 mm, and outer of 120 mm and a relative permittivity of 2.2, just run coax:<br><br>
162 <code>% coax 32 120 2.2</code>
163 </OL>
164
165
166
167
168 <!-- Section 1.2 --- Comparisons between atlc and an eccentric coaxial line<-->
169
170
171
172
173
174 <H3><STRONG><a name="Accuracy_eccentric_coax" >1.2 Comparisons between atlc and an eccentric coaxial line</A></STRONG></H3>
175 <img src="jpgs/eccentric_coax2.jpg" ALT="eccentric coaxial line" align="bottom"><p>According to the book <EM>Microwave and Optical Components, Volume 1, - Microwave Passive and Antenna Components</EM>, page 7, there is an exact formula for the impedance of a coaxial line (see below). If O is the offset between the centres of the two conductors, then the impedance Zo assuming Er=1, is given by the following equation.
176 <p><STRONG> 60 log<sub>e</sub>(x+sqrt(x^2-1)) </STRONG>where <STRONG>x=(d<sup>2</sup>+D<sup>2</sup>-4 O<sup>2</sup>)/(2*D*d)  </STRONG>
177 <br>
178 <p>This will allow a second check of atlc's accuracy with two conductors and one dielectric. Any problems which might be masked by the symmetry of the stardard coaxial cable will be eliminated. </p>
179
180 <p>Whenever the number 60 appears in formula for transmission lines, it should in fact be replaced by the number 59.9585. 60 is just a good approximation, but since we are testing atlc, the following formula will be used:<br><br>
181
182 <STRONG> 59.9585 log<sub>e</sub>(x+sqrt(x^2-1)) /sqrt(Er) </STRONG>where <STRONG>x=(d<sup>2</sup>+D<sup>2</sup>-4 O<sup>2</sup>)/(2*D*d)  </STRONG>
183
184 <br>
185 <br>
186 Of course, one could constuct the a number of such transmission lines with a graphics package using its ability to draw circles, but getting the correct diamters and offsets would be time confusming. For this reasons the program <a href="create_bmp_for_circ_in_circ.1.html">create_bmp_for_circ_in_circ</a> was used to generate a number of bitamps quickly with the following diameters and offsets. 
187 <TABLE border align="left">
188 <TR>
189 <TD><STRONG>Filename</STRONG></td>
190 <TD><STRONG>D</STRONG></TD>
191 <TD><STRONG>d</STRONG></TD>
192 <TD><STRONG>O</STRONG></TD>
193 <TD>Er</TD>
194 <TD><STRONG>Zo (theory)</STRONG></TD>
195 <TD><STRONG>Zo (<COde>atlc</code>)</STRONG></TD>
196 <TD><STRONG>Error (%)</STRONG></TD>
197
198 </TR>
199 <TR>
200
201 <td>eccentric-a.bmp</td>
202 <TD>500</TD>
203 <TD>400</TD>
204 <TD>40</TD>
205 <TD>2.15</TD>
206 <TD>5.482</TD>
207 <TD>5.487</TD>
208 <TD>+0.091 %</TD>
209 </TR>
210
211 <TR>
212 <td>eccentric-b.bmp</td>
213 <TD>400</TD>
214 <TD>320</TD>
215 <TD>0</TD>
216 <TD>1.0</TD>
217 <TD>13.379</TD>
218 <TD>13.389</TD>
219 <TD>+0.075 %</TD>
220
221 </TR>
222 <TR>
223 <td>eccentric-c.bmp</td>
224 <TD>500</TD>
225 <TD>100</TD>
226 <TD>100</TD>
227 <TD>10.0</TD>
228 <TD>29.707</TD>
229 <TD>29.713</TD>
230 <TD>+0.020 %</TD>
231
232 </TR>
233 <TR>
234 <td>eccentric-d.bmp</td>
235 <TD>500</TD>
236 <TD>200</TD>
237 <TD>100</TD>
238 <TD>1.0</TD>
239 <TD>41.560</TD>
240 <TD>41.587</TD>
241 <TD>+0.065 %</TD>
242
243 </TR>
244 <TR>
245 <td>eccentric-e.bmp</td>
246 <TD>500</TD>
247 <TD>200</TD>
248 <TD>10</TD>
249 <TD>1.0</TD>
250 <TD>54.825</TD>
251 <TD>54.862</TD>
252 <TD>+0.067 %</TD>
253
254 </TR>
255 <TR>
256 <td>eccentric-f.bmp</td>
257 <TD>400</TD>
258 <TD>160</TD>
259 <TD>0</TD>
260 <TD>1.0</TD>
261 <TD>54.939</TD>
262 <TD>54.976</TD>
263 <TD>+0.067 %</TD>
264
265 </TR>
266 <TR>
267 <td>eccentric-g.bmp</td>
268 <TD>400</TD>
269 <TD>40</TD>
270 <TD>12</TD>
271 <TD>5.0</TD>
272 <TD>61.644</TD>
273 <TD>61.676</TD>
274 <TD>+0.052 %</TD>
275
276 </TR>
277 <TR>
278 <td>eccentric-h.bmp</td>
279 <TD>400</TD>
280 <TD>40</TD>
281 <TD>160</TD>
282 <TD>1.0</TD>
283 <TD>73.489</TD>
284 <TD>73.330</TD>
285 <TD>-0.216%</TD>
286
287 </TR>
288 <TR>
289 <td>eccentric-i.bmp</td>
290 <TD>1600</TD>
291 <TD>160</TD>
292 <TD>640</TD>
293 <TD>1.0</TD>
294 <TD>73.489</TD>
295 <TD>73.330</TD>
296 <TD>-0.216 %</TD>
297
298 </TR>
299 <TR>
300 <td>eccentric-j.bmp</td>
301 <TD>500</TD>
302 <TD>100</TD>
303 <TD>50</TD>
304 <TD>1.0</TD>
305 <TD>93.943</TD>
306 <TD>93.961</TD>
307 <TD>+0.019 %</TD>
308
309 </TR>
310 <TR>
311 <td>eccentric-k.bmp</td>
312 <TD>500</TD>
313 <TD>100</TD>
314 <TD>0</TD>
315 <TD>1.0</TD>
316 <TD>96.499</TD>
317 <TD>96.524</TD>
318 <TD>+0.019 %</TD>
319
320 </TR>
321 <TR>
322 <td>eccentric-l.bmp</td>
323 <TD>500</TD>
324 <TD>50</TD>
325 <TD>100</TD>
326 <TD>1.0</TD>
327 <TD>127.467</TD>
328 <TD>127.524</TD>
329 <TD>+0.045 %</TD>
330
331 </TR>
332
333 <TR>
334 <td>eccentric-m.bmp</td>
335 <TD>500</TD>
336 <TD>50</TD>
337 <TD>50</TD>
338 <TD>1.0</TD>
339 <TD>135.586</TD>
340 <TD>135.654</TD>
341 <TD>+0.050 %</TD>
342
343 </TR>
344
345 <TR>
346 <td>eccentric-n.bmp</td>
347 <TD>400</TD>
348 <TD>40</TD>
349 <TD>20</TD>
350 <TD>1.0</TD>
351 <TD>137.451</TD>
352 <TD>137.519</TD>
353 <TD>+0.049 %</TD>
354
355 </TR>
356
357
358
359 </TABLE><p><br clear="all"><br>
360
361 <ol>
362         <li>These results were produced with version 4.6.0 of atlc. Results from other versions will probably differ, as efforts are made to further improve atlc.</li>
363         <li>Due to their large size, the eccentric-?.bmp coax files are not distributed, but you could make them and compute their impedances like this. Add the -v option to create_bmp_for_circ_in_circ (as in example eccentric-d.bmp) if you want the theoretical results printed.
364
365 <pre><CODE>
366 create_bmp_for_circ_in_circ 500 400 40 2.2 eccentric-a.bmp &amp&amp atlc -d caff00=2.15 eccentric-a.bmp
367 create_bmp_for_circ_in_circ 400 320 0 1 eccentric-b.bmp &amp&amp atlc eccentric-b.bmp
368 create_bmp_for_circ_in_circ 500 100 100 10 eccentric-c.bmp &amp&amp atlc -d caff00=10 eccentric-c.bmp
369 create_bmp_for_circ_in_circ -v 500 200 100 1 eccentric-d.bmp &amp&amp atlc
370 create_bmp_for_circ_in_circ 500 200 10 1 eccentric-e.bmp &amp&amp atlc
371 create_bmp_for_circ_in_circ 400 160 0 1 eccentric-f.bmp &amp&amp atlc
372 create_bmp_for_circ_in_circ 400 40 12 5 eccentric-g.bmp &amp&amp atlc -d caff00=5 eccentric-g.bmp
373 create_bmp_for_circ_in_circ 400 400 160 1 eccentric-h.bmp &amp&amp atlc
374 etc. </CODE>
375 </pre>
376 </li>
377 <li> If you add the <code>-v</code> option to <code>create_bmp_for_circ_in_circ</code>, it will print the <strong>exact</strong> theoretical values for you too. 
378 </li>
379 <LI>If you only want to compute the impedance of an offset coax, without actually creating the bitmap, the program coax can be used, if you supply the <code>-o offset</code> option. For example:
380 <pre>
381 coax -o 40 400 500 1
382 Zo =         8.038255 Ohms
383 </pre>
384 <LI>Since there is an exact answer to this geometry, even when the inner is offset, there is not a lot of point in spending seconds or minutes running <code>atlc</code> to come an approximate numerical answer, when you can compute an exact one in a small fraction of a second. However, using atlc to compute a few of these gives you confidence atlc is working properly.</LI>
385 </ol>
386
387 <p>
388
389
390
391
392
393 <!-- Section 1.3 *** Comparisions between atlc and a symmetrical strip transmission line  -->
394
395
396
397
398
399 <H3><a name="Accuracy_symmetrical_strip" ><strong>1.3 Comparisions between atlc and a symmetrical strip transmission line</strong></A></H3>
400 Another obvious test to determine the performance of atlc with two conductors and one dielectric is a symmetrical strip transmission line - see diagramme below. <p>
401 <img src="jpgs/symmetrical_strip.jpg" ALT="Symmetrical Strip Transmission Line"><p>
402 This has an exact analytical solution, dependent on the ratio of the 
403 width of the inner conductor w, to the distance between the two outer 
404 conductors H.  This assumes that the outer conductors extend to plus 
405 and minus infinity and the inner conductor is infinitely thin. This 
406 structure has the advantage of requiring no curves, so can be 
407 represented accurately with the square grid used in <CODE>atlc.</CODE> </p>
408 <p>
409 However, its impossible to have an inner conductor that is less than 1 pixel 
410 high and it is impossible to make the dimension W infinitely wide as it 
411 was take an infinite amount of disk space, RAM and CPU time. However, if 
412 the width W is made at least 4xH+w, then making it any larger does not 
413 seem to have much affect on the result.</p>
414 The <code>-i</code> option to <CODE>create_bmp_for_symmetrical_stripline</code>,
415 forces the width
416 W to be equal to 4 times the internal height plus the inner conductor's 
417 width w (unless the user specified a larger value of W). Hence, when
418 the <code>-i</code> option is used, a valid test of <code>atlc</code>'s 
419 accuracy can be made<br>
420 Without the <code>-i</code> option, you can made the width W and height 
421 H any value
422 you want above &gt;=5 pixels, although H must be odd, for the inner conductor
423 to fit equally between the two outer confuctors. As always, the bitmaps created  
424 are 10 pixels higher and 10 pixels wider, to enforce a green metallic boundary that is cleraly visable. 
425 <br>
426 <br>
427 <CODE>create_bmp_for_symmetrical_stripline -vv -i 0 201 290 50-201.bmp<br>
428 <br>
429 For this to be a valid test of atlc, the width should be<br>
430 infinite. Since you used the -i option (indicationg you<br>
431 want the width W to effectively infinite, W must exceed w + 4xH.<br>
432 Therefore W has been is set to 1134<br>
433 w=290 H=201 w/H=1.442786 xo=23.7538<br>
434 Zo is theoretically 49.989477 Ohms (assuming W is infinite)<br>
435 <br>
436 </code>
437 <p>
438 This structure, which has a w/H value of 1.442786, has a theoretical impedance close to 50 Ohms (49.989477 to be precise). Version 4.6.0 of <code>atlc</code> calculates this to be 49.899 Ohms, an error of -0.181%, when using a  grid 1134x201.</p>
439
440 <TABLE border align="left">
441 <TR>
442 <TD><STRONG>Filename</STRONG></TD>
443 <TD><STRONG>W</STRONG></TD>
444 <TD><STRONG>H</STRONG></TD>
445 <TD><STRONG>w</STRONG></TD>
446 <TD><STRONG>w/H</STRONG></TD>
447 <TD><STRONG>Zo<sup>exact</sup></STRONG></TD>
448 <TD><STRONG>Zo<sup>atlc</sup></STRONG></TD>
449 <TD><STRONG>Error</STRONG></TD>
450 <TD><STRONG>Time</STRONG></TD>
451 </TR>
452
453 <TR>
454 <TD>25ohm-201h.bmp</TD>
455 <TD>1512</TD>
456 <TD>201</TD>
457 <TD>668</TD>
458 <TD>3.3234</TD>
459 <TD>25.018</TD>
460 <TD>24.932</TD>
461 <TD>-0.344 %</TD>
462 <TD>0h:00m:46s</TD>
463 </TR>
464
465 <TR>
466 <TD>25ohm-401h.bmp</TD>
467 <TD>2978</TD>
468 <TD>401</TD>
469 <TD>1334</TD>
470 <TD>3.3267</TD>
471 <TD>24.996</TD>
472 <TD>24.940</TD>
473 <TD>-0.224%</TD>
474 <TD>0h:08m:52s</TD>
475 </TR>
476
477 <TR>
478 <TD>25ohm-801h.bmp</TD>
479 <TD>6000</TD>
480 <TD>801</TD>
481 <TD>2664</TD>
482 <TD>3.3267</TD>
483 <TD>25.001</TD>
484 <TD>24.935</TD>
485 <TD>-0.264%</TD>
486 <TD>1h:49m:46s</TD>
487 </TR>
488
489 <TR>
490 <td>50ohm-201h.bmp</td>
491 <TD>1134</TD>
492 <TD>201</TD>
493 <TD>290</TD>
494 <TD>1.42786</TD>
495 <TD>49.989</TD>
496 <TD>49.899</TD>
497 <TD>-0.180%</TD>
498 <TD>0h:00m:37s</TD>
499 </TR>
500
501 <TR>
502 <TD>50ohm-401h.bmp</TD>
503 <TD>2222</TD>
504 <TD>401</TD>
505 <TD>578</TD>
506 <TD>1.4419</TD>
507 <TD>50.026</TD>
508 <TD>49.944</TD>
509 <TD>-0.164%</TD>
510 <TD>0h:07m:16s</TD>
511 </TR>
512
513 <TR>
514 <TD>50ohm-801h.bmp</TD>
515 <TD>4399</TD>
516 <TD>801</TD>
517 <TD>1155</TD>
518 <TD>1.4419</TD>
519 <TD>50.012</TD>
520 <TD>49.878</TD>
521 <TD>-0.268%</TD>
522 <TD>1h:46m:31</TD>
523 </TR>
524
525
526 <TR>
527 <TD>100ohm-201h.bmp</TD>
528 <TD>945</TD>
529 <TD>201</TD>
530 <TD>101</TD>
531 <TD>0.5025</TD>
532 <TD>100.161</TD>
533 <TD>100.319</TD>
534 <TD>+0.158%</TD>
535 <TD>0h:00m:34s</TD>
536
537 </TR>
538
539 <TR>
540 <TD>100ohm-401h.bmp</TD>
541 <TD>1846</TD>
542 <TD>401</TD>
543 <TD>202</TD>
544 <TD>0.5037</TD>
545 <TD>100.02</TD>
546 <TD>99.998</TD>
547 <TD>-0.022%</TD>
548 <TD>0h:06m:42s</TD>
549
550 </TR>
551 <TR>
552 <TD>100ohm-801h.bmp</TD>
553 <TD>3647</TD>
554 <TD>801</TD>
555 <TD>403</TD>
556 <TD>0.5037</TD>
557 <TD>100.09</TD>
558 <TD>99.857</TD>
559 <TD>-0.233%</TD>
560 <TD>1h:29m:17s</TD>
561
562 </TR>
563
564 <TR>
565 <TD>200ohm-201h.bmp</TD>
566 <TD>862</TD>
567 <TD>201</TD>
568 <TD>18</TD>
569 <TD>0.0896</TD>
570 <TD>200.81</TD>
571 <TD>204.210</TD>
572 <TD>+1.693%</TD>
573 <TD>0h:0m:31s</TD>
574
575 </TR>
576 <TR>
577 <TD>200ohm-401h.bmp</TD>
578 <TD>1680</TD>
579 <TD>401</TD>
580 <TD>36</TD>
581 <TD>0.08978</TD>
582 <TD>200.669</TD>
583 <TD>201.844</TD>
584 <TD>+0.586%</TD>
585 <TD>0h:06m:22s</TD>
586 </TR>
587
588 <TR>
589 <TD>200ohm-801h</TD>
590 <TD>3317</TD>
591 <TD>801</TD>
592 <TD>73</TD>
593 <TD>0.09114</TD>
594 <TD>199.771</TD>
595 <TD>199.734</TD>
596 <TD>-0.019%</TD>
597 <TD>1h:23m:08s</TD>
598 </TR>
599
600 <TR>
601 <TD>400ohm-1551h</TD>
602 <TD>6439</TD>
603 <TD>1551</TD>
604 <TD>5</TD>
605 <TD>0.00322</TD>
606 <TD>400.040</TD>
607 <TD>417.700</TD>
608 <TD>+4.415%</TD>
609 <TD>12h:20m:50s</TD>
610 </TR>
611
612
613 <TR>
614 <TD>400ohm-76610h</TD>
615 <TD>31109</TD>
616 <TD>7750</TD>
617 <TD>25</TD>
618 <TD>0.00323</TD>
619 <TD>400.085</TD>
620 <TD></TD>
621 <TD>%</TD>
622 <TD></TD>
623 </TR>
624
625 </TABLE>
626 <p><br clear="all">
627 Notes:
628 <br>
629 <OL>
630 <li>These results were produced with version 4.6.0 of atlc. Results from other versions will probably differ, as efforts are made to further improve atlc.</li>
631 <LI>For the same sepparation between the two outer conductors h, the width of the inner conductor w decreases as the impedance of the line is increased. When this width w is too small, accuracy suffers. In order to get reasonable accuracy it is essential to use sufficient pixels for the width of the conductor w.</LI>
632 <LI>Run times are given when compiled single-threaded, with <code>gcc-3.2.2</code> on a Sun Ultra 80 workstation with 4x450 MHz CPUs and 4 GB of RAM. Compiler options of <code>-O2 -g</code> were used.</LI> <LI>Only 1 CPU in the Ultra 80 would have been used, since <code>atlc</code>
633 was compiled single-threaded.</LI>
634 <LI>
635 The -s and -S options were given to <code>atlc</code> so that it did
636 not create bitmap files. Without these options, run times would be a
637 little longer, due to the time to write the files to disk. </LI>
638 <LI>Compiled as a multi-threaded application to use all 4 CPUs in a Sun
639 Ultra 80, the run times reduce by a factor of approximately 3.5.</LI>
640 <LI>The result for the first 400 Ohm transmission line analysed (400ohm-1551h.bmp) is very poor (3.5% error)
641 since only 5 pixels could be used for the width of the inner conductor.
642 The results from this test are not included when calculating the overall
643 accuracy of atlc, since using only 5 pixels is not a fair test.
644 An attempt at using 25 pixels for the inner conductor's width, where accuracy should
645 have been better, created a 689 MB bitmap file, which could not be analysed, as
646 the RAM in the computer (2 GB) was insufficient, although this might be tried later since the computer has since been upgraded.</LI>
647 </OL>
648
649 <H2><a name="section_2">Section 2</a>. Two-conductor Transmission Lines with a non-uniform dielectric</h2>
650 Destermining altc's accurarcy with multiple-dielectrics is not easy, as there are few analytical methods. The only one known in dual dielectric coax. At a later date some comparisions will be made to commerical software if this is possible.
651
652
653
654
655
656
657
658 <!-- Section 2.1 **** Comparision of atlc and a dual dielectric coaxial cable -->
659
660
661
662
663
664
665
666 <H3>2.1 Comparision of atlc and a dual dielectric coaxial cable</H3>
667
668 A coaxial cable with two concentric dielectrics like that below<br>
669 <img src="jpgs/dual-dielectric-coax.jpg" ALT="dual dielectric coaxial line" align="left">
670
671 <br clear="all">
672 <p>has an exact analytical solution. The red is the inner conductor, the green forms the outer conductor. The light blue and orange regions are both dielectrics, neither of which are one of atlc's <a href="colours.html">predefined colours</a>, so the dielectric constant of both must be set by issuing the -d option to atlc. (The light blue in this image, is not to be confused with the light blue that is pre-defined for PTFE with a dielectric constant of 2.1).</p>
673 <p>A small program called <code>dualcoax</code> can be used to compute the impedance of a dual coaxial cable. If the diameter of the inner conductor is 135, the inner dielectric 337, the internal diameter of the outer conductor is 401, the permittivity of the inner dielectric 2.0 and the outer dielectric 3.0, then:
674 <br><br>
675 <code>$ dualcoax 135 337 401 2.0 3.0</code>
676 <br><br>
677 will compute the impedance, which is 44.912 Ohms. 
678  <br clear="all">
679
680 The following table shows the impedances for various values of permittivity of both the inner and outer dielectrics. Note that changing the relative permittivity of the outer conductor has little effect, as it is quite thin, whereas the outer dielectric is much thicker and so has more effect on the impedance. 
681 <table border align="left">
682 <tr>
683 <td>Filename</td>
684 <td>D1</td>
685 <td>D2</td>
686 <td>D3</td>
687 <td><strong><font color="#fd8a11">Er<sub>inner</sub></font></strong></td>
688 <td><strong><font color="#8b8dff">Er<sub>outer</sub></font></strong></td>
689 <td>Zo(theory)</td>
690 <td>Zo(atlc)</td>
691 <td>Error</td>
692 <td>Time</td>
693
694 </tr>
695
696 <tr>
697 <td>dual-dielectric-coax.bmp</td>
698 <td>156</td>
699 <td>400</td>
700 <td>500</td>
701 <td>1.0</td>
702 <td>1.0</td>
703 <td>69.837</td>
704 <td>69.848</td>
705 <td>+0.017%</td>
706 <td>0h:00m:59s</td>
707
708 </tr>
709
710 <tr>
711 <td>dual-dielectric-coax.bmp</td>
712 <td>156</td>
713 <td>400</td>
714 <td>500</td>
715 <td>3.0</td>
716 <td>1.0</td>
717 <td>47.420</td>
718 <td>46.681</td>
719 <td>-1.559%</td>
720 <td>0h:04m:35s</td>
721 </tr>
722
723 <tr>
724 <td>dual-dielectric-coax.bmp</td>
725 <td>156</td>
726 <td>400</td>
727 <td>500</td>
728 <td>10.0</td>
729 <td>1.0</td>
730 <td>36.451</td>
731 <td>35.839</td>
732 <td>-1.679 %</td>
733 <td>0h:10m:17s</td>
734 </tr>
735
736 <tr>
737 <td>dual-dielectric-coax.bmp</td>
738 <td>156</td>
739 <td>400</td>
740 <td>500</td>
741 <td>30.0</td>
742 <td>1.0</td>
743 <td>32.647</td>
744 <td>32.314</td>
745 <td>-1.020%</td>
746 <td>0h:17m:53s</td>
747
748 </tr>
749
750 <tr>
751 <td>dual-dielectric-coax.bmp</td>
752 <td>156</td>
753 <td>400</td>
754 <td>500</td>
755 <td>1000000.0</td>
756 <td>1.0</td>
757 <td>30.568</td>
758 <td>30.330</td>
759 <td>-0.779 %</td>
760 <td>1h:18m:17s</td>
761 </tr>
762 <tr>
763 <td>dual-dielectric-coax.bmp</td>
764 <td>156</td>
765 <td>400</td>
766 <td>500</td>
767 <td>1.0</td>
768 <td>2.0</td>
769 <td>66.408</td>
770 <td>65.974</td>
771 <td>+0.658%</td>
772 <td>0h:02m:01s</td>
773 </tr>
774 <tr>
775 <td>dual-dielectric-coax.bmp</td>
776 <td>156</td>
777 <td>400</td>
778 <td>500</td>
779 <td>1.0</td>
780 <td>1000000.0</td>
781 <td>62.792</td>
782 <td>62.727</td>
783 <td>-0.014%</td>
784 <td>0h:10m:02s</td>
785 </tr>
786
787 <tr>
788 <td>dual-dielectric-coax.bmp</td>
789 <td>156</td>
790 <td>400</td>
791 <td>500</td>
792 <td>2.5</td>
793 <td>3.5</td>
794 <td>42.943</td>
795 <td>42.858</td>
796 <td>-0.198 %</td>
797 <td>0h:01m:55s</td>
798 </tr>
799
800
801 </table>
802 <br clear="all">
803 Notes:
804 <OL>
805 <LI>These results were produced with version 4.6.0 of <code>atlc</code>.</LI>
806 <LI>
807 To compute these results, one must run atlc with the -d option to define what the relative dielectric constant for each colour, as described in the section on <a href="colours.html">producing suitable bitmaps</a>. The light blue colour has a hex representation of 0x8b8dff and the orange is 0xfd8a11. So for the last entry in the table, one would run<br><br>
808 <code>$ atlc -d fd8a11=2.5 -d 8b8dff=3.5 dual-dielectric-coax.bmp</code>
809 </LI>
810 </OL>
811 <br clear="all">
812 Ckearly the accuracy of atlc with multiple dielectrics is lower than that with a single dielectric, where typical errors are around 0.1%. This is believed to be due to the fact the equations used when there are multiple dielectrics are not precise and in a later version it is hoped to refine the equations, so accuracy improves. 
813
814
815
816
817  <H2><a name="Section_3_Accuracy_coupler">Section 3. Accuracy of <CODE>atlc</CODE> with coupled lines</a></H2>
818 Testing the accuracy of <CODE>atlc</CODE> with coupled lines is more difficult that with single isolated lines, since there is to my knowledge only one structure for which exact analytical results exist. For two infinitely thin conductors halfway between two infinitely wide groundplanes (see below)
819 <p>
820 <img src="jpgs/coupler.jpg" ALT="coupled lines" width="400"><p>
821 the odd and even mode impedances can be calculated analytically. If the spacing between the two groundplanes is H, the width of the conductors w, the spacing between the conductors s, and the permittivity of the medium Er, 
822  
823 <pre>
824 ----------^--------------------------------------------------------------
825           |                                               
826           |                &lt;---w---&gt;&lt;-----s----&gt;&lt;---w--&gt;
827           H                ---------            --------         
828           |       Er                               
829           |                               
830 ----------v--------------------------------------------------------------
831 </pre>
832  
833 then, according to the book by Matthaei, Young and Jones called <EM>Microwave Filters, Impedance Matching Networks and Coupling Structures</EM>,  Artech House, Dedham, MA., 1980. the impedances are given by  <p>
834  
835 Zeven=(30*pi/sqrt(er))*(K(ke')/K(ke))<br>
836 Zodd=(30*pi/sqrt(er))*(K(ko')/K(ko))<p>
837
838 K(kx)=complete elliptic integral of the first kind. <p>
839
840 ke=(tanh((pi/2)*(w/H)))*tanh((pi/2)*(w+s)/H)<br>
841 ko=(tanh((pi/2)*(w/H)))*coth((pi/2)*(w+s)/H)<p>
842
843 ke'=sqrt(1-(ke^2))<br>
844 ko'=sqrt(1-(ko^2))<p>
845
846
847 Again, I suspect 30 is just an approximation, like 60 is used in the impedance for coax, and so the values should be:<br><br>
848
849 Zeven=(29.97924580*pi/sqrt(er))*(K(ke')/K(ke))<br>
850 Zodd=(29.97924580*pi/sqrt(er))*(K(ko')/K(ko))<p>
851 <br><br>
852
853
854
855 I'm very grateful to Paul Gili AA1LL / KB1CZP  <a href="mailto:aa1ll@email.com">aa1l@email.com</a>  for providing me with these equations, references and nomographs. 
856 <p>
857 A programme <CODE>create_bmp_for_stripline_coupler</CODE> was written to automatically generate bitmaps given the height H between the groundplanes, the conductor widths w and spacing s. Ideally this needs simulating from -infinity to +infinity, but that is not practical. It was assumed that if the complete structure width W was equal to 2*w+s+8*H that would be adequate (this seemed <EM>about right</EM>, but I've no proof it is optimal). As well as producing a bitmap, <CODE>create_bmp_for_stripline_coupler</CODE>also calculates the theoretical values of impedance. </p>
858 The above were created using the following set of commands
859 <pre>
860 <code>
861 $ create_bmp_for_stripline_coupler -v 1 1 1 1 coupler1.bmp
862 $ create_bmp_for_stripline_coupler -v 1.991 1 1 1 coupler2.bmp
863 $ create_bmp_for_stripline_coupler -v 3 1 1 1 coupler3.bmp
864 $ create_bmp_for_stripline_coupler -v 5 1 1 1 coupler4.bmp
865 $ create_bmp_for_stripline_coupler -v 1 1 0.5 1 coupler5.bmp
866 $ create_bmp_for_stripline_coupler -v 1 1 0.099 1 coupler6.bmp
867 $ create_bmp_for_stripline_coupler -v 0.25 1.19 1.34 2.2 coupler7.bmp
868 </code>
869 </pre>
870
871 <TABLE border align="left">
872 <TR>
873 <TD><STRONG>Filename</STRONG></TD>
874 <TD><STRONG>H</STRONG></TD>
875 <TD><STRONG>w</STRONG></TD>
876 <TD><STRONG>s</STRONG></TD>
877 <TD><STRONG>Er</STRONG></TD>
878 <TD><STRONG>Zodd<sup>theory</sup></STRONG></TD>
879 <TD><STRONG>Zodd<sup>atlc</sup></STRONG></TD>
880 <TD><STRONG>Error<sup>odd</sup></STRONG></TD>
881 <TD><STRONG>Zeven<sup>theory</sup></STRONG></TD>
882 <TD><STRONG>Zeven<sup>atlc</sup></STRONG></TD>
883 <TD><STRONG>Error<sup>even</sup></STRONG></TD>
884 </TR>
885 <TR>
886 <TD>coupler1.bmp</TD>
887
888 <TD>1.0</TD>
889 <TD>1.0</TD>
890 <TD>1.0</TD>
891 <TD>1.0</TD>
892 <TD>64.723</TD>
893 <TD>64.308</TD>
894 <TD>-0.641%</TD>
895 <TD>65.969</TD>
896 <TD>65.540</TD>
897 <TD>-0.300%</TD>
898 </TR>
899 <TR>
900 <TD>coupler2.bmp</TD>
901 <TD>1.991</TD>
902 <TD>1.0</TD>
903 <TD>1.0</TD>
904 <TD>1.0</TD>
905 <TD>93.056</TD>
906 <TD>92.711</TD>
907 <TD>-0.371%</TD>
908 <TD>106.830</TD>
909 <TD>106.437</TD>
910 <TD>-0.368%</TD>
911 </TR>
912 <TR>
913 <TD>coupler3.bmp</TD>
914 <TD>3.0</TD>
915 <TD>1.0</TD>
916 <TD>1.0</TD>
917 <TD>1.0</TD>
918 <TD>105.409</TD>
919 <TD>105.072</TD>
920 <TD>-0.320%</TD>
921 <TD>139.670</TD>
922 <TD>139.091</TD>
923 <TD>-0.415%</TD>
924 </TR>
925 <TR>
926 <TD>coupler4.bmp</TD>
927 <TD>5.0</TD>
928 <TD>1.0</TD>
929 <TD>1.0</TD>
930 <TD>1.0</TD>
931 <TD>114.237</TD>
932 <TD>114.217</TD>
933 <TD>-0.018%</TD>
934 <TD>189.135</TD>
935 <TD>188.629</TD>
936 <TD>-0.268%</TD>
937 </TR>
938 <TR>
939 <TD>coupler5.bmp</TD>
940 <TD>1.0</TD>
941 <TD>1.0</TD>
942 <TD>0.5</TD>
943 <TD>1.0</TD>
944 <TD>62.133</TD>
945 <TD>61.887</TD>
946 <TD>-0.396%</TD>
947 <TD>68.215</TD>
948 <TD>67.941</TD>
949 <TD>-0.402%</TD>
950 </TR>
951 <TR>
952 <TD>coupler6.bmp</TD>
953 <TD>1.0</TD>
954 <TD>1.0</TD>
955 <TD>.099</TD>
956 <TD>1.0</TD>
957 <TD>50.614</TD>
958 <TD>50.546</TD>
959 <TD>-0.134%</TD>
960 <TD>74.377</TD>
961 <TD>73.883</TD>
962 <TD>-0.664%</TD>
963 </TR>
964 <TR>
965 <TD>coupler7.bmp</TD>
966 <TD>0.25</TD>
967 <TD>1.19</TD>
968 <TD>1.34</TD>
969 <TD>2.2</TD>
970 <TD>12.208</TD>
971 <TD>12.062</TD>
972 <TD>-1.196%</TD>
973 <TD>12.208</TD>
974 <TD>12.062</TD>
975 <TD>-1.196%</TD>
976 </TR>
977 </TABLE>
978
979 <p><br clear="all">
980 Note:
981 <ol>
982 <LI>The data was collected with version 4.6.0 of atlc. As always, the data may change with later versions of atlc, as the code is further improved. </LI>
983 <LI>The theoretical impedance quoted are for the dimensions in the table. The actual bitmap produced will frequently not be the same as it's impossible to represent perfectly an arbitrary grid on a grid with finite resolution. The program <code>create_bmp_for_stripline_coupler</code> also computes the theoretical valus for the actual grid generated, but these have not been used.</LI>
984 <LI>There seems to be some systematic error for this coupler, as the impedances determined by atlc are always below the theoretical values. The source of this error will be investigated. It is clear that the error decreases as the height h is increased.</LI>
985 <LI>Run times quoted are for a Sun Ultra 80 with 4 x 450 MHz and 4 Gb RAM, running Solaris 9. The compiler was gcc-3.2.2 with compiler options <code>-O2 -g</code>.</LI>
986 </ol>
987
988 <H2>Section 4. Conclusions about the accuracy of atlc</H2>
989 <p>Looking at the above data it is clear that on some structures (such as a standard coaxial cable or an eccentric cable, the accuracy of atlc is excellent. Of the 21 tests for these structures, 18 had errors of below 0.1% and the other three had errors below 0.25%. Each structure is round, with a minimum diamater of 25 pixels. The outside edge has around Pi*25=79 pixels to reprsent it, so errors due to quantising the electric field are quite small. </p>
990 <p>Of the three results for coaxial and eccentric cables that show errors over 0.1%, the reasons are not had to understand. File <a href="accuracy.html#coax-500-25.bmp">coax-500-25.bmp</a> has the smallest number of pixels for the centre conductor in any of the standard coaxial cables. With the smallest number of pixels (a diameter of 25 and a circumference of 78 pixels), the errors can be expected to be highest. It is likely the errors could be reduced by making conductors larger, but there is no point, as the error (just 0.244%) are negligable. 
991
992
993
994
995 You can't expect to accurately model any structure where one of the critical dimensions is represented by too few pixels. </p>
996
997 <p>Clearly if any dimention needs to be reprsented by 5.4 pizels, the nearest number is 5 pixels, so immediately an error of 8% has been introduced. But since the electric field (which varies continuously) is only computed at 5 places, the true varition can't be known accurately. </p>
998
999 <p> <strong>As a rule of thumb, try to keep any critital dimension to at least 25 pixels. </strong></p>
1000
1001 <a href="http://atlc.sourceforge.net">Return to the atlc homepage</a>
1002
1003 <br><br>
1004 atlc 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>
1005 <br>
1006 <BR>
1007 <BR>
1008
1009 <A href="http://sourceforge.net"> <IMG
1010 src="http://sourceforge.net/sflogo.php?group_id=25836&amp;type=5"
1011 width="210" height="62" border="0" alt="SourceForge.net
1012 Logo"></A><a href="http://validator.w3.org/check/referer"><img border="0"
1013 src="valid-html40.gif"
1014 alt="Valid HTML 4.01!" height="31" width="88"></a>
1015 <a href="http://bluefish.openoffice.nl/"><img SRC="jpgs/bluefish.jpg" WIDTH="88" HEIGHT="31" ALT="Bluefish"></a>
1016
1017
1018 <p>The following is a trap for smammers, so they can gather loads of ficticious email address, so don't click<a href="http://homepage.ntlworld.com/drkirkby/list1.html"> anywhere</a>
1019 <a href="http://homepage.ntlworld.com/drkirkby/list2.html"> o</a>
1020 <a href="http://homepage.ntlworld.com/drkirkby/list3.html">n</a>
1021 <a href="http://homepage.ntlworld.com/drkirkby/list4.html"> this</a>
1022 <a href="http://homepage.ntlworld.com/drkirkby/list5.html"> line</a>
1023 <a href="http://homepage.ntlworld.com/drkirkby/list6.html"> th</a>
1024 <a href="http://homepage.ntlworld.com/drkirkby/list7.html"> anks.</a>
1025 </body>
1026 </html>