From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2159/CH1/EX1.19/19.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 2159/CH1/EX1.19/19.sce (limited to '2159/CH1/EX1.19/19.sce') diff --git a/2159/CH1/EX1.19/19.sce b/2159/CH1/EX1.19/19.sce new file mode 100755 index 000000000..fa4d39245 --- /dev/null +++ b/2159/CH1/EX1.19/19.sce @@ -0,0 +1,15 @@ +//problem 1.19 +s=1.5 +s1=0.9 +w=9810 +h1=0.9 +h2=0.6 +p1=0.5*w*s*s1*h1*h1 //total pressure due to oil +p2=w*h1*h2*s*s1 // total pressure due to oil above water +p3=w*h2*h2*0.5*s //total pressure due to water +p=p1+p2+p3 +h=((p1*0.6666*h1)+(p2*(h1+0.5*h2))+(p3*(0.6666*h2+h1)))/p +disp(p,"resultant pressure on the wall in N/m2") +disp(h,"position of centre of pressure from free surface") + + -- cgit