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 --- 2066/CH7/EX7.12/7_12.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2066/CH7/EX7.12/7_12.sce (limited to '2066/CH7/EX7.12/7_12.sce') 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) -- cgit