summaryrefslogtreecommitdiff
path: root/1793/CH9/EX9.1/9q1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1793/CH9/EX9.1/9q1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1793/CH9/EX9.1/9q1.sce')
-rwxr-xr-x1793/CH9/EX9.1/9q1.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1793/CH9/EX9.1/9q1.sce b/1793/CH9/EX9.1/9q1.sce
new file mode 100755
index 000000000..5778eada2
--- /dev/null
+++ b/1793/CH9/EX9.1/9q1.sce
@@ -0,0 +1,24 @@
+clc
+//initialisation of variables
+Ds= 16.5 //kN/m^3
+S= 19.25 //kN/m^3
+g= 9.8 //kN/m^3
+h1= 6 //m
+h2= 13 //m
+//at point A
+Sa= 0
+Ua= 0
+Sa1= 0
+//at point B
+Sb= h1*Ds
+Ub= 0
+Sb1= Sb-Ub
+//at point C
+Sc= h1*Ds+h2*S
+Uc= h2*g
+Sc1= Sc-Uc
+//results
+printf ('total pressure at C= % 2f kN/m^3 ',Sc)
+printf ('pore water pressure at C = % 2f kN/m^3 ',Uc)
+printf ('effective stress at point C= % 2f kN/m^3 ',Sc1)
+