diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /557/CH12/EX12.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '557/CH12/EX12.2')
-rwxr-xr-x | 557/CH12/EX12.2/2.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/557/CH12/EX12.2/2.sce b/557/CH12/EX12.2/2.sce new file mode 100755 index 000000000..07307815d --- /dev/null +++ b/557/CH12/EX12.2/2.sce @@ -0,0 +1,22 @@ +clc; funcprot(0); //Example 12.2
+
+//Initializing the variables
+Vp =12;
+lp = 40;
+lm = 1;
+As = 2500;
+Dm = 32;
+rhoP = 1025;
+rhoM = 1000;
+Ap = As;
+
+//Calculations
+Am = As/40^2;
+Vm = Vp*sqrt(lm/lp);
+Dfm = 3.7*Vm^1.95*Am;
+Rm = Dm - Dfm;
+Rp = Rm *(rhoP/rhoM)*(lp/lm)^2*(Vp/Vm)^2;
+Dfp = 2.9*Vp^1.8*Ap;
+Dp = Rp + Dfp;
+
+disp(Dp/1000,"Expected total resistance (kN) :");
\ No newline at end of file |