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
|
{
"metadata": {
"name": "",
"signature": "sha256:7d0e973e8ccf199512f5a464e18af5d87fc63e5365435eef6c9cd5f40b3801c3"
},
"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"
],
"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"
]
}
],
"prompt_number": 2
},
{
"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": {}
}
]
}
|