summaryrefslogtreecommitdiff
path: root/sample_notebooks/Tarun KumarDas/Chapter9_2.ipynb
blob: 320477a8858a36e843560d43f930ce8ca0e69499 (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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
{
 "metadata": {
  "name": "",
  "signature": "sha256:023bb2358c5a7a6740b1b9a08290e11f954e790555a353817bbe84615e4679e6"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "CHAPTER 9: VALVE DIAGRAMS AND VALVE GEARS"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 9.5 Page 150"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "from math import pi,sqrt,acos,asin,atan,cos,sin,tan\n",
      "p=20#in\n",
      "l=100#in\n",
      "r=120#r.p.m\n",
      "v=3.5#in\n",
      "l2=1#in\n",
      "l3=1/8#in\n",
      "v1=1.44#omega in/sec\n",
      "\n",
      "#CALCULATIONS\n",
      "V=p*(1.06/1.166)#omega in./sec\n",
      "R=(V/v1)#omega in/sec\n",
      "\n",
      "#RESULTS\n",
      "print\"The ratio of velocity of the piston to the velocity is\",round(R,3),\"Omega in/sec\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "The ratio of velocity of the piston to the velocity is 12.626 Omega in/sec\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 9.7 Page 151"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "from math import pi,sqrt,acos,asin,atan,cos,sin,tan\n",
      "v=0.6#in\n",
      "m=1.0#in\n",
      "t=0.75#in\n",
      "p=4#in\n",
      "\n",
      "#CALCULATIONS\n",
      "D=t/m#in\n",
      "A=(p*m/D)#in\n",
      "\n",
      "#RESULTS\n",
      "print\"the travel and laps of the value is\",round(A,3),\"in\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the travel and laps of the value is 5.333 in\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 9.10 Page 154"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "from math import pi,sqrt,acos,asin,atan,cos,sin,tan\n",
      "l=1.5#in\n",
      "p=4.0#in\n",
      "v=0.98#in\n",
      "\n",
      "#CALCULATIONS\n",
      "T=(l*p/v)#in\n",
      "\n",
      "#RESULTS\n",
      "print\"the particulars of a value and it eccentric is\",round(T,3),\"in\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the particulars of a value and it eccentric is 6.122 in\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 9.12 Page 156"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "from math import pi,sqrt,acos,asin,atan,cos,sin,tan\n",
      "p=1/10#in\n",
      "v1=3/4#in\n",
      "v2=3/5#in\n",
      "m=1*1/2#in\n",
      "l=4#cranks\n",
      "a1=1.25#in\n",
      "a2=0.7#in\n",
      "\n",
      "#CALCULATIONS\n",
      "C=a1/a2#in\n",
      "A=l*a1/a2#in\n",
      "S=(A/2-a1)#in\n",
      "\n",
      "#RESULTS\n",
      "print\"the travel of the value is\",round(S,3),\"in\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the travel of the value is 2.321 in\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 9.17 Page 161"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#initialisation of variable\n",
      "from math import pi,sqrt,acos,asin,atan,cos,sin,tan\n",
      "v=3*1/2#in\n",
      "a=30#degree\n",
      "l=0.8#in\n",
      "v1=0.2#in\n",
      "L=0.13#in\n",
      "m=1.075#in\n",
      "d=0.58#in\n",
      "p=1.875#in\n",
      "\n",
      "#CALCULATIONS\n",
      "V=(p-d)#in\n",
      "P=V+1.25#in\n",
      "\n",
      "#RESULTS\n",
      "print\"the main value and the maximum opening to steam is\",round(P,3),\"in\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "the main value and the maximum opening to steam is 2.545 in\n"
       ]
      }
     ],
     "prompt_number": 5
    }
   ],
   "metadata": {}
  }
 ]
}