summaryrefslogtreecommitdiff
path: root/Heat_Transfer_(In_SI_Units)_by_J_P_Holman/Chapter_1.ipynb
blob: 0af0c43952ff20962b2dca7e8897f51067864c4d (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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter 1 Introduction"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Exa 1.1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Rate of heat transfer per unit area is 3.7 MW/sq meter\n"
     ]
    }
   ],
   "source": [
    "#Example Number 1.1\n",
    "# HOW MUCH HEAT IS TRANSFERRED THROUGH THE PLATE\n",
    "\n",
    "#VARIABLE DECLARATION\n",
    "\n",
    "k = 370 \t\t\t # [W/m] at 250 degree celsius\n",
    "dt = 100-400 \t\t\t#[degree celsius] temperature difference\n",
    "dx = 3*10**(-2) \t\t#[m] thickness of plate\n",
    "\n",
    "#CALCULATION\n",
    "\n",
    "q = -k*dt/dx \t\t\t#[MW/square meter]\n",
    "\n",
    "#RESULTS\n",
    "\n",
    "print \"Rate of heat transfer per unit area is\", q/1000000 ,\"MW/sq meter\"\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Exa 1.2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Rate of heat transfer is 2.156 kW\n"
     ]
    }
   ],
   "source": [
    "#Example Number 1.2\n",
    "# CALCULATE THE HEAT TRANSFER\n",
    "\n",
    "#Variable declaration\n",
    "\n",
    "Twall = 250 \t\t\t#[degree celsius] wall temperature\n",
    "Tair = 20 \t\t\t#[degree celsius] air temperature\n",
    "h = 25 \t\t\t\t#[W/square meter] heat transfer coefficient\n",
    "l = 75*10**(-2) \t\t#[m] length of plate\n",
    "b = 50*10**(-2) \t\t#[m] width of plate\n",
    "area = l*b \t\t\t#[square meter] area of plate\n",
    "dt = 250-20 \t\t\t#[degree celsius]\n",
    "\n",
    "\n",
    "#Calculation\n",
    "\n",
    "q = h*area*dt \t\t\t# [W] from newton's law of cooling\n",
    "\n",
    "\n",
    "#Result\n",
    "\n",
    "print\"Rate of heat transfer is\",round(q/1000,3),\"kW\" \n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Exa 1.3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Inside plate temperature is 253.05 degree C\n"
     ]
    }
   ],
   "source": [
    "#Example Number 1.3\n",
    "# Calculate the inside plate temperature.\n",
    "\n",
    "#variable declaration\n",
    "\n",
    "Qconv = 2156    \t  # [W] from previous problem\n",
    "Qrad = 300\t\t  # [W] given\n",
    "dx = 0.02\t\t  # [m] plate thicknesss\n",
    "l = 0.75 \t\t  # [m] length of plate \n",
    "w = 0.5  \t\t  # [m] width of plate\n",
    "k = 43\t\t\t  #[W/m] from table 1.1\n",
    "area = l*w\t\t  #[square meter] area of plate\n",
    "\n",
    "#Calculation\n",
    "\n",
    "Qcond = Qconv+Qrad \t  # [W]\n",
    "dt = Qcond*dx/(k*area) \t  # [degree celsius] temperature difference\n",
    "Ti = 250+dt \t\t  # inside temperature\n",
    "\n",
    "#Results\n",
    "\n",
    "print\"Inside plate temperature is\",round(Ti,2),\"degree C\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Exa 1.4"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Heat transfer is: 22.0 W\n",
      " This is equal to the electric power which must be applied\n"
     ]
    }
   ],
   "source": [
    "#Example Number 1.4\n",
    "# Calculate electric power to be supplied to the wire \n",
    "\n",
    "#Variable declaration\n",
    "\n",
    "d = 1*10**(-3) \t\t#[m] diameter of wire\n",
    "l = 10*10**(-2) \t#[m] length of wire\n",
    "Sarea = 22*d*l/7 \t#[square meter] surface area of wire\n",
    "h = 5000 \t\t#[W/square meter] heat transfer coefficient\n",
    "Twall = 114 \t\t# [degree celsius]\n",
    "Twater = 100\t        # [degree celsius]\n",
    "\n",
    "#total convection loss is given by equation(1-8)\n",
    "\n",
    "#Calculation\n",
    "\n",
    "Q = h*Sarea*(Twall-Twater) # [W]\n",
    "\n",
    "#Results\n",
    "\n",
    "print\"Heat transfer is:\",Q,\"W\" \n",
    "print\" This is equal to the electric power which must be applied\"\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Exa 1.5"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Heat transfer per unit area is: 69.03  kW/sq meter\n"
     ]
    }
   ],
   "source": [
    "#Example Number 1.5\n",
    "# radiation heat transfer\n",
    "# Calculate the heat transfer per unit area\n",
    "\n",
    "#Variable declaration\n",
    "\n",
    "sigma = 5.669*10**(-8) \t\t#[W/square meter*k^(4)] universal constant\n",
    "T1 = 273+800 \t\t\t# [k] first plate temperature\n",
    "T2 = 273+300 \t\t\t# [k] second plate temperature\n",
    "\n",
    "#equation(1-10) may be employed for this problem\n",
    "\n",
    "#Calculation\n",
    "Q = sigma*(T1**4-T2**4) \t# [W/square meter]\n",
    "\n",
    "#Results\n",
    "\n",
    "print\"Heat transfer per unit area is:\",round(Q/1000,2),\" kW/sq meter\"\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Exa 1.6"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Total heat loss is: 55.67 W/m\n"
     ]
    }
   ],
   "source": [
    "#Example Number 1.6\n",
    "# total heat loss by convection and radiation\n",
    "\n",
    "#Variable declaration\n",
    "d = 0.05 #[m] diameter of pipe\n",
    "Twall = 50 #[degree celsius] \n",
    "Tair = 20 #[degree celsius]\n",
    "emi = 0.8 #emissivity\n",
    "h = 6.5 #[W/square meter] heat transfer coefficient for free convection\n",
    "import math\n",
    "Q1 = h*math.pi*d*(Twall-Tair) #[W/m] convection loss per unit length\n",
    "sigma = 5.669*10**(-8) # [W/square meter*k^(4)] universal constant\n",
    "T1 = 273+Twall # [k]\n",
    "T2 = 273+Tair # [k]\n",
    "Q2 = emi*math.pi*d*sigma*((T1**(4))-(T2**(4))) # [W/m] heat loss due to radiation per unit length\n",
    "Qtotal = Q1+Q2 # [W/m] total heat loss per unit length\n",
    "\n",
    "print\"Total heat loss is:\",round(Qtotal,2),\"W/m\"\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}