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 --- 2504/CH7/EX7.2/7_2.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 2504/CH7/EX7.2/7_2.sce (limited to '2504/CH7/EX7.2/7_2.sce') diff --git a/2504/CH7/EX7.2/7_2.sce b/2504/CH7/EX7.2/7_2.sce new file mode 100755 index 000000000..d10e67017 --- /dev/null +++ b/2504/CH7/EX7.2/7_2.sce @@ -0,0 +1,22 @@ +clc +//initialisation of variables +clear +a= 6 //degrees +r= 1.5 +l= 100 //ft +f= 0.025 +K= 0.15 +//CALCULATIONS +R= r^4-1 +R1= cotd(a/2)*(1-(1/r)) +p1= f*l +p2= 2.5*(l-p1)/l +p3= (1-r^2)^2 +p4= K*p3 +pt= p4+p2 +//RESULTS +printf ('lowest ratio = %.2f',R) +printf ('\n contribtuion of friction in pipe = %.1f lbf/ft^2',p1) +printf ('\n contribtuion of diffuser in pipe = %.3f lbf/ft^2',p2) +printf ('\n stagnant pressure drop = %.3f lbf/ft^2',p3) +printf ('\n contribtuion of friction in pipe after reduction = %.3f lbf/ft^2',pt) -- cgit