diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /629/CH3/EX3.3/example3_3.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '629/CH3/EX3.3/example3_3.sce')
-rw-r--r-- | 629/CH3/EX3.3/example3_3.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/629/CH3/EX3.3/example3_3.sce b/629/CH3/EX3.3/example3_3.sce new file mode 100644 index 000000000..3e1d146f8 --- /dev/null +++ b/629/CH3/EX3.3/example3_3.sce @@ -0,0 +1,16 @@ +clear
+clc
+//Example 3.3 PRESSURE IN TANK WITH TWO FLUIDS
+//Hydrostatic equation(oil), p1/g_oil +z1=p2/g_oil +z2
+p1=0; //[Pa]
+z1=3; //[m]
+z2=2.1; //[m]
+g_oil=0.8*9810; //specific weight of oil[N/m^3]
+p2=(p1+(z1-z2)*g_oil)/10^3//[kPa] (factor 1kPa/10^3Pa)
+
+//At oil-water interface, p2_oil=p2_water
+//Hydrostatic equation(water), p2/g_water +z2=p3/g_water +z3
+z3=0; //[m]
+g_water=9810; //specific weight of water[N/m^3]
+p3=p2+(z2-z3)*g_water/10^3 //[kPa]
+printf("\nThe gage pressure at the bottom of the tank = %.1f kPa gage.\n",p3)
\ No newline at end of file |