blob: 15eddea4acc7e20a62f135631d52e1e4ae366aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
clc
//
//Variable declaration
l=1.5 // length of the cylindrical shaft
Tmax=120 // Maximum allowable torque
c1=0.02 // Inner radius
c2=0.03 // Outer radius
//Calculation
//Case(a)
J=(1/2.0)*(%pi)*(c2**4-c1**4) // Polar moment of inertia
c=c2 // Letting c equal to c2
T=((J*Tmax*((10**6)))/(c))/(1000.0) // Largest Permissible Torque
//Case(b)
Tmin=(c1/c2)*(Tmax) // Minimum Shearing Stress
//Result
printf("\n Largest permissible torque that can be applied to the shaft = %0.3f kN' ,T)
printf("\n Minimum shearing stress that can be applied to the shaft = %0.3f MPa' ,Tmin)
|