File: create_bmp_for_rect_in_rect.1.html

package info (click to toggle)
atlc 4.6.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 134,508 kB
  • sloc: ansic: 8,452; sh: 4,862; makefile: 1,055; cpp: 64
file content (288 lines) | stat: -rw-r--r-- 11,721 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

</PRE>
<H2>NAME</H2><PRE>
     <B>create_bmp_for_rect_in_rect</B> - bitmap generator for rectangu-
     lar conductor inside rectangular conductor (part of <B>atlc</B>)


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>create_bmp_for_rect_in_rect</B> <B>[options...</B> <B>]</B> <B>W</B> <B>H</B> <B>a</B> <B>b</B> <B>c</B>  <B>d</B>  <B>w</B>  <B>h</B>
     <B>Er1</B> <B>Er2</B> <B>filename.bmp</B>


</PRE>
<H2>WARNING</H2><PRE>
     This man page is not a complete set of documentation  -  the
     complexity  of the atlc project makes man pages not an ideal
     way to document it, although out of completeness, man  pages
     are produced. The best documentation that was current at the
     time the version was produced should be found on  your  hard
     drive, usually at
     /usr/local/share/atlc/docs/html-docs/index.html
     although it might be elsewhere if your system  administrator
     chose  to  install  the package elsewhere. Sometimes, errors
     are  corrected  in   the   documentation   and   placed   at
     http://atlc.sourceforge.net/ before a new release of atlc is
     released.  Please, if you notice a problem with the documen-
     tation - even spelling errors and typos, please let me know.



</PRE>
<H2>DESCRIPTION</H2><PRE>
     <B>create_bmp_for_rect_in_rect</B> is a pre-processor for <B>atlc</B>, the
     finite difference program that is used to calculate the pro-
     perties of a two and three conductor electrical transmission
     line    of    arbitrary    cross    section.   The   program
     <B>create_bmp_for_rect_in_rect</B> is used as a fast  way  of  gen-
     erating  bitmaps  (there  is  no need to use a graphics pro-
     gram), for a rectangular conductor inside a rectangular con-
     ductor, with two dieletrics, like this:

     -----------------------------------------------------  ^
     |                                                   |  |
     |     &lt;--------------d-------------------&gt;          |  |
     |                                                   |  |
     |         &lt;----------w-----------&gt;                  |  |
     |         ------------------------   ^              |  |
     |         |                      |   |              |  |
     |         |  Metallic conductor  |   |              |  H
     |&lt;----b--&gt;|  conductor (can be   |   c   Er1        |  |
     |         |  off-centre)         |   |              |  |
     |         |                      |   |              |  |
     |     ------------------------------------ ^        |  |
     |     |..................................| |        |  |
     |     |...Dielectric, permittivity=Er2...| |        |  |
     |&lt;-a-&gt;|.....(can be off centre ).........| h        |  |
     |     |..................................| |        |  |
     |     |..................................| |        |  |
     -----------------------------------------------------  |
     &lt;---------------------------W-----------------------&gt;

     The parameters 'W' and 'H' and the inner dimensions  of  the
     outer  conductor.  The outer dimensions of the inner conduc-
     tor are 'w' and 'c'. The inner conductor is assumed to  rest
     on  a dielectric (Er2) which is 'd' wide and outer conductor
     an the inner conductor is offset  'b'  from  the  left  hand
     sidewall  of  the  outer conductor. The whole region is sur-
     rounded by a dielectric of relative permittivity 'Er1'.  The
     dielectrics 'Er1' and then 'Er1' and 'Er2' will both be 1.0

     The bitmap is printed to the file  specifiled  as  the  last
     argument

     <B>create_bmp_for_rect_in_rect</B> <B>-f</B> <B>filename.bmp</B> <B>W</B> <B>H</B> <B>a</B> <B>b</B> <B>c</B> <B>d</B> <B>w</B>  <B>h</B>
     <B>Er1</B> <B>Er2</B>

     The bitmaps produced by <B>create_bmp_for_rect_in_rect</B> are  24-
     bit bit colour bitmaps, as are required by <B>atlc</B>.

     The permittivities of the bitmap, set by  'Er1'  and  'Er2',
     determine  the  colours in the bitmap. If Er1 or Er2 is 1.0,
     1.0006, 2.1, 2.2, 2.33, 2.5, 3.3, 3.335, 3.7, 4.8,  10.2  or
     100, then the colour corresponding to that permittivity will
     be set according to the colours defined in COLOURS below. If
     Er1  is  not one of those permittivities, the region of per-
     mittivity Er1 will be set to the colour 0xCAFF00. If Er2  is
     not  one  of those values, then the region of the image will
     be set to the colour 0xAC82AC. The  program  <B>atlc</B>  does  not
     know  what  these  permittivites  are, so they <B>atlc</B>, must be
     told with the comand line option -d, as in example 4 below.


