summaryrefslogtreecommitdiff
path: root/1898/CH5/EX5.20/Ex5_20.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1898/CH5/EX5.20/Ex5_20.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1898/CH5/EX5.20/Ex5_20.sce')
-rwxr-xr-x1898/CH5/EX5.20/Ex5_20.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/1898/CH5/EX5.20/Ex5_20.sce b/1898/CH5/EX5.20/Ex5_20.sce
new file mode 100755
index 000000000..af893468e
--- /dev/null
+++ b/1898/CH5/EX5.20/Ex5_20.sce
@@ -0,0 +1,30 @@
+clear all; clc;
+
+disp("Scilab Code Ex 5.19 : ")
+
+//Given:
+r = 20/1000; //m
+l = 1.5; //m
+phi = 0.6; //rad
+shear_y = 75*10^6; //N/m^2
+
+//Calculations:
+max_shear_strain = (phi*r)/(l); //phi = (strain*L)/r
+strain_y = 0.0016;
+
+r_y = (r*strain_y)/(max_shear_strain); //by ratios
+
+//T= (%pi*shear_y)*(4c^3 - r_y^3)/6;
+c = r;
+
+T = (%pi*shear_y)*(4*c^3 - r_y^3)/6;
+T = T/1000;
+
+//Display:
+
+printf('\n\nThe torque needed to twist the shaft by 0.6 rad = %1.2f kNm',T);
+
+//----------------------------------------------------------------END------------------------------------------------------------------------
+
+
+