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 /3785/CH7/EX7.3/Ex7_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 '3785/CH7/EX7.3/Ex7_3.sce')
-rw-r--r-- | 3785/CH7/EX7.3/Ex7_3.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3785/CH7/EX7.3/Ex7_3.sce b/3785/CH7/EX7.3/Ex7_3.sce new file mode 100644 index 000000000..c59def7cf --- /dev/null +++ b/3785/CH7/EX7.3/Ex7_3.sce @@ -0,0 +1,19 @@ +// Example 7_3
+clc;funcprot(0);
+// Given data
+L=100;// The length of the ship in m
+A=3*10^3;// Surface area in m^2
+rho=1.03*10^3;// The density of sea water in kg/m^3
+V=8;// Speed in m/s
+epsilon=1*10^-4;// The surface roughness in m
+nu=1*10^-6;// The kinematic viscosity in m^2/s
+
+// Calculation
+Re_L=(V*L)/nu;// The length Reynolds number Re_L
+// If the ship surface were smooth,
+C_D_fp=0.455/(log10(Re_L))^2.58;// The drag coefficient
+// For a rough surface,
+C_D_fp=0.30/(log10(14.7*(L/epsilon))^2.5);// The drag coefficient for a rough surface
+D=((1/2)*rho*V^2)*A*C_D_fp;// The ship's frictional drag force in N
+P=D*V;// The power in MW
+printf("\nThe ships frictional drag force,D=%1.4e N \nThe power required to overcome drag force,DV=%1.3f MW",D,P/10^6);
|