summaryrefslogtreecommitdiff
path: root/3814/CH2/EX2.1/EX2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3814/CH2/EX2.1/EX2_1.sce')
-rw-r--r--3814/CH2/EX2.1/EX2_1.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3814/CH2/EX2.1/EX2_1.sce b/3814/CH2/EX2.1/EX2_1.sce
new file mode 100644
index 000000000..75b43505c
--- /dev/null
+++ b/3814/CH2/EX2.1/EX2_1.sce
@@ -0,0 +1,14 @@
+
+// to determine pressure at station point 2
+// applying bernoullis equation
+// ex 2.1 pgno.39
+clc;
+p1=50 // pressure at point 1
+v1=5// velocity
+g=9.8// constant
+p2=p1+((v1^2)/(2*g)) //ipressure equation according to bernoullis equation
+mprintf('%f Pascal',p2)// displaying pressure
+psw=1.03e3// specific gravity in kg/m3
+P2=psw*g*p2 // calculating pressure at station 2
+mprintf('\n P2= %e Pascal',P2)
+