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.7/7_7.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2504/CH7/EX7.7/7_7.sce (limited to '2504/CH7/EX7.7/7_7.sce') diff --git a/2504/CH7/EX7.7/7_7.sce b/2504/CH7/EX7.7/7_7.sce new file mode 100755 index 000000000..299851d2f --- /dev/null +++ b/2504/CH7/EX7.7/7_7.sce @@ -0,0 +1,26 @@ +clc +//initialisation of variables +clear +p1= 50 //lbf/in^2 +R= 96.3 //ft lbf/lbm R +T= 80 //F +p2= 20 //lbf/in^2 +r= 1.31 +u= 2.34*10^-7 //lbf sec/ft^2 +e= 0.00005 //ft +m= 5*10^4 //lbm/sec +d= 1.5 //ft +g= 32.2 //ft/sec^2 +f= 0.113 +//CALCULATIONS +w1= p1*144/(R*(460+T)) +V1= 4*(m/3600)/(%pi*w1*d^2) +Ma1= V1/(r*R*g*(460+T))^0.5 +Re= w1*V1*d/(u*g) +dx= (((1/(r*Ma1^2))*10*(1-(p2/p1)^2))+log(p2/p1))*d/f +//RESULTS +printf ('density = %.3f lbm/ft^3',w1) +printf ('\n mean flow velocity = %.1f ft/sec',V1) +printf ('\n Match number = %.4f ',Ma1) +printf ('\n Reynolds number = %.2e ',Re) +printf ('\n Length of pipe = %.2e ft',dx) -- cgit