</PRE>
<H2>OPTIONS</H2><PRE>
     <B>-b</B> <B>bitmapsize</B>
     is used to set the size of the bitmap, and so  the  accuracy
     to  which  atlc is able to calculate the transmission line's
     properties. The default value for 'bitmapsize'  is  normally
     4,  although  this  is set at compile time. The value can be
     set anywhere from 1 to 15, but more than 8 is  probably  not
     sensible.

     <B>-f</B> <B>outfile</B>
     Set the output filename. By default, the bitmap is  sent  to
     stdout,  but  it *must* be sent to a file, with this option,
     or as described above.

     <B>-v</B>
     Causes <B>create_bmp_for_rect_in_rect</B> to  print  some  data  to
     stderr. Note, nothing extra goes to standard output, as that
     is expected to be redirected to a bitmap file.



</PRE>
<H2>COLOURS</H2><PRE>
     The 24-bit bitmaps that <B>atlc</B> expects, have 8  bits  assigned
     to  represent the amount of red, 8 for blue and 8 for green.
     Hence there are 256 levels of red, green and blue, making  a
     total of 256*256*256=16777216 colours. Every one of the pos-
     sible 16777216 colours can be defined precisely by the stat-
     ing the exact amount of red, green and blue, as in:

     red         = 255,000,000 or 0xff0000
     green       = 000,255,000 or 0x00ff00
     blue        = 000,000,255 or 0x0000ff
     black       = 000,000,000 or 0x000000
     white       = 255,255,255 or 0xffffff
     Brown       = 255,000,255 or 0xff00ff
     gray        = 142,142,142 or 0x8e8e8e

     Some colours, such as pink, turquoise,  sandy,  brown,  gray
     etc  may mean slightly different things to different people.
     This is not so with <B>atlc</B>, as the program expects the colours
     below  to  be EXACTLY defined as given. Whether you feel the
     colour is sandy or yellow is up to you, but if you use it in
     your  bitmap, then it either needs to be a colour recognised
     by atlc, <B>or</B> you must define it with a  command  line  option
     (see OPTIONS and example 5 below).
     red    = 255,000,000 or 0xFF0000 is the live conductor.
     green  = 000,255,000 or 0x00FF00 is the grounded conductor.
     blue   = 000,000,000 or 0x0000FF is the negative conductor

     All bitmaps <B>must</B> have the live (red)  and  grounded  (green)
     conductor.  The  blue  conductor is not currently supported,
     but it will be used to indicate a negative conductor,  which
     will  be needed if/when the program gets extended to analyse
     directional couplers.

     The following dielectrics are recognised by atlc <B>and</B> <B>so</B>  <B>are</B>
     <B>produced</B> <B>by</B> create_bmp_for_rect_cen_in_rect<B>.</B>

     white     255,255,255 or 0xFFFFFF as Er=1.0    (vacuum)
     pink      255,202,202 or 0xFFCACA as Er=1.0006 (air)
     L. blue   130,052,255 or 0x8235EF as Er=2.1    (PTFE)
     Mid gray  142,242,142 or 0x8E8E8E as Er=2.2    (duroid 5880)
     mauve     255.000,255 or 0xFF00FF as Er=2.33  (polyethylene)
     yellow    255,255,000 or 0xFFFF00 as Er=2.5    (polystyrene)
     sandy     239,203,027 or 0xEFCC1A as Er=3.3    (PVC)
     brown     188,127,096 or 0xBC7F60 as Er=3.335  (epoxy resin)
     Turquoise 026,239,179 or 0x1AEFB3 as Er=4.8    (glass PCB)
     Dark gray 142,142,142 or 0x696969 as Er=6.15   (duroid 6006)
     L. gray   240,240,240 or 0xDCDCDC as Er=10.2  (duroid 6010)
     D. orange 213,160,067 or 0xD5A04D as  Er=100.0  (mainly  for
     test purposes)



