summaryrefslogtreecommitdiff
path: root/Engineering_Physics_-_I/chapter3.ipynb
blob: 068dcc951757404ee416f8fee9cf39b3429176a5 (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
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
{
 "metadata": {
  "name": "chapter 3(s)"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": "Chapter 3: Fibre Optics And Applications"
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Example 1, Page No: 3.40"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding Numerical aperture\n\nimport math;\n\n# Variable Declaration\nn1      = 1.6;      # Refractive index of core\nn2      = 1.5;      # Refractive index of cladding\n\n# Calculations\nNA      = math.sqrt(n1**2 - n2**2);        # Numerical Aperture of optical fiber\n\n# Result\nprint 'Numerical Aperture of the optical fiber = %3.4f' %NA;",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "Numerical Aperture of the optical fiber = 0.5568\n"
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Example 2, Page No: 3.40"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding Numerical aperture and acceptance Angle\n\nimport math;\n\n# Variable declaration\nn1      = 1.55;      # Refractive index of core\nn2      = 1.5;       # Refractive index of cladding\n\n# Calculations\nNA      = math.sqrt(n1**2 - n2**2);        # Numerical Aperture of optical fiber\nim      = math.asin(NA);                   # Acceptance angle\nim_d    = im*180/math.pi                   # radian to degree conversion\n\n# Result\nprint 'Numerical Aperture of the optical fiber = %3.4f'%NA,' Acceptance angle = %3.2f' %im_d,'degrees ';\n",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "Numerical Aperture of the optical fiber = 0.3905  Acceptance angle = 22.99 degrees \n"
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": " Example 3, Page No: 3.41"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding Refractive index of cladding\n\nimport math;\n\n# Variable declaration\nNA      = 0.26;      # Numerical aperture \nn1      = 1.5 ;      # Refractive index of core\nd       = 100*10^-6; # diameter of the core in m\n\n# Calculations\nn2      = math.sqrt( n1**2 - NA**2);       # Refractive index of cladding\n\n# Result\nprint 'Refractive index of cladding = %3.4f' %n2;",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "Refractive index of cladding = 1.4773\n"
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Example 4, Page No: 3.41"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding Numerical aperture\n\nimport math;\n\n# variable Declaration\nn1      = 1.54;      # Refractive index of core\nn2      = 1.5;      # Refractive index of cladding\n\n# Calculations\nNA      = math.sqrt(n1**2 - n2**2);        # Numerical Aperture of optical fiber\n\n# Result\nprint 'Numerical Aperture of the optical fiber = %3.4f' %NA",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "Numerical Aperture of the optical fiber = 0.3487\n"
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Addl_Example 1, Page No: 3.42"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding Refractive index, Acceptance angle, Maximum number of modes that fibre allows\n\nimport math;\n\n# Variable Declaration\nn1      = 1.5;       # Refractive index of core\nNA      = float(0.26);      # Numerical aperture \nd       = 100*10**-6  # core diameter\nlamda   = float(10**-6);     # wavelength in m\n\n# Calculations\nn2      = math.sqrt( n1**2 - NA**2);       # Refractive index of cladding\nim      = math.asin(NA);                   # Acceptance angle\nim_d    = im*180/math.pi                   # radian to degree conversion\nN       = 4.9*(d*NA/lamda)**2;              # maximum no of modes\n\n# Result\nprint ' Refractive index of cladding n2 = %3.4f' %n2,'\\n Acceptance angle = %3.2f' %im_d, 'degrees','\\n Maximum number of modes that fibre allows = %d '%N;\n",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": " Refractive index of cladding n2 = 1.4773 \n Acceptance angle = 15.07 degrees \n Maximum number of modes that fibre allows = 3312 \n"
      }
     ],
     "prompt_number": 19
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Addl_Example 2, Page No: 3.43"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": " # Finding Numerical aperture and Critical angle\n\nimport math;\n\n# Varible Declaration\ndelta       = 0.02;         # relative refractive index\nn1          = 1.48;         # refractive index of core\n\n# Calculations\nNA          = n1*(2*delta)**0.5;           # Numerical aperture\nn2          = math.sqrt( n1**2 - NA**2);   # Refractive index of cladding\ncri_ang     = math.asin(n2/n1);            # critical angle\ncri_ang_d   = cri_ang*180/math.pi;         # critical angle in degrees\n\n# Result\nprint ' Numerical Aperture = %3.3f'%NA,'\\n The Critical angle = %3.2f' %cri_ang_d,' degrees';",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": " Numerical Aperture = 0.296 \n The Critical angle = 78.46  degrees\n"
      }
     ],
     "prompt_number": 22
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Addl_Example 3, Page No: 3.43"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding Refractive Index\n\nimport math\n\n# Variable declaration\ndelta       = 0.015;        # relative refractive index\nNA          = 0.27;         # Numerical aperture\n\n# Calculations\n# we know that NA = n1*sqrt(2*\u0394)\nn1          = NA/math.sqrt(2*delta)          # refractive index of core\nn2          = math.sqrt( n1**2 - NA**2);     #  Refractive index of cladding\n\n# Result\nprint ' Refractive index of the core = %3.3f' %n1,'\\n Refractive index of the cladding = %3.3f\\n' %n2;",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": " Refractive index of the core = 1.559 \n Refractive index of the cladding = 1.535\n\n"
      }
     ],
     "prompt_number": 24
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Addl_Example 4, Page No: 3.44"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# No. of total modes propagating in a multimode step index fibre\n\nimport math;\n\n# variable Declaration\nNA      = 0.25;        # Numerical aperture \nd       = 60*10**-6       # core diameter\nlamda   = 2.7*10**-6;     # wavelength in m\n\n# calculations\nN       = 4.9*(d*NA/lamda)**2;       # no of modes for step index fibre\n\n# Result\nprint 'No. of total modes propagating in a multimode step index fibre = %d' %N;",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "No. of total modes propagating in a multimode step index fibre = 151\n"
      }
     ],
     "prompt_number": 26
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": "Addl_Example 5, Page No: 3.44"
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": "# Finding No. of total modes propagating in the fibre\nimport math;\n\n# Variable Declaration\nNA      = 0.25;          # Numerical aperture \nd       = 6*10**-6        # core diameter\nlamda   = 1.5*10**-6;     # wavelength of laser source\nn1      = 1.47;          # refractive index of core\nn2      = 1.43           # refractive index of cladding\n\n# calculations\nNA      = math.sqrt( n1**2 - n2**2);       # Numerical Aperture\nN       = 4.9*(d*NA/lamda)**2;      # no of modes for step index fibre\n\n# Result\nprint 'No. of total modes propagating in the fibre = %d' %N;",
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": "No. of total modes propagating in the fibre = 9\n"
      }
     ],
     "prompt_number": 30
    }
   ],
   "metadata": {}
  }
 ]
}