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
|
{
"metadata": {
"name": "",
"signature": "sha256:3092cd2ae5a90e09126e9d647e026620efd1b57b1d7964dfe20aa5cd324764f3"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 12 : Elementary Hydrodynamics"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 12.1 Page No : 490"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"import math \n",
"\t\t\n",
"# variables\n",
"Q = 0.00010;\t\t#cfs\n",
"t = 0.1;\t\t#ft\n",
"h = 3.;\t\t#ft\n",
"d = 6.;\t\t#in\n",
"\n",
"# calculations \n",
"K = Q*h/(t*0.25*math.pi*(d/12)**2);\n",
"\n",
"# results \n",
"print 'K = %.4f fps'%(K);\n",
"\n",
"\t\t"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"K = 0.0153 fps\n"
]
}
],
"prompt_number": 3
}
],
"metadata": {}
}
]
}
|