blob: cf4cf3aa0dcf453a6ff15a1fce19648d7f23b1c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
clc
//
//Variable declaration
depth=10 // Depth(mm)
width=60 // Width(mm)
thickness=9 // Thickness(mm)
Smax=150 // Maximum stress(MPa)
M=180 // Bending moment(N.m)
//Calculation
d=width-(2*depth) // Distance(mm)
c=(1/2.0)*d // Distance(mm)
b=9 // Distance(mm)
I=(1/12.0)*(b*((10**-3)))*((d*((10**3)))**3) // Moment of inertia of the critical cross section(m**4)
Ratio=((M)*(c)*((10**3)))/(I) // Stress(MPa)
k=150/75.0 // Factor
Ratio2=width/(d*1.0) // Ratio
r=0.13*40 // Radius(mm)
wid=2*r // Width(mm)
// Result
printf("\n Smallest allowable width of the groves = %0.3f mm' ,wid)
|