summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_V_Rajendran/Chapter2.ipynb
blob: 417da87cef27b7c4b140dc35533ad3801cee450e (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:ba867fe9fbc8067f0691ccade40c2ad894318b7fde36802aa91fc404852bb7c8"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "2: Viscosity"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 2.1, Page number 11"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "eta=8.9*10**-4;    #coefficient of viscosity of water(Ns/m**2)\n",
      "a=0.054*10**-2;    #radius of capillary tube(m)\n",
      "l=56*10**-2;   #length of capillary tube(m)\n",
      "h=34*10**-4;   #height of pressure head(m)\n",
      "t=5*60;    #time of flow(s)\n",
      "g=9.8;\n",
      "rho=10**3;   #density of water(kg/m**3)\n",
      "\n",
      "#Calculation\n",
      "V=math.pi*h*g*rho*(a**4)/(8*eta*l);    #volume of water in 1 sec(m**3)\n",
      "V5=V*t;    #volme of water flowing in 5 minutes(m**3)\n",
      "m=V5*rho;   #mass of water flowing in 5 minutes(kg)\n",
      "\n",
      "#Result\n",
      "print \"mass of water flowing in 5 minutes is\",round(m*10**3,4),\"g\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "mass of water flowing in 5 minutes is 0.6697 g\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 2.2, Page number 12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "t1=6;   #time taken by water(s)\n",
      "t2=3.6;   #time taken by alcohol(s)\n",
      "rho1=10**3;  #density of water(kg/m**3)\n",
      "rho2=800;    #density of alcohol(kg/m**3)\n",
      "eta1=8.9*10**-4;   #viscosity of water(Ns/m**2)\n",
      "\n",
      "#Calculation\n",
      "eta2=t2*rho2*eta1/(t1*rho1);   #viscosity of alcohol(Ns/m**2)\n",
      "\n",
      "#Result\n",
      "print \"viscosity of alcohol is\",eta2*10**4,\"*10**-4 Ns/m**2\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "viscosity of alcohol is 4.272 *10**-4 Ns/m**2\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 2.3, Page number 12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "sigma=1.26*10**-3;   #density of medium(kg/m**3)\n",
      "eta=2*10**-5;   #viscosity of medium(Ns/m**2)\n",
      "r=0.2*10**-2;   #radius of body(m)\n",
      "rho=8*10**-3;   #density of body(kg/m**3)\n",
      "g=9.8;\n",
      "\n",
      "#Calculation\n",
      "v=2*(r**2)*(rho-sigma)*g/(9*eta);    #terminal velocity(m/s)\n",
      "\n",
      "#Result\n",
      "print \"terminal velocity is\",round(v*10**3,4),\"*10**-3 m/s\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "terminal velocity is 2.9356 *10**-3 m/s\n"
       ]
      }
     ],
     "prompt_number": 12
    }
   ],
   "metadata": {}
  }
 ]
}