summaryrefslogtreecommitdiff
path: root/Principles_Of_Geotechnical_Engineering_by_B._M._Das/Chapter9.ipynb
blob: 005e638cce4211a3807be1752690777d00224af8 (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:c82d7ef2a69a4d72efc2edfc8621bdf4ff77be194f7e8e01b4cf1b42672764ab"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter9-In Situ Stresses"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg230"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate total pressure and pore water pressure and effective stress at point\n",
      "##initialisation of variables\n",
      "Ds= 16.5 ##kN/m**3\n",
      "S= 19.25 ##kN/m**3\n",
      "g= 9.8 ##kN/m**3\n",
      "h1= 6. ##m\n",
      "h2= 13. ##m\n",
      "##at point A\n",
      "Sa= 0.\n",
      "Ua= 0.\n",
      "Sa1= 0.\n",
      "##at point B\n",
      "Sb= h1*Ds\n",
      "Ub= 0.\n",
      "Sb1= Sb-Ub\n",
      "##at point C\n",
      "Sc= h1*Ds+h2*S\n",
      "Uc= h2*g\n",
      "Sc1= Sc-Uc\n",
      "##results\n",
      "print'%s %.2f %s'% ('total pressure at C= ',Sc,' kN/m^3 ')\n",
      "print'%s %.2f %s'% ('pore water pressure at C = ',Uc,' kN/m^3 ')\n",
      "print'%s %.2f %s'% ('effective stress at point C=',Sc1,' kN/m^3 ')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "total pressure at C=  349.25  kN/m^3 \n",
        "pore water pressure at C =  127.40  kN/m^3 \n",
        "effective stress at point C= 221.85  kN/m^3 \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg233"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate maximu depth that can be made in clay\n",
      "##initialisation of variables\n",
      "h= 20. ##ft\n",
      "g= 120. ##kg/ft**3\n",
      "h1= 12. ##ft\n",
      "w= 62.4 ##kg/ft**3\n",
      "##calculations\n",
      "H= h-(h1*w/g)\n",
      "##results\n",
      "print'%s %.2f %s'% ('maximu depth that can be made in clay = ',H,' ft ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "maximu depth that can be made in clay =  13.76  ft \n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg236"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate effective stress at point a and b and see page force per unit voume\n",
      "##initialisation of variables\n",
      "G= 2.68\n",
      "e= 0.52\n",
      "g= 9.81 ##kN/m^3\n",
      "h1= 0.7 ##m\n",
      "h2= 1 ##m\n",
      "h3= 1.5 ##m\n",
      "h4= 2 ##m\n",
      "##calculations\n",
      "##for soil A\n",
      "sa= (G+e)*g/(1.+e)\n",
      "##point a\n",
      "Sa= h1*g+h2*sa\n",
      "u= (h2+h1+h3/2.)*g\n",
      "Es= Sa-u\n",
      "##point b\n",
      "sb= h1*g+h4*sa\n",
      "ub= (h4+h1+h3)*g\n",
      "Eb= sb-ub\n",
      "i= h3/2.\n",
      "s= i*g\n",
      "##results\n",
      "print'%s %.2f %s'% ('effective stress at point a=',Es,' kN/m^2 ')\n",
      "print'%s %.2f %s'% ('effective stress at point b= ',Eb,'kN/m^2 ')\n",
      "print'%s %.2f %s'% ('seepage force per unit voume = ',s,' kN/m^3 ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "effective stress at point a= 3.49  kN/m^2 \n",
        "effective stress at point b=  6.97 kN/m^2 \n",
        "seepage force per unit voume =  7.36  kN/m^3 \n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex4-pg239"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate safety factor\n",
      "##initialisation of variables\n",
      "C0= 0.357\n",
      "H1= 30.5 ##ft\n",
      "H2= 5. ##ft\n",
      "w= 62.4 ## lb/ft^3\n",
      "D= 20.\n",
      "g= 112. ## lb/ft^3\n",
      "##calculations\n",
      "G= g-w\n",
      "FS= D*G/(C0*w*(H1-H2))\n",
      "##results\n",
      "print'%s %.1f %s'% ('safety factor =',FS,' ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "safety factor = 1.7  \n"
       ]
      }
     ],
     "prompt_number": 5
    }
   ],
   "metadata": {}
  }
 ]
}