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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 6 : HF,VHF and UHF Antennas "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.1,PAGE NUMBER 278 "
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rhombic height is: 5.0 meter\n",
"Tilt angle is: 60.0 degrees\n",
"length of wire is: 20.0 meter\n"
]
}
],
"source": [
"from math import pi,sin\n",
"\n",
"# Variable Declaration\n",
"\n",
"f = 30 # frequency in MHz\n",
"f = 30*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"lamda = c/f # wavelength in meter\n",
"Delta = 30 # angle of elevation in Degrees\n",
"\n",
"#calculation\n",
"\n",
"H = lamda/(4 * sin(Delta*pi/180)) # Rhombic height in m\n",
"l = lamda/(2 * sin(Delta*pi/180) **2) # wire length in m\n",
"phi = 90-Delta # tilt angle in Degrees\n",
"\n",
"#Results\n",
"\n",
"print \"Rhombic height is:\",round(H,2),\"meter\"\n",
"print \"Tilt angle is:\",round(phi,2),\"degrees\"\n",
"print \"length of wire is:\",round(l,2),\"meter\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.2,PAGE NUMBER 278"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rhombic height is: 21.595 meter\n",
"Tilt angle is: 80.0 degrees\n",
"length of wire is: 248.726 meter\n"
]
}
],
"source": [
"from math import pi,sin\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"f = 20 # frequency in MHz\n",
"f = 20*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"lamda = c/f # wavelength in meter\n",
"\n",
"#calculation\n",
"\n",
"Delta = 10 # angle of elevation in Degrees\n",
"H = lamda/(4 * sin(Delta*pi/180)) # Rhombic height in m\n",
"l = lamda/(2 * sin(Delta*pi/180) **2) # wire length in m\n",
"phi = 90-Delta # tilt angle in Degrees\n",
"\n",
"#Results\n",
"\n",
"print \"Rhombic height is:\",round(H,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi,2),\"degrees\"\n",
"print \"length of wire is:\",round(l,3),\"meter\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.3,PAGE NUMBER 279-281"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"for Delta = 10 degrees\n",
"Rhombic height is: 14.397 meter\n",
"Tilt angle is: 80.0 degrees\n",
"length of wire is: 165.82 meter\n",
"for Delta = 15 degrees\n",
"Rhombic height is: 9.659 meter\n",
"Tilt angle is: 75.0 degrees\n",
"length of wire is: 74.64 meter\n",
"for Delta = 20 degrees\n",
"Rhombic height is: 7.31 meter\n",
"Tilt angle is: 70.0 degrees\n",
"length of wire is: 42.74 meter\n",
"for Delta = 25 degrees\n",
"Rhombic height is: 5.916 meter\n",
"Tilt angle is: 65.0 degrees\n",
"length of wire is: 27.99 meter\n",
"for Delta = 30 degrees\n",
"Rhombic height is: 5.0 meter\n",
"Tilt angle is: 60.0 degrees\n",
"length of wire is: 20.0 meter\n",
"for Delta = 35 degrees\n",
"Rhombic height is: 4.359 meter\n",
"Tilt angle is: 55.0 degrees\n",
"length of wire is: 15.2 meter\n",
"for Delta = 40 degrees\n",
"Rhombic height is: 3.889 meter\n",
"Tilt angle is: 50.0 degrees\n",
"length of wire is: 12.1 meter\n"
]
}
],
"source": [
"from math import pi,sin,cos\n",
"\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"f = 30 # frequency in MHz\n",
"f = 30*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"lamda = c/f # wavelength in meter\n",
"\n",
"#calculation and results:\n",
"\n",
"\n",
"\n",
"print \"for Delta = 10 degrees\"\n",
"\n",
"\n",
"Delta1 = 10 # angle of elevation in Degrees\n",
"H1 = lamda/(4 * sin(Delta1*pi/180)) # Rhombic height in m\n",
"l1 = lamda/(2 * sin(Delta1*pi/180) **2) # wire length in m\n",
"phi1 = 90-Delta1 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H1,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi1,2),\"degrees\"\n",
"print \"length of wire is:\",round(l1,2),\"meter\"\n",
"\n",
"\n",
"\n",
"\n",
"print \"for Delta = 15 degrees\"\n",
"\n",
"\n",
"Delta2 = 15 # angle of elevation in Degrees\n",
"H2 = lamda/(4 * sin(Delta2*pi/180)) # Rhombic height in m\n",
"l2 = lamda/(2 * sin(Delta2*pi/180) **2) # wire length in m\n",
"phi2 = 90-Delta2 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H2,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi2,2),\"degrees\"\n",
"print \"length of wire is:\",round(l2,2),\"meter\"\n",
"\n",
"\n",
"\n",
"print \"for Delta = 20 degrees\"\n",
"\n",
"\n",
"Delta3 = 20 # angle of elevation in Degrees\n",
"H3 = lamda/(4 * sin(Delta3*pi/180)) # Rhombic height in m\n",
"l3 = lamda/(2 * sin(Delta3*pi/180) **2) # wire length in m\n",
"phi3 = 90-Delta3 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H3,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi3,2),\"degrees\"\n",
"print \"length of wire is:\",round(l3,2),\"meter\"\n",
"\n",
"\n",
"\n",
"\n",
"print \"for Delta = 25 degrees\"\n",
"\n",
"\n",
"Delta4 = 25 # angle of elevation in Degrees\n",
"H4 = lamda/(4 * sin(Delta4*pi/180)) # Rhombic height in m\n",
"l4 = lamda/(2 * sin(Delta4*pi/180) **2) # wire length in m\n",
"phi4 = 90-Delta4 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H4,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi4,2),\"degrees\"\n",
"print \"length of wire is:\",round(l4,2),\"meter\"\n",
"\n",
"\n",
"\n",
"\n",
"print \"for Delta = 30 degrees\"\n",
"\n",
"\n",
"Delta5 = 30 # angle of elevation in Degrees\n",
"H5 = lamda/(4 * sin(Delta5*pi/180)) # Rhombic height in m\n",
"l5 = lamda/(2 * sin(Delta5*pi/180) **2) # wire length in m\n",
"phi5 = 90-Delta5 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H5,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi5,2),\"degrees\"\n",
"print \"length of wire is:\",round(l5,2),\"meter\"\n",
"\n",
"\n",
"\n",
"\n",
"print \"for Delta = 35 degrees\"\n",
"\n",
"\n",
"Delta6 = 35 # angle of elevation in Degrees\n",
"H6 = lamda/(4 * sin(Delta6*pi/180)) # Rhombic height in m\n",
"l6 = lamda/(2 * sin(Delta6*pi/180) **2) # wire length in m\n",
"phi6 = 90-Delta6 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H6,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi6,2),\"degrees\"\n",
"print \"length of wire is:\",round(l6,2),\"meter\"\n",
"\n",
"\n",
"\n",
"\n",
"print \"for Delta = 40 degrees\"\n",
"\n",
"\n",
"Delta7 = 40 # angle of elevation in Degrees\n",
"H7 = lamda/(4 * sin(Delta7*pi/180)) # Rhombic height in m\n",
"l7 = lamda/(2 * sin(Delta7*pi/180) **2) # wire length in m\n",
"phi7 = 90-Delta7 # tilt angle in Degrees\n",
"print \"Rhombic height is:\",round(H7,3),\"meter\"\n",
"print \"Tilt angle is:\",round(phi7,2),\"degrees\"\n",
"print \"length of wire is:\",round(l7,2),\"meter\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.4,PAGE NUMBER 281"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rhombic height is: 5.0 meter\n",
"Tilt angle is: 60.0 degrees\n",
"length of wire is: 14.8 meter\n"
]
}
],
"source": [
"from math import pi,sin,cos\n",
"\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"f = 30 # frequency in MHz\n",
"f = 30*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"lamda = c/f # wavelength in meter\n",
"Delta = 30 # angle of elevation in Degrees\n",
"\n",
"#calculation\n",
"\n",
"k = 0.74 # constant\n",
"H = lamda/(4 * sin(Delta*pi/180)) # Rhombic height in m\n",
"l = lamda/(2 * sin(Delta*pi/180) **2)*k # wire length in m\n",
"phi = 90-Delta # tilt angle in Degrees\n",
"\n",
"#Results\n",
"\n",
"print \"Rhombic height is:\",round(H,2),\"meter\"\n",
"print \"Tilt angle is:\",round(phi,2),\"degrees\"\n",
"print \"length of wire is:\",round(l,2),\"meter\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.5,PAGE NUMBER 282"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Rhombic height is: 10.96 meter\n",
"Tilt angle is: 70.0 degrees\n",
"length of wire is: 47.44 meter\n"
]
}
],
"source": [
"from math import pi,sin\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"f = 20 # frequency in MHz\n",
"f = 20*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"lamda = c/f # wavelength in meter\n",
"Delta = 20 # angle of elevation in Degrees\n",
"k = 0.74 # constant\n",
"\n",
"#calculation\n",
"\n",
"H = lamda/(4 * sin(Delta*pi/180)) # Rhombic height in m\n",
"l = lamda/(2 * sin(Delta*pi/180) **2)*k # wire length in m\n",
"phi = 90-Delta # tilt angle in Degrees\n",
"\n",
"\n",
"#Results\n",
"\n",
"\n",
"print \"Rhombic height is:\",round(H,2),\"meter\"\n",
"print \"Tilt angle is:\",round(phi,2),\"degrees\"\n",
"print \"length of wire is:\",round(l,2),\"meter\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.6,PAGE NUMBER 282"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"length of driven element is: 2.78 feet\n",
"length of reflector is: 2.86 feet\n",
"length of director is: 2.683 feet\n",
"element spacing is: 0.826 feet\n"
]
}
],
"source": [
"from __future__ import division\n",
"\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"\n",
"f_MHz = 172 # frequency in MHz\n",
"c = 3*10**8 # speed of light in m/s\n",
"\n",
"#calculation\n",
"\n",
"lamda = c/f_MHz # wavelength in m\n",
"La = 478/f_MHz # length of driven element in feet\n",
"Lr = 492/f_MHz # length of reflector in feet\n",
"Ld = 461.5/f_MHz # length of director in feet\n",
"S = 142/f_MHz # element spacing in feet\n",
"\n",
"\n",
"#Results\n",
"\n",
"\n",
"print \"length of driven element is:\", round(La,2),\"feet\"\n",
"print \"length of reflector is:\", round(Lr,2),\"feet\"\n",
"print \"length of director is:\", round(Ld,3),\"feet\"\n",
"print \"element spacing is:\",round(S,3),\"feet\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.7,PAGE NUMBER 283"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"length of driven element is: 0.69 m\n",
"length of reflector is: 0.7125 m\n",
"length of director1 is: 0.66 m\n",
"length of director2 is: 0.66 m\n",
"length of director3 is: 0.645 m\n",
"length of director4 is: 0.6 m\n",
"spacing between reflector and driver is: 0.375 m\n",
"spacing director and driving element is: 0.465 m\n",
"diameter of elements is: 0.015 m\n",
"length of array is: 2.25 m\n"
]
}
],
"source": [
"from __future__ import division\n",
"\n",
"# Variable Declaration\n",
"\n",
"\n",
"G = 12 # required gain in dB\n",
"f = 200 # frequency in MHz \n",
"f = 200*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"\n",
"#calculations\n",
"\n",
"\n",
"lamda = c/f # wavelength in m\n",
"La = 0.46*lamda # length of driven element in m (note: in book La is given 0.416*lamda misprint)\n",
"Lr = 0.475*lamda # length of reflector in m\n",
"Ld1 = 0.44*lamda # length of director1 in m\n",
"Ld2 = 0.44*lamda # length of director2 in m\n",
"Ld3 = 0.43*lamda # length of director3 in m\n",
"Ld4 = 0.40*lamda # length of director4 in m\n",
"SL = 0.25*lamda # spacing between reflector and driver in m\n",
"Sd = 0.31*lamda # spacing director and driving element in m\n",
"d = 0.01*lamda # diameter of elements in m\n",
"l = 1.5*lamda # length of array in m\n",
"\n",
"\n",
"#Results\n",
"\n",
"\n",
"print \"length of driven element is:\" ,round(La,2),\"m\"\n",
"print \"length of reflector is:\",round(Lr,4),\"m\"\n",
"print \"length of director1 is:\",round(Ld1,2),\"m\"\n",
"print \"length of director2 is:\",round(Ld2,2),\"m\"\n",
"print \"length of director3 is:\",round(Ld3,3),\"m\"\n",
"print \"length of director4 is:\",round(Ld4,2),\"m\"\n",
"print \"spacing between reflector and driver is:\",round(SL,3),\"m\"\n",
"print \"spacing director and driving element is:\",round(Sd,3),\"m\"\n",
"print \"diameter of elements is:\",round(d,3),\"m\"\n",
"print \"length of array is:\",round(l,2),\"m\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.8,PAGE NUMBER 283"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"designing of log-periodic antenna:\n",
"L1 is: 1.2 m\n",
"L2 is: 1.0332 m\n",
"L3 is: 0.8896 m\n",
"L4 is: 0.7659 m\n",
"L5 is: 0.6595 m\n",
"L6 is: 0.5678 m\n",
"L7 is: 0.4889 m\n",
"L8 is: 0.4209 m\n",
"L9 is: 0.3624 m\n",
"L10 is: 0.312 m\n",
"L11 is: 0.2687 m\n",
"elements spacing relation:\n",
"S1 is: 0.3888 m\n",
"S2 is: 0.3348 m\n",
"S3 is: 0.2882 m\n",
"S4 is: 0.2482 m\n",
"S5 is: 0.2137 m\n",
"S6 is: 0.184 m\n",
"S7 is: 0.1584 m\n",
"S8 is: 0.1364 m\n",
"S9 is: 0.1174 m\n",
"S10 is: 0.1011 m\n",
"S11 is: 0.087 m\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import atan\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"\n",
"G = 9 # required gain in dB\n",
"f_l = 125 # lowest frequency in MHz\n",
"f_l = 125*10**6 # lowest frequency in Hz\n",
"f_h = 500 # highest frequency in MHz\n",
"f_h = 500*10**6 # lowest frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"tau = 0.861 # scaling factor\n",
"sigma = 0.162 # spacing factor\n",
"\n",
"\n",
"#calculation\n",
"\n",
"\n",
"lamda_l = c/f_l # longest wavelength in m\n",
"lamda_s = c/f_h # shortest wavelength in m\n",
"alpha = 2*atan((1-tau)/(4*sigma)) # wedge angle in Degrees\n",
"L1 = lamda_l/2 # in m\n",
"L2 = tau*L1 # in m\n",
"L3 = tau*L2 # in m\n",
"L4 = tau*L3 # in m\n",
"L5 = tau*L4 # in m\n",
"L6 = tau*L5 # in m\n",
"L7 = tau*L6 # in m\n",
"L8 = tau*L7 # in m\n",
"L9 = tau*L8 # in m\n",
"L10 = tau*L9 # in m\n",
"L11 = tau*L10 # in m\n",
"\n",
"# element spacing relation\n",
"#formula : sn = 2*sigma*Ln\n",
"\n",
"\n",
"S1 = 2*sigma*L1 # in m\n",
"S2 = 2*sigma*L2 # in m\n",
"S3 = 2*sigma*L3 # in m\n",
"S4 = 2*sigma*L4 # in m\n",
"S5 = 2*sigma*L5 # in m\n",
"S6 = 2*sigma*L6 # in m\n",
"S7 = 2*sigma*L7 # in m\n",
"S8 = 2*sigma*L8 # in m\n",
"S9 = 2*sigma*L9 # in m\n",
"S10 = 2*sigma*L10 # in m\n",
"S11 = 2*sigma*L11 # in m\n",
"\n",
"\n",
"\n",
"#results\n",
"\n",
"\n",
"print(\"designing of log-periodic antenna:\")\n",
"\n",
"print \"L1 is:\",round(L1,4),\"m\"\n",
"print \"L2 is:\",round(L2,4),\"m\"\n",
"print \"L3 is:\",round(L3,4),\"m\"\n",
"print \"L4 is:\",round(L4,4),\"m\"\n",
"print \"L5 is:\",round(L5,4),\"m\"\n",
"print \"L6 is:\",round(L6,4),\"m\"\n",
"print \"L7 is:\",round(L7,4),\"m\"\n",
"print \"L8 is:\",round(L8,4),\"m\"\n",
"print \"L9 is:\",round(L9,4),\"m\"\n",
"print \"L10 is:\",round(L10,4),\"m\"\n",
"print \"L11 is:\",round(L11,4),\"m\"\n",
"\n",
"print \"elements spacing relation:\"\n",
"\n",
"print \"S1 is:\",round(S1,4),\"m\"\n",
"print \"S2 is:\",round(S2,4),\"m\"\n",
"print \"S3 is:\",round(S3,4),\"m\"\n",
"print \"S4 is:\",round(S4,4),\"m\"\n",
"print \"S5 is:\",round(S5,4),\"m\"\n",
"print \"S6 is:\",round(S6,4),\"m\"\n",
"print \"S7 is:\",round(S7,4),\"m\"\n",
"print \"S8 is:\",round(S8,4),\"m\"\n",
"print \"S9 is:\",round(S9,4),\"m\"\n",
"print \"S10 is:\",round(S10,4),\"m\"\n",
"print \"S11 is:\",round(S11,4),\"m\"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.9,PAGE NUMBER 285"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"induced voltage is: 8.29 mV\n"
]
}
],
"source": [
"from math import pi,cos,sqrt\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"E_rms = 10 # electric field in mV/m\n",
"E_rms = 10*10 **-3 # electric field in V/m\n",
"f = 2 # frequency in MHz\n",
"f = 2*10 **6 # frequency in Hz\n",
"N = 10 # number of turns\n",
"phi = 0 # angle between the plane of loop and direction of incident wave in Degrees\n",
"S = 1.4 # area of loop antenna in m **2\n",
"c = 3*10 **8 # speed of light in m/s\n",
"\n",
"#calculation\n",
"\n",
"lamda = c/f # wavelength in m\n",
"E_max = sqrt(2)*E_rms # electric field in V/m\n",
"V_rms = (2*pi*E_max*S*N/lamda)*cos(phi) # induced voltage\n",
"\n",
"#Result\n",
"\n",
"print \"induced voltage is:\",round(V_rms*1000,2),\"mV\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.10,PAGE NUMBER 285"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"radiation resistance of loop antenna is: 3.1 ohm\n"
]
}
],
"source": [
"\n",
"# Variable Declaration\n",
"\n",
"\n",
"D = 0.5 # diameter of loop antenna in m\n",
"a = D/2 # radius of loop antenna in m\n",
"f = 1 # frequency in MHz\n",
"f = 1*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"\n",
"#calculation\n",
"\n",
"lamda = c/f # wavelength in m\n",
"Rr = 3720*(a/lamda) # radiation resistance of loop antenna in ohm\n",
"\n",
"\n",
"#Results\n",
"\n",
"print \"radiation resistance of loop antenna is:\",Rr,\"ohm\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.11,PAGE NUMBER 285-286"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"the value of k is: 0.01\n",
"since,k<1/3\n",
"So Directivity of loop antenna is D = 1.5\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import pi\n",
"\n",
"# Variable Declaration\n",
"\n",
"a = 0.5 # radius of loop antenna in m\n",
"f = 0.9 # frequency in MHz\n",
"f = 0.9*10**6 # frequency in Hz\n",
"c = 3*10**8 # speed of light in m/s\n",
"\n",
"#calculation\n",
"\n",
"lamda = c/f # wavelength in m\n",
"k = (2*pi*a)/lamda # constant\n",
"\n",
"#Results\n",
"\n",
"print \"the value of k is:\",round(k,2)\n",
"print \"since,k<1/3\"\n",
"print \"So Directivity of loop antenna is D = 1.5\"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.13,PAGE NUMBER 286"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"radiation resistance of the loop antenna is: 2790.0 ohm\n",
"Directivity of the loop antenna is: 3.1875\n"
]
}
],
"source": [
"from sympy import Symbol\n",
"\n",
"#variable declaration and calculation\n",
"\n",
"Lm = Symbol('Lm') # defining Lm as lambda\n",
"d = 1.5*Lm # diameter of antenna in m\n",
"a = d/2 # radius of antenna in m\n",
"Rr = 3720*(a/Lm) # radiation resistance of loop antenna in ohm\n",
"D = 4.25*(a/Lm) # Directivity of the loop antenna\n",
"\n",
"#results\n",
"\n",
"print \"radiation resistance of the loop antenna is:\",round(Rr,0),\"ohm\"\n",
"print \"Directivity of the loop antenna is:\",round(D,4)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.14,PAGE NUMBER 287"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Number of elements in the array when spaced at lamda/2 are: 14\n",
"array length(where Lm is wavelength in m) is: 7*Lm m\n",
"null-to-null beam width is: 61.3 degrees\n"
]
}
],
"source": [
"from math import sqrt,pi\n",
"from sympy import Symbol\n",
"\n",
"#Variable declaration\n",
"\n",
"Gp = 28 # power gain\n",
"\n",
"#calculations\n",
"\n",
"Lm = Symbol('Lm') # defining Lm as lamda\n",
"d = Lm/2 # length of dipole\n",
"\n",
"#formula : Gp = 4*(L/lamda)\n",
"\n",
"L = Gp*Lm/4 # array length\n",
"N = 7*2 # Number of elements in the array when spaced at lamda/2\n",
"\n",
"# formula : B.W = 2*sqrt((2*/N)*(lamda/d))\n",
"\n",
"BW = 2*sqrt(2*Lm/(N*d)) # null-to-null beam width in radians\n",
"BW_d = BW*180/pi # null-to-null beam width in degrees\n",
"\n",
"#Results\n",
"\n",
"print \"Number of elements in the array when spaced at lamda/2 are:\",N\n",
"print \"array length(where Lm is wavelength in m) is:\",L,\"m\"\n",
"print \"null-to-null beam width is:\",round(BW_d,1),\"degrees\"\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## EXAMPLE 6.15,PAGE NUMBER 287"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"B.W.F.N., null-to-null beamwidth of main beam is: 60.1 degrees\n",
"H.P.B.W, half power beamwidth is: 27.2 degrees\n",
"Directivity is: 54.83\n"
]
}
],
"source": [
"from __future__ import division\n",
"from math import pi,sqrt\n",
"\n",
"\n",
"# Variable Declaration\n",
"\n",
"S = 0.05 # spacing in m\n",
"Dh = 0.1 # diameter of helical antenna in m\n",
"N = 20 # number of turns\n",
"f = 1000 # frequency in MHz\n",
"f = 1000*10**6 # frequency in MHz\n",
"c = 3*10**8 # speed of light in m/s\n",
"\n",
"\n",
"#calculation\n",
"\n",
"\n",
"lamda = c/f # wavelength in m\n",
"C = pi*Dh # circumfrence of helix in m\n",
"La = N*S # axial legth in m\n",
"phi_not = (115*(lamda**(3/2))/(C*sqrt(La))) # B.W.F.N., null-to-null beamwidth of main beam in Degreess\n",
"phi = (52*lamda**(3/2)/(C*sqrt(La))) # H.P.B.W, half power beamwidth in Degreess\n",
"D = (15*N*C**2*S/(lamda)**3) # Directivity\n",
"\n",
"#Results\n",
"\n",
"print \"B.W.F.N., null-to-null beamwidth of main beam is:\",round(phi_not,1),\"degrees\"\n",
"print \"H.P.B.W, half power beamwidth is:\",round(phi,1),\"degrees\"\n",
"print \"Directivity is:\",round(D,2)\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.8"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|