</PRE>
<H2>EXAMPLES</H2><PRE>
     Here   are    a    few    examples    of    the    use    of
     <B>create_bmp_for_rect_in_rect</B>.  Again, see the html documenta-
     tion in atlc-X.Y.Z/docs/html-docs/index.html for more  exam-
     ples.

     In the first example, there is just an  air  dielectric,  so
     Er1=Er2=1.0.   The inner of 1x1 inches (or mm, miles etc) is
     placed centrally in an outer with dimensions 3 x 3 inches.

     The exact place where the  dielectric  starts  (a)  and  its
     width (d) are unimportant, but they must still be entered.

     <B>%</B> <B>create_bmp_for_rect_in_rect</B> <B>3</B> <B>3</B> <B>1</B> <B>1</B> <B>1</B> <B>1</B> <B>1</B> <B>1</B> <B>&gt;</B> <B>ex1.bmp</B>
     <B>%</B> <B>atlc</B> <B>ex1.bmp</B>

     In this second example, an inner of 15.0 mm x 0.5 mm is sur-
     rounded  by an outer with internal dimensions of 61.5 x 20.1
     mm. There is a material with permittivity 2.1 (Er  of  PTFE)
     below    the    inner    conductor.    The    output    from
     <B>create_bmp_for_rect_in_rect</B> is sent to a file ex1.bmp, which
     is then processed by <B>atlc</B>

     <B>%</B> <B>create_bmp_for_rect_in_rect</B> <B>61.5</B> <B>20.1</B> <B>5</B> <B>22</B> <B>0.5</B> <B>50</B> <B>15</B> <B>5</B> <B>1.0</B>
     <B>2.1</B> <B>&gt;</B> <B>ex2.bmp</B>
     <B>%</B> <B>atlc</B> <B>ex2.bmp</B>

     In example 3, the bitmap is made larger, to  increase  accu-
     racy, but otherwise this is identical to the second example.
     <B>%</B> <B>create_bmp_for_rect_in_rect</B> <B>-b7</B> <B>61.5</B> <B>20.1</B> <B>5</B> <B>22</B> <B>0.5</B> <B>50</B> <B>15</B> <B>5</B>
     <B>1.0</B> <B>2.1</B> <B>&gt;</B> <B>ex3.bmp</B>
     <B>%</B> <B>atlc</B> <B>ex3.bmp</B>

     In the fourth example, materials with permittivites 2.78 and
     7.89  are  used.  While  there  is  no  change in how to use
     <B>create_bmp_for_rect_in_rect</B>, since these permittivities  are
     not known, we must tell <B>atlc</B> what they are.

     <B>%</B> <B>create_bmp_for_rect_in_rect</B> <B>61</B> <B>20</B> <B>1</B> <B>4</B> <B>22</B> <B>0.5</B> <B>50</B> <B>15</B> <B>5</B>  <B>2.78</B>
     <B>7.89</B> <B>&gt;</B> <B>ex5.bmp</B> <B>%</B> <B>atlc</B> <B>-d</B> <B>CAFF00=2.78</B> <B>-d</B> <B>AC82AC=7.89</B> <B>ex5.bmp</B>

     In the sixth and final example, the -v  option  is  used  to
     print     some     extra     data     to     stderr     from
     <B>create_bmp_for_rect_in_rect</B>.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B>atlc(1)</B>                       <B>create_bmp_for_circ_in_circ(1)</B>
     <B>create_bmp_for_circ_in_rect(1)</B>
     <B>create_bmp_for_microstrip_coupler(1)</B>
     <B>create_bmp_for_rect_cen_in_rect(1)</B>
     <B>create_bmp_for_rect_cen_in_rect_coupler(1)</B>
     <B>create_bmp_for_rect_in_circ(1)</B>
     <B>create_bmp_for_stripline_coupler(1)</B>
     <B>create_bmp_for_symmetrical_stripline(1)</B>    <B>design_coupler(1)</B>
     <B>find_optimal_dimensions_for_microstrip_coupler(1)</B> <B>readbin(1)</B>

     http://atlc.sourceforge.net                - Home page
     http://sourceforge.net/projects/atlc       - Download area
     atlc-X.Y.Z/docs/html-docs/index.html       - HTML docs
     atlc-X.Y.Z/docs/qex-december-1996/atlc.pdf - theory paper
     atlc-X.Y.Z/examples                        - examples











































</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>