diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /858/CH8/EX8.7 | |
download | Scilab-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/CH8/EX8.7')
-rwxr-xr-x | 858/CH8/EX8.7/example_7.sce | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/858/CH8/EX8.7/example_7.sce b/858/CH8/EX8.7/example_7.sce new file mode 100755 index 000000000..d62873e68 --- /dev/null +++ b/858/CH8/EX8.7/example_7.sce @@ -0,0 +1,29 @@ +clc
+clear
+printf("example 8.7 page number 367\n\n")
+
+//to find the flow rate in an orifice
+density_of_water = 1000; //in kg/m3
+viscosity = 1*10^-3; //in Pa-s
+pipe_diameter = 250; //in mm
+orifice_diameter = 50; // in mm
+density_of_mercury = 13600; // in mm
+manometer_height = 242; //in mm
+
+//calculation
+height_water_equivalent = (density_of_mercury-density_of_water)*(manometer_height*10^-3)/(density_of_water) //in m
+
+//assuming Re>30000
+Co = 0.61;
+velocity = Co*(2*9.8*height_water_equivalent/(1-(orifice_diameter/pipe_diameter)^4))^0.5; //in m/s
+
+//checking Reynold's number
+Re = (orifice_diameter*10^-3*velocity*density_of_water)/viscosity;
+printf("reynolds number = %f\nwhich is greater than 30000",Re)
+
+if Re>30000 then printf("\n\nvelocity of water = %f m/s",velocity)
+
+end
+
+rate_of_flow = (3.14*(orifice_diameter*10^-3)^2/4)*velocity*density_of_water;
+printf("\n\nrate of flow = %f litre/s",rate_of_flow)
|