summaryrefslogtreecommitdiff
path: root/172/CH2/EX2.7/ex7.sce
diff options
context:
space:
mode:
Diffstat (limited to '172/CH2/EX2.7/ex7.sce')
-rwxr-xr-x172/CH2/EX2.7/ex7.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/172/CH2/EX2.7/ex7.sce b/172/CH2/EX2.7/ex7.sce
new file mode 100755
index 000000000..d3681adae
--- /dev/null
+++ b/172/CH2/EX2.7/ex7.sce
@@ -0,0 +1,15 @@
+//example 6
+//calculating balancing force
+clear
+clc
+Po=100//Outside atmospheric pressure in kPa
+F1=25 //net force on the smallest piston in kN
+A1=0.01 //cross sectional area of lower piston in m^2
+P1=Po+F1/A1 //fluid pressure in kPa
+d=900 //density of fluid in kg/m^3
+g=9.81 //acc. due to gravity in m/s^2
+H=6 //height of second piston in comparison to first one in m
+P2=P1-d*g*H/1000 //pressure at higher elevation on piston 2 in kPa
+A2=0.05 // cross sectional area of higher piston in m^3
+F2=(P2-Po)*A2 //balancing force on second piston in kN
+printf("\n hence, balancing force on second larger piston is F2 = %.1f N. \n",F2) \ No newline at end of file