summaryrefslogtreecommitdiff
path: root/689/CH9/EX8.3/3.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /689/CH9/EX8.3/3.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 '689/CH9/EX8.3/3.sce')
-rw-r--r--689/CH9/EX8.3/3.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/689/CH9/EX8.3/3.sce b/689/CH9/EX8.3/3.sce
new file mode 100644
index 000000000..a67630ce9
--- /dev/null
+++ b/689/CH9/EX8.3/3.sce
@@ -0,0 +1,32 @@
+clc; funcprot(0);
+//Example 9.3 Horseshoe Vortex
+
+// Initialisation of variables
+T = 250;
+
+// Calculations
+function[y] =Velocity(R, theta1, theta2)
+ y = (T/(4*%pi*R))*(cos(theta1)-cos(theta2))
+endfunction
+//Considering Leg AB
+ theta1 = 0; //From figure
+ theta2 = %pi - atan(4/5); //From figure
+ R = 4; //From figure
+ Vt1 = Velocity(R, theta1, theta2);
+
+//Considering Leg BC
+ theta1 = atan(5/4); //From figure
+ theta2 = %pi - atan(5/6); //From figure
+ R = 5; //From figure
+ Vt2 = Velocity(R, theta1, theta2);
+
+//Considering Leg CD
+ theta1 = atan(5/6); //From figure
+ theta2 = %pi; //From figure
+ R = 6; //From figure
+ Vt3 = Velocity(R, theta1, theta2);
+
+Vt = Vt1 + Vt2 + Vt3;
+
+//Results
+disp(Vt,"Velocity at point P (ft/sec):",Vt3,"Velocity due to leg CD (ft/sec):",Vt2,"Velocity due to leg BC (ft/sec):",Vt1,"Velocity due to leg AB (ft/sec):");