summaryrefslogtreecommitdiff
path: root/Principles_Of_Geotechnical_Engineering/Chapter7.ipynb
blob: 75e8c79b357b5df3831da04bb749c03af80138c9 (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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
{
 "metadata": {
  "name": "",
  "signature": "sha256:db9787af9c3d4874a56e96ce130e20ad75db81e8408117171d5753e7537a242c"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter7-Permeability"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg168"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Calculate the hydraulic conductivity in cm/sec.\n",
      "import math\n",
      "##initialisation of variables\n",
      "L= 30. ##cm\n",
      "A= 177. ##cm^2\n",
      "h= 50. ##cm\n",
      "Q= 350. ##cm^3\n",
      "t= 300. ##sec\n",
      "##claculations\n",
      "k=Q*L/(A*h*t)\n",
      "##results\n",
      "print'%s %.4f %s'% ('hydraulic conductivity = ',k,' cm/sec ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "hydraulic conductivity =  0.0040  cm/sec \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg169\n"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Determine the hydraulic conductivity of the soil in in./sec.\n",
      "import math\n",
      "##initialisation of variables\n",
      "L= 203. ##mm\n",
      "A= 10.3 ##cm^2\n",
      "a= 0.39 ##cm^2\n",
      "h0= 508. ##mm\n",
      "h180= 305. ##mm\n",
      "t= 180. ##sec\n",
      "##calculations\n",
      "k= 2.303*a*L*math.log10(h0/h180)/(A*t)\n",
      "##results\n",
      "print'%s %.2f %s'% ('hydraulic conductivity of sand = ',k,' in/sec ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "hydraulic conductivity of sand =  0.02  in/sec \n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg169"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#The hydraulic conductivity of a clayey soil is 3  107 cm/sec. The viscosity of water at 25\u00b0C is 0.0911  104 g # sec/cm2 \n",
      "#Calculate the absolute permeability of the soil.\n",
      "import math\n",
      "##initialisation of varilables\n",
      "k= 3e-7 ##cm/sec\n",
      "n= 0.0911e-4 ##g*sec/cm^2\n",
      "dw= 1 ##g/cc\n",
      "##calculations\n",
      "K= k*n/dw\n",
      "##results\n",
      "print'%s %.4f %s'% ('absolute premeability = ',K,' cm^2 ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "absolute premeability =  0.0000  cm^2 \n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex4-pg170"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#With k  5.3  105 m/sec for the permeable layer, calculate the rate of seepage through it in m3 /hr/m width if H  3 m and a  8\u00b0.\n",
      "\n",
      "import math\n",
      "##initialisation of variables\n",
      "k= 5.3e-5 ##m/sec\n",
      "H= 3 ##m\n",
      "a= 0.139 ##radians\n",
      "##calculations\n",
      "A= H*math.cos(a)\n",
      "i= math.sin(a)\n",
      "q= k*i*A*3600\n",
      "##results\n",
      "print'%s %.4f %s'% ('rate of seepage = ',q,' m^3/hr/m ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "rate of seepage =  0.0785  m^3/hr/m \n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex5-pg171"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate flow rate\n",
      "##initialisation of variables\n",
      "L= 50. ##m\n",
      "k= 0.08e-2##m/sec\n",
      "h= 4. ##m\n",
      "H1= 3. ##m\n",
      "H= 8. ##m\n",
      "a= 0.139 ##radians\n",
      "##calculations\n",
      "i= h*math.cos(a)/L\n",
      "A= H1*math.cos(a)\n",
      "q= k*i*A\n",
      "##results\n",
      "print'%s %.5f %s'% ('flow rate = ',q,' m^3/sec/m ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "flow rate =  0.00019  m^3/sec/m \n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex6-pg174"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate hydraulic conductivity at void ratio of 0.65\n",
      "##initialisation of variables\n",
      "k1= 0.02 ##cm/sec\n",
      "e1= 0.5 \n",
      "e2= 0.65\n",
      "##calculations\n",
      "k2= k1*(e2**3/(1.+e2))/(e1**3/(1.+e1))\n",
      "##results\n",
      "print'%s %.2f %s'% ('hydraulic conductivity at void ratio of 0.65 =',k2,'cm/sec ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "hydraulic conductivity at void ratio of 0.65 = 0.04 cm/sec \n"
       ]
      }
     ],
     "prompt_number": 18
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex8-pg177"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate hydraulic conductivity\n",
      "##initialisation of variables\n",
      "e= 0.6\n",
      "D10= 0.09 ##mm\n",
      "##calculations\n",
      "k= 2.4622*(D10**2*(e**3/(1+e)))**0.7825\n",
      "##results\n",
      "print'%s %.4f %s'% ('hydraulic conductivity = ',k,' cm/sec ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "hydraulic conductivity =  0.0119  cm/sec \n"
       ]
      }
     ],
     "prompt_number": 17
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex9-pg177"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate hydraulic conductivity\n",
      "##initialisation of variables\n",
      "e= 0.6\n",
      "D10= 0.09 ##mm\n",
      "D60= 0.16 ##mm\n",
      "##calculations\n",
      "Cu=D60/D10\n",
      "k= 35*(e**3/(1+e))*(Cu**0.6)*(D10**2.32)\n",
      "##results\n",
      "print'%s %.3f %s'% ('hydraulic conductivity =',k,'cm/sec ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "hydraulic conductivity = 0.025 cm/sec \n"
       ]
      }
     ],
     "prompt_number": 11
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex10-pg179"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate hydraulic conductivity\n",
      "##initialisation of variables\n",
      "k1= 0.302e-7 ##cm/sec\n",
      "k2= 0.12e-7 ##cm/sec\n",
      "e1= 1.1\n",
      "e2= 0.9\n",
      "e= 0.75\n",
      "##calcualtions\n",
      "n= (math.log10((k1/k2)*((1+e1)/(1+e2))))/math.log10(e1/e2)\n",
      "C= k1/(e1**n/(1+e1))\n",
      "k= C*(e**n/(1+e))\n",
      "##results\n",
      "print'%s %.e %s'% ('hydraulic conductivity =',k,'cm/sec')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "hydraulic conductivity = 5e-09 cm/sec\n"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex11-185"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate ration of equivalent hydraulic conductivity\n",
      "##initialisation of variables\n",
      "H1= 2. ##m\n",
      "H2= 3. ##m\n",
      "H3= 4. ##m\n",
      "k1= 1e-4 ##cm/sec\n",
      "k2= 3.2e-2 ##cm/sec\n",
      "k3= 4.1e-5 ##cm/sec\n",
      "##calculations\n",
      "H= H1+H2+H3\n",
      "Kh= (1./H)*((k1*H1)+(k2*H2)+(k3*H3))\n",
      "Kv= H/((H1/k1)+(H2/k2)+(H3/k3))\n",
      "P= Kh/Kv\n",
      "##results\n",
      "print'%s %.2f %s'% ('ration of equivalent hydraulic conductivity =',P,' ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "ration of equivalent hydraulic conductivity = 139.97  \n"
       ]
      }
     ],
     "prompt_number": 13
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex12-pg186"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate rate of water supply\n",
      "##initialisation of variables\n",
      "H= 450. ##mm\n",
      "h= 150. ##mm\n",
      "k1= 1e-2 ##cm/sec\n",
      "k2= 3e-3 ##cm/sec\n",
      "k3= 4.9e-4 ##cm/sec\n",
      "h1= 300. ##mm\n",
      "##calculations\n",
      "Kv= H/(h*(1./k1+1./k2+1./k3))\n",
      "i= h1/H\n",
      "q= Kv*i*100.*3600.\n",
      "##results\n",
      "print'%s %.2f %s'% ('rate of water supply =',q,' cm/hr ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "rate of water supply = 291.01  cm/hr \n"
       ]
      }
     ],
     "prompt_number": 15
    }
   ],
   "metadata": {}
  }
 ]
}