summaryrefslogtreecommitdiff
path: root/Optical_Fiber_Communication/Chapter6_1.ipynb
blob: 9b5380f8a057fb63e8854b23cdde8b7899e50f36 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:ade43627b2f5d9f9e9fc6f1fe77b719e4d5ca9dd8c4d3cb361adefbae3d62e1a"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 6: Optical Sources LEDs"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 1: PgNo-277"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "# Initialisation of variables\n",
      "r=125*math.pow(10,-6) # cladding radius in meter\n",
      "R=8*math.pow(10,-2) # curve of radius in meter\n",
      "s=((R+2*r)/(R+r))-1\n",
      "s_p=s*100 # percentage of strain\n",
      "\n",
      "# Results\n",
      "print ('%s %.2f %s' %(\" The percentage of strain = \",s_p,\"%\"))\n",
      "print (\"\\n If this condition is maintained the fiber will maintain without any break \")\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " The percentage of strain =  0.16 %\n",
        "\n",
        " If this condition is maintained the fiber will maintain without any break \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2: PgNo-279"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "\n",
      "# initialisation of variables\n",
      "w=40*math.pow(10,-3) # cable weighing in kg/m\n",
      "R=20*math.pow(10,-2) # radius of curvature in meter\n",
      "n=0.19 # co-efficient of friction\n",
      "x=(3.14/4) # angle in rad\n",
      "\n",
      "# calculations\n",
      "si=42.36   # pulling tension at the entrance in kg\n",
      "X=(si/(w*R))\n",
      "Y=math.asinh(si/(w*R))\n",
      "Z=w*R*math.sinh(n*x+Y) # puttling tension at the exit of an optical cable\n",
      "\n",
      "# Results\n",
      "print ('%s %.3f %s' %(\" The puttling tension at the exit of an optical cable = \",Z,\"kg\"))"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " The puttling tension at the exit of an optical cable =  49.173 kg\n"
       ]
      }
     ],
     "prompt_number": 2
    }
   ],
   "metadata": {}
  }
 ]
}