summaryrefslogtreecommitdiff
path: root/866/CH14/EX14.2/14_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '866/CH14/EX14.2/14_2.sce')
-rwxr-xr-x866/CH14/EX14.2/14_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/866/CH14/EX14.2/14_2.sce b/866/CH14/EX14.2/14_2.sce
new file mode 100755
index 000000000..12ff51aff
--- /dev/null
+++ b/866/CH14/EX14.2/14_2.sce
@@ -0,0 +1,19 @@
+clc
+//initialisation of variables
+load= 50000 //N
+torque= 1200 //Nm
+d= 60//mm
+t= 1.5 //mm
+alpha= 60 //degrees
+//CALCULATIONS
+BM= load*t
+axialload= (load*4)/(%pi*d^2)
+bendingmoment= (BM*d*64)/(%pi*d^4*2)
+Ts= axialload+bendingmoment
+shearstress= (torque*10^3*d*32)/(2*%pi*d^4)
+sigman= -Ts*(cosd(alpha-30))^2+shearstress*cosd(alpha-30)*sind(alpha-30)+shearstress*cosd(alpha-30)*sind(alpha-30)
+T= -Ts*sind(alpha)*cosd(alpha)-shearstress*(sind(alpha))^2+shearstress*(cosd(alpha)^2)
+//RESULTS
+printf ('direct stress= %.1f N/mm^2',sigman)
+printf (' \n Shear stress=%.1f N/mm^2',T)
+