summaryrefslogtreecommitdiff
path: root/Principles_Of_Geotechnical_Engineering_by_B._M._Das/Chapter6.ipynb
blob: 965ec97de94ef3129f67747337341f83daaebe5d (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:9e373112e48f07ee80b6b4af3f674669c699f5259766125b19738d8e5f5cd0b1"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter6-Soil Compaction"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex2-pg127"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate maximum dry density and optimum moisture content\n",
      "##initialisation of variables\n",
      "G= 2.6\n",
      "LL= 20.\n",
      "P= 20.\n",
      "##calclations\n",
      "R= (4804574.*G-195.55*(LL)**2+156971*(P)**0.5-9527830)**0.5\n",
      "n= (1.195e-4)*((LL)**2)-1.964*G-(6.617e-5)*(P)+7.651\n",
      "w= math.e**n\n",
      "##results\n",
      "print'%s %.1f %s'% ('maximum dry density = ',R,' kg/m^3 ')\n",
      "print'%s %.2f %s'%('optimum moisture content = ',w,' ')\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "maximum dry density =  1894.2  kg/m^3 \n",
        "optimum moisture content =  13.34  \n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg143"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate dry unit weight of compaction in the field and dry unit weight of compaction in the field\n",
      "##initialisation of variables\n",
      "do= 1570. ##kg/m^3\n",
      "mo= 0.545 ##kg\n",
      "M1= 7.59 ##kg\n",
      "M2= 4.78 ##kg\n",
      "M3= 3.007 ##kg\n",
      "w= 0.102 ##\n",
      "dmax= 19. ##KN/m^3\n",
      "##calculations\n",
      "Ms= M1-M2\n",
      "Mc= Ms-mo\n",
      "Vh= Mc/do\n",
      "Dc= M3/Vh\n",
      "Du= Dc*9.81/1000.\n",
      "f= Du/(1.+w)\n",
      "Rc= f*100./dmax\n",
      "##results\n",
      "print'%s %.2f %s'% ('dry unit weight of compaction in the field = ',f,' kN/m^3 ')\n",
      "print'%s %.1f %s'% ('relative compaction in the field = ',Rc,'')\n",
      "#calculate the value of gamma and plot the graph\n",
      "%matplotlib inline\n",
      "import warnings\n",
      "warnings.filterwarnings('ignore')\n",
      "import math\n",
      "from math import log\n",
      "import numpy\n",
      "from math import tan\n",
      "import matplotlib\n",
      "from matplotlib import pyplot\n",
      "#given\n",
      "p=numpy.array([6,8,9,11,12,14])\n",
      "e=numpy.array([14.80,17.45,18.52,18.9,18.5,16.9])\n",
      "\n",
      "#calculations\n",
      "\n",
      "\n",
      "#results\n",
      "\n",
      "pyplot.plot(p,e)\n",
      "pyplot.xlabel('gamma')\n",
      "pyplot.ylabel('weight ,w')\n",
      "pyplot.title('Graph of gamma vs w')\n",
      "pyplot.show()\n",
      "print('look at the axis reverse in text book')"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "dry unit weight of compaction in the field =  18.55  kN/m^3 \n",
        "relative compaction in the field =  97.7 \n"
       ]
      },
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEZCAYAAACJjGL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xmc3eP5//HXu4k9QdXW6JIuRG2xRERUDVVNG6WoWn6+\naoudVimNfiuxlKJKLaHfEK2W2LfQklATaRMkhEQIVVtCUAQJIdv1++P+jJxMzqw553zOmXk/H495\n5Cyf5ZpkMte5t+tWRGBmZtaUz+QdgJmZVTcnCjMza5YThZmZNcuJwszMmuVEYWZmzXKiMDOzZjlR\nWIcgaaikv5ToWutJeljSB5IuLMU1zWqZE4WVhaT9JT0qaa6kNyU9IumYMt6ylAuCjgTeiojVI+IX\nJbyuWU1yorCSk3QycAlwPrBeRKwHHA3sIGnFJs5Z3p9FLef5hb4MPFvC65nVNCcKKylJawBnAsdE\nxO0R8SFARDwZEQdFxPzsuD9JulLS3yTNBeokDZQ0WdL7kl6VNKTguj0lLZY0SNJrkl7PElKDAFaU\n9Oesy+hpSds0E2d/SRMlvSfpMUnbN8QFHAycKmmOpF2KnPs5SaOyOB+TdI6kcQXv/yGL/31JkyR9\ns+C9oZJukfSXLM4pkjaUNDhreb0i6TsFx9dLOlvSv7J47pa0tqTrC+7/5dbcu9H3sJ2kWZJU8Npe\nkp7KHvfNzn9f0huSLmriOmMl7Z093iH7N/p+9vzbkiY39W9gtcOJwkpte2Al4K5WHHsAcHZEdAP+\nBcwFDoqINYCBwDGS9mx0Th3wdWA34DRJ385eF7AHMBJYA7gbuLzYTSWtBdxLavWsBfweuFfSZyPi\nEOB64PyI6B4R/yhyiSuAOcB6wE9IiaWw6+sxoDfwWeAG4JZGLandgeuy9ycDY7LXewBnA39sdL/9\ngIOADYCvAROAa7LYnwWGFBzb0r0BiIhHgQ+Bbx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ppEqdU0jlse/PjpsKfBwRiyQ9nR0DsCJwuaTewCKgofClWa7c\nojBbWlC8iuq1wLERsQVwJrBKwXvzsz8Xk4qvUfC84cPYgkavzweItHNbwzEnAbOye/QhJQ6z3DlR\nmC3tX8APJK0kqRuwe/Z6d+ANSSsAB1GejYhWJ1VwBTiYtH+5We6cKMwKRMQk0jjDFNKWm1OB94Ff\nk/Zr/idpjGKp05p43NQxTZ0zDPiJpCeBXsDctsZvVg4uM27WiKTVIuLDbNvIscCgiHgy77jM8uLB\nbLNl/Z+kTYCVgT85SVhn5xaFmZk1y2MUZmbWLCcKMzNrlhOFmZk1y4nCzMya5URhZmbNcqIwM7Nm\n/X/kMsqaulAsNgAAAABJRU5ErkJggg==\n",
       "text": [
        "<matplotlib.figure.Figure at 0x566c2f0>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "look at the axis reverse in text book\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex4-pg155"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "import math\n",
      "#calculate sustainabilty number\n",
      "##initialisation of variables\n",
      "D1= 0.36 ##mm\n",
      "D2= 0.52 ##mm\n",
      "D5= 1.42 ##mm\n",
      "##calculations\n",
      "Sn= 1.7*(math.sqrt((3./(D5)**2)+(1./(D2)**2)+(1./(D1)**2)))\n",
      "##results\n",
      "print'%s %.1f %s'% ('sustainabilty number = ',Sn,' ')\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "sustainabilty number =  6.1  \n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}