summaryrefslogtreecommitdiff
path: root/Fluid_Mechanics_by_John_F._Douglas/Chapter_22.ipynb
blob: 2c113fedaa0c9a2a2f07b496f8edd7f53a020e8e (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:783af12fd7d104e85c7e13e105c7550ca4a0a63a41968e5a9b0312d6fedb23a2"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 22: Theory of Rotodynamic Machine"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 22.1, Page 779"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import math\n",
      "\n",
      " #Initializing  the  variables\n",
      "Q  =  5;\n",
      "R1  =  1.5/2;\n",
      "R2  =  2/2;  \n",
      "w  =  18;\n",
      "rho  =  1000;\n",
      "rhoA  =  1.2;\n",
      "Hth  =  0.017;\n",
      "g=9.81;\n",
      "\n",
      " #Calculations\n",
      "A  =  math.pi*(R2**2-R1**2);\n",
      "Vf  =  Q/A;\n",
      "Ut  =  w*R2;\n",
      "Uh  =  w*R1;\n",
      "B1t  =  math.atan(Vf/Ut);\n",
      "B1h  =  math.atan(Vf/Uh);\n",
      "E  =  Hth*rho/rhoA;\n",
      "def  Beta(u):\n",
      "    y  =  math.atan(Vf/(u-E*g/u));\n",
      "    return y\n",
      "B2t  =  Beta(Ut);\n",
      "B2h  =  Beta(Uh);\n",
      "\n",
      "print \"!----Blade Inlet Angles----!\"\n",
      "print \"At tip (in degrees) :\",round(B1t*180/math.pi,1),\"\\nAt Hub (in degrees) :\",round(B1h*180/math.pi,1)\n",
      "print \"\\n!----Blade Outlet Angles (Degrees)----!\"\n",
      "print \"At tip (in degrees):\",round(B2t*180/math.pi,1),\"\\nAt Hub(in degrees) :\",round(B2h*180/math.pi,1)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "!----Blade Inlet Angles----!\n",
        "At tip (in degrees) : 11.4 \n",
        "At Hub (in degrees) : 15.1\n",
        "\n",
        "!----Blade Outlet Angles (Degrees)----!\n",
        "At tip (in degrees): 19.5 \n",
        "At Hub(in degrees) : 48.6\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 22.2, Page 793"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import math\n",
      "\n",
      "\n",
      " #Initializing  the  variables\n",
      "D  =  0.1;\n",
      "t  =  15*10**-3;\n",
      "Q  =  8.5/3600;\n",
      "N  =  750/60;\n",
      "B2  =  25*math.pi/180;                                                                #  Beta  2  ind  degrees\n",
      "g  =  9.81;\n",
      "z  =  16;\n",
      "\n",
      " #Calculations\n",
      "A  =  round(math.pi*D*t,5);\n",
      "V_f2  =  round(Q/A,3);\n",
      "U2  =  round(math.pi*N*D,3);\n",
      "V_w2  =  round(U2  -  V_f2/math.tan(B2),1);\n",
      "Hth  =  round(U2*V_w2/g,2);\n",
      "Sf  =  round(1 - math.pi*math.sin(B2)/(z*(1-(V_f2/U2)/math.tan(B2))),3);\n",
      "H  =  round(Sf*Hth,2);\n",
      "\n",
      "print \"Part (a) - Head developed (m): \",Hth\n",
      "print \"Part (b) - Head developed (m): \",H"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Part (a) - Head developed (m):  1.16\n",
        "Part (b) - Head developed (m):  1.03\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 22.3, Page 797"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "import math\n",
      "\n",
      "\n",
      " #Initializing  the  variables\n",
      "Ma  =  0.6;\n",
      "Cl  =  0.6;\n",
      "tByC  =  0.035;                                                      #  Thickness  to  chord  ratio\n",
      "cByC  =  0.015;                                                      #  Camber  to  chord  ratio\n",
      "x  =  3;                                                                    #  Angle  of  incidence\n",
      "\n",
      " #Calculations\n",
      "lamda  =  1/(1-Ma**2)**0.5;\n",
      "Cl#  =  lamda*Cl;\n",
      "tByC1  =  tByC*lamda;\n",
      "cByC1  =  cByC*lamda;\n",
      "Cl1  =  Cl*lamda**2;\n",
      "Ae  =  x*lamda;\n",
      "print \"____Geometric Characterstics____\\n\"\n",
      "print \"Thickness to chord ratio      :\",tByC1\n",
      "print \"Camber to chord ratio         :\",cByC1\n",
      "print \"Lift Coefficient              :\",Cl1\n",
      "print \"angle of incidence (Degrees)  :\",Ae"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "____Geometric Characterstics____\n",
        "\n",
        "Thickness to chord ratio      : 0.04375\n",
        "Camber to chord ratio         : 0.01875\n",
        "Lift Coefficient              : 0.9375\n",
        "angle of incidence (Degrees)  : 3.75\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}