summaryrefslogtreecommitdiff
path: root/sample_notebooks/kotaDinesh Babu/samplebook(process_heat_transfer).ipynb
blob: b114e915548e9e88801d13bddb7661139cb6c832 (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#Chapter:2 CONDUCTION"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example2.1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      " heat is  Btu/hr  69120.0\n",
      "\t approximate values are mentioned in the book \n",
      "\n"
     ]
    }
   ],
   "source": [
    "#given\n",
    "Tavg=900; # average temperature of the wall,F\n",
    "k=0.15; # Thermal conductivity at 932 F,Btu/(hr)(ft^2)(F/ft)\n",
    "T1=1500; # hot side temperature,F\n",
    "T2=300; # cold side temperature,F\n",
    "A=192; # surface area,ft^2\n",
    "L=0.5; # thickness,ft\n",
    "#solution\n",
    "Q=(k)*(A)*(T1-T2)/L; # formula for heat,Btu/hr\n",
    "print \" heat is  Btu/hr \",Q\n",
    "print\"\\t approximate values are mentioned in the book \\n\"\n",
    "#end\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example2.2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\t resistance offered by firebrick :  (hr)*(F)/Btu  0.97\n",
      "\t resistance offered by insulating brick : (hr)*(F)/Btu  2.2\n",
      "\t resistance offered by buildingbrick : (hr)*(F)/Btu  1.25\n",
      "\t total resistance offered by three walls : (hr)*(F)/Btu  4.42\n",
      "\t heat loss/ft^2 :  Btu/hr  331.0\n",
      "\t delta is : F  322.0\n",
      "\t temperature at interface of firebrick and insulating brick  F  1278.0\n",
      "\t deltb is :  F  729.0\n",
      "\t temperature at interface of insulating brick and building brick  F  549.0\n",
      "\t approximate values are mentioned in the book \n",
      "\n"
     ]
    }
   ],
   "source": [
    "#given\n",
    "La=0.66; # Thickness of firebrick wall,ft\n",
    "Lb=0.33; # Thickness of insulating brick wall,ft\n",
    "Lc=0.5; # Thickness of building brick wall,ft\n",
    "Ka=0.68; # themal conductivity of firebrick,Btu/(hr)*(ft^2)*(F/ft)\n",
    "Kb=0.15; # themal conductivity of insulating brick,Btu/(hr)*(ft^2)*(F/ft)\n",
    "Kc=0.40; # themal conductivity of building brick,Btu/(hr)*(ft^2)*(F/ft)\n",
    "A=1.; # surface area,ft^2\n",
    "Ta=1600.; # temperature of inner wall,F\n",
    "Tb=125.; # temperature of outer wall.F\n",
    "#solution\n",
    "Ra=La/(Ka)*(A); # formula for resistance,(hr)*(F)/Btu\n",
    "print\"\\t resistance offered by firebrick :  (hr)*(F)/Btu \",round(Ra,2)\n",
    "Rb=Lb/(Kb)*(A); # formula for resistance,(hr)*(F)/Btu\n",
    "print\"\\t resistance offered by insulating brick : (hr)*(F)/Btu \",round(Rb,2)\n",
    "Rc=Lc/(Kc)*(A); # formula for resistance,(hr)*(F)/Btu\n",
    "print\"\\t resistance offered by buildingbrick : (hr)*(F)/Btu \",round(Rc,2)\n",
    "R=Ra+Rb+Rc; # total resistance offered by three walls,(hr)*(F)/Btu\n",
    "print\"\\t total resistance offered by three walls : (hr)*(F)/Btu \",round(R,2)\n",
    "Q=(1600-125)/4.45; # using formula for heat loss/ft^2,Btu/hr\n",
    "print\"\\t heat loss/ft^2 :  Btu/hr \",round(Q,0)\n",
    "# T1,T2 are temperatures at interface of firebrick and insulating brick, and insulating brick and building brick respectively,F\n",
    "delta=(Q)*(Ra); # formula for temperature difference,F\n",
    "print\"\\t delta is : F \",round(delta,0)\n",
    "T1=Ta-((Q)*(Ra)); # temperature at interface of firebrick and insulating brick,F\n",
    "print\"\\t temperature at interface of firebrick and insulating brick  F \",round(T1,0)\n",
    "deltb=Q*(Rb);\n",
    "print\"\\t deltb is :  F \",round(deltb,0)\n",
    "T2=T1-((Q)*(Rb)); #temperature at interface of insulating brick and building brick,F\n",
    "print\"\\t temperature at interface of insulating brick and building brick  F \",round(T2,0)\n",
    "print\"\\t approximate values are mentioned in the book \\n\"\n",
    "#end\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example2.3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\t approximate values are mentioned in the book \n",
      "\n",
      "\t resistance offered by air film (hr)(F)/Btu  0.79\n",
      "\t total resistance  (hr)(F)/Btu  5.24\n",
      "\t heat loss  Btu/hr  282.0\n"
     ]
    }
   ],
   "source": [
    "\n",
    "print\"\\t approximate values are mentioned in the book \\n\"\n",
    "#given\n",
    "Lair=0.25/12; # thickness of air film,ft\n",
    "Kair=0.0265; # thermal conductivity of air at 572F,Btu/(hr)*(ft^2)(F/ft)\n",
    "A=1; # surface area,ft^2\n",
    "#solution\n",
    "Rair=Lair/(Kair*(A)); # resistance offered by air film, (hr)(F)/Btu\n",
    "print\"\\t resistance offered by air film (hr)(F)/Btu \",round(Rair,2)\n",
    "R=4.45; # resistance from previous example 2.2,(hr)(F)/Btu\n",
    "Rt=(R)+Rair; # total resistance,(hr)(F)/Btu\n",
    "print\"\\t total resistance  (hr)(F)/Btu \",round(Rt,2)\n",
    "Ta=1600; # temperature of inner wall,F\n",
    "Tb=125; # temperature of outer wall,F\n",
    "Q=(1600-125)/Rt; # heat loss, Btu/hr\n",
    "print\"\\t heat loss  Btu/hr \",round(Q,0)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example2.4"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#given\n",
    "k=0.63; # thermal conductivity of pipe, Btu/(hr)*(ft^2)*(F/ft)\n",
    "Do=6. # in\n",
    "Di=5. # in\n",
    "Ti=200.;# inner side temperature,F\n",
    "To=175.; # outer side temperature,F\n",
    "#solution\n",
    "import math\n",
    "from math import log\n",
    "q=(2*(3.14)*(k)*(Ti-To))/(log (Do/Di)); # formula for heat flow,Btu/(hr)*(ft)\n",
    "print\"\\t heat flow is :  Btu/(hr)*(ft) \",round(q,0)\n",
    "print\"\\t approximate values are mentioned in the book \\n\"\n",
    "# caculation mistake in book\n",
    "# end\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example2.5"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\t approximate values are mentioned in the book \n",
      "\n",
      "\t heat loss for linear foot is :  Btu/(hr)*(lin ft)  104.4\n",
      "\t Check between ts and t1, since delt/R = deltc/Rc \n",
      "\t t1 is :  F  122.300238658\n",
      "\t heat loss for linear foot is :  Btu/(hr)*(lin ft) 102.9\n",
      "\t Check between ts and t1, since delt/R = deltc/Rc \n",
      "\t t1 is : F \n",
      "125.4\n"
     ]
    }
   ],
   "source": [
    "print\"\\t approximate values are mentioned in the book \\n\"\n",
    "#given\n",
    "t1=150; # assume temperature of outer surface of rockwool,F\n",
    "ta=70; # temperature of surrounding air,F\n",
    "ha=2.23; # surface coefficient,Btu/(hr)*(ft^2)*(F)\n",
    "#solution\n",
    "import math\n",
    "from math import log\n",
    "q=(3.14)*(300-70)/(((1/(2*0.033))*log(3.375/2.375))+(1/((2.23)*(3.375/12)))); # using formula for heat loss,Btu/(hr)*(lin ft), calculation mistake\n",
    "print\"\\t heat loss for linear foot is :  Btu/(hr)*(lin ft) \",round(q,1)\n",
    "print\"\\t Check between ts and t1, since delt/R = deltc/Rc \"\n",
    "t1=300-(((104.8)*((1)*(log(3.375/2.375))))/((2)*(3.14)*(.033))); # using eq 2.31,F\n",
    "print\"\\t t1 is :  F \",t1\n",
    "t1=125; # assume temperature of outer surface of rockwool,F\n",
    "ha=2.10; # surface coefficient,Btu/(hr)*(ft^2)*(F)\n",
    "q=((3.14)*(300-70))/(((1/(2*0.033))*log(3.375/2.375))+(1/((2.10)*(3.375/12)))); # using formula for heat loss,Btu/(hr)*(lin ft)\n",
    "print\"\\t heat loss for linear foot is :  Btu/(hr)*(lin ft)\",round(q,1)\n",
    "print\"\\t Check between ts and t1, since delt/R = deltc/Rc \"\n",
    "t1=300-(((103)*((1)*(log(3.375/2.375))))/((2)*(3.14)*(.033))); # using eq 2.31,F\n",
    "print\"\\t t1 is : F \\n\",round(t1,1)\n",
    "# end \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "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.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}