**Rectangular Radio Antenna and eTCL Slot Calculator Demo Example** This page is under development. Comments are welcome, but please load any comments in the comments section at the bottom of the page. Please include your wiki MONIKER in your comment with the same courtesy that I will give you. Its very hard to reply intelligibly without some background of the correspondent. Thanks,[gold] ---- <> [gold] Here is some eTCL starter code for calculating rectangular antennas from source frequency and other dimensions. The efficiency rating can be compared with a fraction of useful work in an eTCL calculator, developed from antenna calculations. The impetus for these calculations was checking rated efficiency in rectangular antennas. Most of the testcases involve modeled data, using assumptions and rules of thumb . The hentenna is a rectangular radio antenna with a cross bar tie for antenna leads. The original hentenna was designed for short wave frequencies on the order of 20 to 50 megahertz. Given a design frequency in megahertz, the various dimensions and proportions of the radio antenna are cut at heigth of wavelength(1/2), width of wavelength(1/6), and cross tie of wavelength(1/10). For simplified calculations, the radio wavelength in meters is equal to the speed_of_light in kilometers per second (300) over the radio frequency in megahertz. For an example of a receiving antenna for 100 megahertz and rounded numbers, the expressions below can be pasted into the eTCL console: ====== namespace path {::tcl::mathop ::tcl::mathfunc} set megafrequency 100. set wavelength [/ 300. $megafrequency ] set wavelength2 [/ $wavelength 2.] set wavelength6 [/ $wavelength 6.] set wavelength10 [/ $wavelength 10.] ====== ---- ***Testcases Section*** In planning any software, it is advisable to gather a number of testcases to check the results of the program. The math for the testcases can be checked by pasting statements in the TCL console. Aside from the TCL calculator display, when one presses the report button on the calculator, one will have console show access to the capacity functions (subroutines). **** Testcase 1 **** **** Testcase 4 **** %|quantity| calc output| hand solution | comment |% &| frequency megahertz| 500. | 500. | input |& &| antenna height meters| .3| .91 | output |& &| antenna width meters|.1| .28 | output |& &| tie bar height|.06| .21| output|& %|quantity| calc output| hand solution | comment |% &| frequency megahertz| 144. | 144. | input |& &| antenna height meters| .34| .314 | output |& &| antenna width meters|1.04| .824 | output |& &| tie bar height|.208| .219| output|& %|quantity| calc output| hand solution | comment |% &| frequency megahertz| 99.7| 100. | input |& &| antenna height meters| 1.5| .31 | output |& &| antenna width meters|.5| .11 | output |& &| tie bar height|.3| .6| output|& %|quantity| calc output| hand solution | comment |% &| frequency megahertz| 150| 150 | input |& &| antenna height meters| 1.| .9 | output |& &| antenna width meters|.3| .31 | output |& &| tie bar height|.2| .25| output|& %|quantity| calc output| hand solution | comment |% &| frequency megahertz| 50. | 50. | input |& &| antenna height meters| 3.| 3.1 | output |& &| antenna width meters|1.| .9 | output |& &| tie bar height|.6| .61| output|& ====== ---- ***Screenshots Section*** ****figure 1.**** ****figure 2.**** ****figure 3.**** ****figure 4.**** ****figure 5.**** ---- ***References:*** * Kenyan Ceramic Jiko cooking stove, by Hugh Allen * Endoreversible Thermodynamics, Katharina Wagner, ---- **Appendix Code** ***appendix TCL programs and scripts *** ====== pack .calculator -in .buttons -side top -padx 10 -pady 5 pack .clearallx .cons .about .exit .test4 .test3 .test2 -side bottom -in .buttons grid .frame .buttons -sticky ns -pady {0 10} . configure -background aquamarine4 -highlightcolor brown -relief raised -border 30 wm title . "Heat Engine Combustion Calculator " ====== *** Pushbutton Operation*** ---- For the push buttons, the recommended procedure is push testcase and fill frame, change first three entries etc, push solve, and then push report. Report allows copy and paste from console, but takes away from computer "efficiency". For testcases in a computer session, the eTCL calculator increments a new testcase number internally, eg. TC(1), TC(2) , TC(3) , TC(N). The testcase number is internal to the calculator and will not be printed until the report button is pushed for the current result numbers (which numbers will be cleared on the next solve button.) The command { calculate; reportx } or { calculate ; reportx; clearx } can be added or changed to report automatically, but is not recommended as computer efficiency is impaired. Another wrinkle would be to print out the current text, delimiters, and numbers in a TCL wiki style table as ====== puts " %| testcase $testcase_number | value| units |comment |%" puts " &| volume| $volume| cubic meters |based on length $side1 and width $side2 |&" ====== ---- *** Initial Console Program *** ====== # pretty print from autoindent and ased editor ====== ---- **Comments Section** <> Please place any comments here, Thanks. <> Numerical Analysis | Toys | Calculator | Mathematics| Example