summaryrefslogtreecommitdiff
path: root/3864/CH6/EX6.7/Ex6_7.sce
blob: 70abac79a2a4d7d2f729c21764a6dff831d1ef67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
clear
//
//

//Initilization of Variables

P=3750*10**6 //N-mm/sec
n=240 //Rpm
q_s=160 //N/mm**2 //Max shear stress

//Calculations

//d2=0.8*d2 //mm //Internal Diameter of shaft

//J=%pi*32**-1*(d1**4-d2**4) //mm**4 //Polar modulus
//After substituting value in above Equation we get
//J=0.05796*d1**4

T=P*60*(2*%pi*n)**-1 //N-mm //Torsional moment

//Now from Torsion Formula
//T*J**-1=q_s*R**-1    ......................................(1)

//But R=d1*2**-1 

//Now substituting value of R and J in Equation (1) we get
d1=(T*(0.05796*q_s*2)**-1)**0.33333

d2=d1*0.8

//Result
printf("\n The size of the Shaft is:d1 %0.3f  mm",d1)
printf("\n                         :d2 %0.3f  mm",d2)