summaryrefslogtreecommitdiff
path: root/3751/CH2/EX2.34/Ex2_34.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3751/CH2/EX2.34/Ex2_34.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 '3751/CH2/EX2.34/Ex2_34.sce')
-rw-r--r--3751/CH2/EX2.34/Ex2_34.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3751/CH2/EX2.34/Ex2_34.sce b/3751/CH2/EX2.34/Ex2_34.sce
new file mode 100644
index 000000000..9cd9e0867
--- /dev/null
+++ b/3751/CH2/EX2.34/Ex2_34.sce
@@ -0,0 +1,30 @@
+//Fluid system - By - Shiv Kumar
+//Chapter 2 - Impact of Jet
+//Example 2.34
+ clc
+ clear
+
+//Given Data:-
+ F=100800; //Total resistance offered to motion, N
+ a=0.8; //Total area of Jet, m^2
+ u=5; //Speed of boat, m/s
+
+//Data Used:-
+ rho=1000; //Density of water, kg/m^3
+
+//Computations:-
+ //For solving Quadratic in V
+ A=rho*a;
+ B=rho*a*u;
+ C=-F;
+ V=(-B+sqrt(B^2-4*C*A))/(2*A); //m/s
+ //(a)
+ Q=a*(V+u); //m^3/s
+ //(b)
+ eta=2*V*u/(V+u)^2*100; //In percentage
+
+//Results:-
+ printf("(a)The Volume of water drawn by the pump per second=%.1f m^3/s \n", Q)
+ printf("(b)The Efficiency of Jet propulsion, eta=%.2f percent", eta) //The answer vary due to round off error
+
+