summaryrefslogtreecommitdiff
path: root/1457/CH2/EX2.5/2_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1457/CH2/EX2.5/2_5.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 '1457/CH2/EX2.5/2_5.sce')
-rwxr-xr-x1457/CH2/EX2.5/2_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1457/CH2/EX2.5/2_5.sce b/1457/CH2/EX2.5/2_5.sce
new file mode 100755
index 000000000..9f91d6672
--- /dev/null
+++ b/1457/CH2/EX2.5/2_5.sce
@@ -0,0 +1,18 @@
+clc
+//Initialization of variables
+dia=4 //m
+P=35 //kN/m^2
+theta=30 //degrees
+//Calculations
+Fx=P*(dia-dia*(1-cosd(theta))/2.)
+Fz=P*dia*sind(theta)/2
+dist=(dia-dia*(1-cosd(theta))/2.)
+Fxb=9.81*dist*dist/2
+Fzb=9.81*((180+theta)*%pi*(dia/2)^2/360 + sqrt(3) /2 + dia/2)
+//Results
+printf('part a')
+printf('\n Horizontal force= %.1f kN/m to the right', Fx)
+printf('\n Vertical force = %.1f kN/m upward' , Fz)
+printf('\n part b')
+printf('\n force by the fluid = %.1f kN/m to the right',Fxb)
+printf('\n weight of the cross-hatched volume of liquid =%.1f kN/m Upward',Fzb )