summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_Rajendran/Chapter9.ipynb
blob: aa1abf35766b7ee7e8fa357fd5df9bb2f29dbe36 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:5f6e5e5e16ae36be54b773743f59e15ae672a0cecdab4854d7e43b7f805f4ffa"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "9: Photoelasticity"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 9.1, Page number 10"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "alpha1_alpha2=10*10**8;   #difference between pincipal stress(N/m**2)\n",
      "c=1*10**-12;    #stress optic coefficient(m**2/N)\n",
      "\n",
      "#Calculation\n",
      "N=c*alpha1_alpha2;   #difference between refractive indices\n",
      "\n",
      "#Result\n",
      "print \"difference between refractive indices is\",N"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "difference between refractive indices is 0.001\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 9.2, Page number 10"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "alpha1=405*10**6;    #principal stress(N/m**2)\n",
      "alpha2=-105*10**6;   #principal stress(N/m**2)\n",
      "\n",
      "#Calculation\n",
      "tow_max=(alpha1-alpha2)/2;   #maximum shearing stress(N/m**2)\n",
      "\n",
      "#Result\n",
      "print \"maximum shearing stress is\",tow_max*10**-6,\"*10**6 N/m**2\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "maximum shearing stress is 255.0 *10**6 N/m**2\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}