summaryrefslogtreecommitdiff
path: root/858/CH4/EX4.9
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /858/CH4/EX4.9
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 '858/CH4/EX4.9')
-rwxr-xr-x858/CH4/EX4.9/example_9.sce18
1 files changed, 18 insertions, 0 deletions
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)