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 --- 858/CH4/EX4.9/example_9.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 858/CH4/EX4.9/example_9.sce (limited to '858/CH4/EX4.9') diff --git a/858/CH4/EX4.9/example_9.sce b/858/CH4/EX4.9/example_9.sce new file mode 100755 index 000000000..3ccdea2eb --- /dev/null +++ b/858/CH4/EX4.9/example_9.sce @@ -0,0 +1,18 @@ +clc +clear +printf("example 4.9 page number 138\n\n") + +//to find the flow properties +d1=0.05 //in m +A1=(3.14*d1^2)/4; +density_1=2.1 //in kg/m3 +u1=15 //in m/s +P1=1.8; //in bar +P2=1.3; //in bar + +w=density_1*A1*u1; +density_2=density_1*(P2/P1); +printf("density at section 2 = %f kg/cubic meter",density_2) + +u2=u1*(density_1/density_2)*(0.05/0.075)^2; +printf("\n\nvelocity at section 2 = %f m/s",u2) -- cgit