summaryrefslogtreecommitdiff
path: root/Electronic_Communication_by_D._Roddy/Chapter16_Antennas.ipynb
blob: 9718189b304b757315fdb8524f7b4cc712d779f4 (plain)
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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter16 Antennas"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 16.7.2,Pg.no.590"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The −3dB beamwidth is 90.0 degree\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "from math import sqrt\n",
    "g_x=0.5\n",
    "x=math.asin(sqrt(g_x))\n",
    "g_y=0.5\n",
    "y1=math.asin(sqrt(g_y))\n",
    "y=y1+90\n",
    "#Therefore\n",
    "z=y-x\n",
    "print 'The −3dB beamwidth is',z,'degree'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 16.9.1,Pg.no.597"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "l_effective= 0.32\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "from math import pi\n",
    "Io=1\n",
    "wl=1\n",
    "phy_length=wl/2\n",
    "I_av=2*Io/pi\n",
    "#Thus area is given as\n",
    "Area=I_av*phy_length\n",
    "l_eff=wl/pi\n",
    "l_eff=round(l_eff,2)\n",
    "#From the above eq l_effective is given as\n",
    "print 'l_effective=',l_eff"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 16.19.1,Pg.no.621"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Effective area is 18.38 m**2\n",
      "The directivity is 256633.2\n",
      "The −3dB beamwidth is 0.35 degree\n",
      "The null beamwidth is 0.7 degree\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "from math import pi\n",
    "D=6.0        #reflector diameter in m\n",
    "n=0.65     #illumination effeciency\n",
    "f=10**10   #frequency of operation in Hz\n",
    "c=3*10**8  #velo of light in m/s\n",
    "wl=0.03  #c/f\n",
    "A=(pi*D**2)/4\n",
    "A_eff=n*A\n",
    "A_eff=round(A_eff,2)\n",
    "print 'Effective area is',A_eff,'m**2'\n",
    "D0=(4*pi*A_eff)/wl**2\n",
    "D0=round(D0,1)\n",
    "print 'The directivity is',D0\n",
    "BW_dB=70*wl/D\n",
    "print 'The −3dB beamwidth is',BW_dB,'degree'\n",
    "BW_null=2*BW_dB\n",
    "print 'The null beamwidth is',BW_null,'degree' "
   ]
  }
 ],
 "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.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}