summaryrefslogtreecommitdiff
path: root/3845/CH12/EX12.5/Ex12_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3845/CH12/EX12.5/Ex12_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3845/CH12/EX12.5/Ex12_5.sce')
-rw-r--r--3845/CH12/EX12.5/Ex12_5.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3845/CH12/EX12.5/Ex12_5.sce b/3845/CH12/EX12.5/Ex12_5.sce
new file mode 100644
index 000000000..377afceb5
--- /dev/null
+++ b/3845/CH12/EX12.5/Ex12_5.sce
@@ -0,0 +1,19 @@
+//Example 12.5
+r1=(6.40*10^-2)/2;//Radius of the hose (m)
+A1=%pi*r1^2;//Cross-sectional area of the hose (m^2)
+r2=(3*10^-2)/2;//Radius of the nozzle (m)
+A2=%pi*r2^2;//Cross-sectional area of the nozzle (m^2)
+Q=40;//Flow rate (L/s)
+Q=Q/10^3;//Flow rate (m^3/s)
+v1=Q/A1;//Speed of water in hose (m/s)
+v2=Q/A2;//Speed of water in nozzle (m/s)
+rho=1000;//Density of water (kg/m^3)
+g=9.80;//Acceleration due to gravity (m/s^2)
+h2=10;//Height above ground (m)
+P1=1.62*10^6;//Gauge pressure inside the hose at the start (N/m^2)
+//Taking initial height h1=0 (m)
+P2=P1+1/2*rho*(v1^2-v2^2)-(rho*g*h2);//Nozzle pressure from Bernoulli's equation (N/m^2)
+printf('(Gauge) Pressure in the nozzle = %0.1f N/m^2',P2)
+//The answer provided in the textbook is wrong
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest