summaryrefslogtreecommitdiff
path: root/3720/CH5/EX5.9/Ex5_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3720/CH5/EX5.9/Ex5_9.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 '3720/CH5/EX5.9/Ex5_9.sce')
-rw-r--r--3720/CH5/EX5.9/Ex5_9.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3720/CH5/EX5.9/Ex5_9.sce b/3720/CH5/EX5.9/Ex5_9.sce
new file mode 100644
index 000000000..d759e75bd
--- /dev/null
+++ b/3720/CH5/EX5.9/Ex5_9.sce
@@ -0,0 +1,23 @@
+//Example 5_9
+clc;clear;funcprot(0);
+// Given values
+rho_hg=848;//The density of mercury in lbm/ft^3
+rho_sw=64;//The density of seawater in lbm/ft^3
+rho_atm=0.076;//The density of atmosphereic air in lbf/ft^3
+H_hg=(30-22);// inch
+V_a=155;//mph
+V_a=155*1.4667;// convert mph into ft/s
+P_air=22;// The hurricane atmospheric pressure at the eye of the storm is in Hg
+P_atm=30;// in hg
+g=32.2;// ft/s^2
+
+// Calculation
+//(a)
+h_1=((rho_hg/rho_sw)*H_hg)/12;
+printf('(a)The pressure difference between points 1 and 3 in terms of the seawater column height,h_1=%0.2f ft\n',h_1);
+//(b)
+H_air=((V_a^2)/(2*g));//ft
+rho_air=(P_air/P_atm)*rho_atm;//the density of air in the hurricane in lbm/ft^3
+h_dynamic=(rho_air/rho_sw)*H_air;//ft
+h_2=h_1+h_dynamic;//ft
+printf('(b)The total storm surge at point 2,h_2=%0.2f ft\n',h_2);