In order to test the accuracy of
atlc, some simple geometries were devised, for which there are known exact closed-form analytical solutions. To date, all tests have yielded acceptable accuracy. Out of 48 tests, the higest error measured is 3.05%, with typical errors around 0.1
% to 0.3%. However, note that in most cases where the error is over 1% (which is very rare), is is clearly very obvious why it is. The conclusions at the end explain the reason for the higher errors observered in some simulations.
An obvious structure to test atlc with two conductor and a single dielectric is the round coaxial cable, which has an impedance:
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).
Circular conductors can never be defined exactly using a square grid, so differences between the exact answer and
atlc's answer are due to:
|Filename||D||d||Er||Zo (theory)||Zo (
|coax-500-400.bmp||500||400||1.0||13.379||13.381||+ 0.020 %||0m:11s|
% coax 32 120 2.2
According to the book Microwave and Optical Components, Volume 1, - Microwave Passive and Antenna Components, 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.
60 loge(x+sqrt(x^2-1)) where x=(d2+D2-4 O2)/(2*D*d)
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.
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:
59.9585 loge(x+sqrt(x^2-1)) /sqrt(Er) where x=(d2+D2-4 O2)/(2*D*d)
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 create_bmp_for_circ_in_circ was used to generate a number of bitamps quickly with the following diameters and offsets.
|Filename||D||d||O||Er||Zo (theory)||Zo (
create_bmp_for_circ_in_circ 500 400 40 2.2 eccentric-a.bmp && atlc -d caff00=2.15 eccentric-a.bmp create_bmp_for_circ_in_circ 400 320 0 1 eccentric-b.bmp && atlc eccentric-b.bmp create_bmp_for_circ_in_circ 500 100 100 10 eccentric-c.bmp && atlc -d caff00=10 eccentric-c.bmp create_bmp_for_circ_in_circ -v 500 200 100 1 eccentric-d.bmp && atlc create_bmp_for_circ_in_circ 500 200 10 1 eccentric-e.bmp && atlc create_bmp_for_circ_in_circ 400 160 0 1 eccentric-f.bmp && atlc create_bmp_for_circ_in_circ 400 40 12 5 eccentric-g.bmp && atlc -d caff00=5 eccentric-g.bmp create_bmp_for_circ_in_circ 400 400 160 1 eccentric-h.bmp && atlc etc.
create_bmp_for_circ_in_circ, it will print the exact theoretical values for you too.
-o offsetoption. For example:
coax -o 40 400 500 1 Zo = 8.038255 Ohms
atlcto 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.
This has an exact analytical solution, dependent on the ratio of the
width of the inner conductor w, to the distance between the two outer
conductors H. This assumes that the outer conductors extend to plus
and minus infinity and the inner conductor is infinitely thin. This
structure has the advantage of requiring no curves, so can be
represented accurately with the square grid used in
However, its impossible to have an inner conductor that is less than 1 pixel high and it is impossible to make the dimension W infinitely wide as it was take an infinite amount of disk space, RAM and CPU time. However, if the width W is made at least 4xH+w, then making it any larger does not seem to have much affect on the result.The
create_bmp_for_symmetrical_stripline, forces the width W to be equal to 4 times the internal height plus the inner conductor's width w (unless the user specified a larger value of W). Hence, when the
-ioption is used, a valid test of
atlc's accuracy can be made
-ioption, you can made the width W and height H any value you want above >=5 pixels, although H must be odd, for the inner conductor to fit equally between the two outer confuctors. As always, the bitmaps created are 10 pixels higher and 10 pixels wider, to enforce a green metallic boundary that is cleraly visable.
create_bmp_for_symmetrical_stripline -vv -i 0 201 290 50-201.bmp
For this to be a valid test of atlc, the width should be
infinite. Since you used the -i option (indicationg you
want the width W to effectively infinite, W must exceed w + 4xH.
Therefore W has been is set to 1134
w=290 H=201 w/H=1.442786 xo=23.7538
Zo is theoretically 49.989477 Ohms (assuming W is infinite)
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
atlc calculates this to be 49.899 Ohms, an error of -0.181%, when using a grid 1134x201.
gcc-3.2.2on a Sun Ultra 80 workstation with 4x450 MHz CPUs and 4 GB of RAM. Compiler options of
-O2 -gwere used.
atlcwas compiled single-threaded.
atlcso that it did not create bitmap files. Without these options, run times would be a little longer, due to the time to write the files to disk.
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 predefined colours, 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).
A small program called
dualcoax 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:
$ dualcoax 135 337 401 2.0 3.0
will compute the impedance, which is 44.912 Ohms.
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.
$ atlc -d fd8a11=2.5 -d 8b8dff=3.5 dual-dielectric-coax.bmp
atlcwith coupled lines
atlcwith 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)
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,
----------^-------------------------------------------------------------- | | <---w---><-----s----><---w--> H --------- -------- | Er | ----------v--------------------------------------------------------------then, according to the book by Matthaei, Young and Jones called Microwave Filters, Impedance Matching Networks and Coupling Structures, Artech House, Dedham, MA., 1980. the impedances are given by
K(kx)=complete elliptic integral of the first kind.
Again, I suspect 30 is just an approximation, like 60 is used in the impedance for coax, and so the values should be:
I'm very grateful to Paul Gili AA1LL / KB1CZP email@example.com for providing me with these equations, references and nomographs.
create_bmp_for_stripline_coupler 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 about right, but I've no proof it is optimal). As well as producing a bitmap,
create_bmp_for_stripline_coupleralso calculates the theoretical values of impedance.
$ create_bmp_for_stripline_coupler -v 1 1 1 1 coupler1.bmp $ create_bmp_for_stripline_coupler -v 1.991 1 1 1 coupler2.bmp $ create_bmp_for_stripline_coupler -v 3 1 1 1 coupler3.bmp $ create_bmp_for_stripline_coupler -v 5 1 1 1 coupler4.bmp $ create_bmp_for_stripline_coupler -v 1 1 0.5 1 coupler5.bmp $ create_bmp_for_stripline_coupler -v 1 1 0.099 1 coupler6.bmp $ create_bmp_for_stripline_coupler -v 0.25 1.19 1.34 2.2 coupler7.bmp
create_bmp_for_stripline_coupleralso computes the theoretical valus for the actual grid generated, but these have not been used.
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.
Of the three results for coaxial and eccentric cables that show errors over 0.1%, the reasons are not had to understand. File coax-500-25.bmp 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. You can't expect to accurately model any structure where one of the critical dimensions is represented by too few pixels.
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.
As a rule of thumb, try to keep any critital dimension to at least 25 pixels.Return to the atlc homepage
The following is a trap for smammers, so they can gather loads of ficticious email address, so don't click anywhere o n this line th anks.