summaryrefslogtreecommitdiff
path: root/Optical_Fiber_Communication_System_by_Dr._M.K._Raina/chap6.ipynb
blob: 064e42e591b0c0ed7d8689fe150f26cbc4fc0675 (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Ch-6 : Preparation of Optical Fibers and Cables"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Ex:6.1 Pg: 287"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The percentage of strain =0.16 %\n",
      "\n",
      " If this condition is maintained the fiber will maintain without any break\n"
     ]
    }
   ],
   "source": [
    "from __future__ import division\n",
    "r=125*10**-6## cladding radius in meter\n",
    "R=8*10**-2## curve of radius in meter\n",
    "s=((R+2*r)/(R+r))-1#\n",
    "s_p=s*100## percentage of strain\n",
    "print \"The percentage of strain =%0.2f %%\"%( s_p)#\n",
    "print \"\\n If this condition is maintained the fiber will maintain without any break\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Ex:6.2 Pg: 287"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The puttling tension at the exit of an optical cable =49.17 kg\n"
     ]
    }
   ],
   "source": [
    "from math import asinh,sinh\n",
    "from __future__ import division\n",
    "w=40*10**-3## cable weighing in kg/m\n",
    "R=20*10**-2## radius of curvature in meter\n",
    "n=0.19## co-efficient of friction\n",
    "x=(3.14/4)## angle in rad\n",
    "si=42.36## pulling tension at the entrance in kg\n",
    "X=(si/(w*R))##\n",
    "Y=asinh(si/(w*R))#\n",
    "Z=w*R*sinh(n*x+Y)##puttling tension at the exit of an optical cable\n",
    "print \"The puttling tension at the exit of an optical cable =%0.2f kg\"%( Z)"
   ]
  }
 ],
 "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.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}