summaryrefslogtreecommitdiff
path: root/2066/CH7/EX7.12/7_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2066/CH7/EX7.12/7_12.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 '2066/CH7/EX7.12/7_12.sce')
-rwxr-xr-x2066/CH7/EX7.12/7_12.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2066/CH7/EX7.12/7_12.sce b/2066/CH7/EX7.12/7_12.sce
new file mode 100755
index 000000000..7e7fb336a
--- /dev/null
+++ b/2066/CH7/EX7.12/7_12.sce
@@ -0,0 +1,18 @@
+clc
+clear
+//Initialization of variables
+p1=25 //psig
+p2=20 //psig
+d1=18 //in
+d2=12 //in
+Cl=0.25
+gam=62.4
+g=32.2 //ft/s^2
+//calculations
+Vr=(d2/d1)^2
+xv=(p2-p1)*144/gam
+V22=xv/(-1-Cl+Vr^2) *2*g
+V2=sqrt(V22)
+Q=V2*%pi/4 *(d2/12)^2
+//results
+printf("Discharge = %.1f ft^3/s",Q)