MD Proj
MD Proj
FACULTY OF ENGINEERING
MAHMUT DEMİR
Supervisor
Assoc. Prof. Dr. Mustafa ÖZDEMİR
MAHMUT DEMİR
(150499981)
Supervisor
Assoc. Prof. Dr. Mustafa ÖZDEMİR
by
Mahmut Demir
June 15, 2 0 2 2 , I s t a n b u l
OF
BACHELOR OF SCIENCE
AT
MARMARA UNIVERSITY
The author(s) hereby grant(s) to Marmara University permission to reproduce and to distribute publicly paper
and electronic copies of this document in whole or in part and declare that the prepared document does not in
anyway include copying of previous work on the subject or the use of ideas, concepts, words, or structures
regarding the subject without appropriate acknowledgement of the source material.
Certified By ............................................................................................................................
First of all, I would like to thank my supervisor Assoc. Prof. Dr. Mustafa ÖZDEMİR,
for the valuable guidance and advice on preparing this thesis and giving me moral and
material support.
i
CONTENTS
ACKNOWLEDGEMENT ............................................................................................................................ i
CONTENTS ................................................................................................................................................ ii
ABSTRACT ................................................................................................................................................ v
SYMBOLS ................................................................................................................................................. vi
1. INTRODUCTION ............................................................................................................................ 1
3.1. Development of CAD Software for Shaft Under Various Loading Conditions ............................... 4
3.2. Design of Machine Shaft in Fatigue Loading by Using C++ Programming Language .................... 4
3.3. Development of a Computer Aided Software for Power Transmission Shaft Design with Multiple
Criteria .............................................................................................................................................. 5
ii
4.3. Assumptions ..................................................................................................................................... 7
4.10.4. Calculating Endurance Limit Modifying Factors without Size Factor ................................... 14
4.15. Function Calculating Static Stress Concentration Factors for Bending ................................... 17
4.16. Function Calculating Static Stress Concentration Factors for Torsion .................................... 18
4.17. Calculating Static Stress Concentration Factors for Bending and Torsion .............................. 19
4.18. Function for Reducing Stress Concentration Factor for Bending ............................................ 21
4.19. Function for Reducing Stress Concentration Factor for Torsion ............................................. 21
iii
4.22. Function Calculating Von Mises Mean Stresses ..................................................................... 23
6. CONCLUSION .............................................................................................................................. 34
REFERENCES ...................................................................................................................................... 35
iv
ABSTRACT
Shafts are important machine elements. In the design of a shaft many calculations and
iterations should be done analytically, including static and dynamic analysis, shaft
deflection analysis and critical speed of the shaft. Changing the geometric layout, material
type, size or loads on the shaft needs making the calculations and iterations repeatedly,
which is a time consuming job. Computer-aided design offers a more efficient process,
which is used successively for many years. In this project, a computer program is designed
with a user-friendly graphical interface. After taking design parameters from the user, the
program will perform mechanical analysis and design in accordance with the accepted
standards in the field. The program executes all the calculations in a fully automated way.
Discussion about used formulas is included.
v
SYMBOLS
A : area
b : shaft diameter
D : shaft diameter
E : young’s modulus
Kf : fatigue-stress-concentration factor
Sy : yield strength
za : transformation variate
vi
σuts : ultimate tensile strength
τ : shear stress
ω : angular velocity
vii
ABBREVIATIONS
viii
LIST OF FIGURES
Figure 2.1: Design procedure flow chart of a shaft for strength and rigidity ............. 2
Figure 5.2: The output interface of the proposed software for shaft design .............. 32
9
LIST OF TABLES
Table 1: A comparison between the proposed software and book results .....................33
x
1. INTRODUCTION
Shaft is a machine element usually has a circular cross section that rotates and transmits power
from a driving device through a machine. Shafts can carry gears, pulleys and sprockets to
transmit rotary motion and power via mating gears, belts and chains. A shaft can also be
stationary like the ones in automobiles. [1]
The size of the shaft can be determined by the stress analysis at a specific point on the shaft
taking into account the shaft geometry at that point. Thus the geometry of the entire shaft is
not needed. In design, critical areas should be located. These areas should be sized to meet
the strength requirements. After that the rest of the shaft can be sized to meet the requirements
of the shaft-supported elements. The deflection and slope analyses require defining the
geometry of the entire shaft. We can say that deflection is a function of the entire geometry,
however, the stress at a specific section is a function of local geometry. Hence, shaft design
allows a consideration of stress first. After finding tentative values of the shaft dimensions,
deflections and slopes analysis can be made. [2]
In this project we will use MATLAB software. Its app designer package will allow us to
design a GUI for the program and the final program can be compiled as a standalone
application.
1
2. SHAFT DESIGN
Shafts are used to transmit power and torque. Most of the motors or turbines use shaft to
transfer the power. Bearings are required for the support of the shaft.
The general layout of a shaft to accommodate shaft elements, which must be specified early
in the design process in order to perform force analysis and to obtain shear-moment diagrams.
[2]
Stepped diameters on shafts accommodate bearing mounts and are also shoulders for devices
such as gears, sprockets and pulleys. [1]
b) Material selection
c) Deflection and rigidity (Bending and torsional deflection, slope at bearings, shear
deflection.)
2
Determining the forces on the shaft.
Determining all the critical points on the shaft and finding the minimum diameter at
each point to ensure a safe design.
Figure 2.1 Design procedure flow chart of a shaft for strength and rigidity. [1]
3
3. LITERATURE REVIEW
Adekunle et al [3] studied to design shaft under various loading conditions using Computer
Aided Design. The Programming language used was Visual Studio C#.
Determine the right diameters of shafts to withstand the various loading conditions.
Based on the preliminary design of the minimum diameter, technological and
functional.
Requirements, a design of the shaft shape can be made.
Calculation of equivalent stress in the shaft.
Coefficient of static safety of the shaft.
Coefficient of dynamic safety of the shaft.
Required Inputs
Their shaft design is based on deflection and rigidity & stress and strength. Strength is utilized
with modified Goodman strength criteria. The software has a graphical user interface. A
material selection field where the type of materials to be used and their properties would be
selected. A field where shaft shape and dimensions can be selected. The result section consists
of the torsional moment, bending moments, equivalent strength, and minimum shaft diameter,
coefficient of static safety and coefficient of dynamic safety.
Saradava et al [4] wrote a program in C++ for a shaft under fatigue load. They use ASME
4
code for the design of transmission shaft and define the maximum permissible working stress
in tension or compression accordingly. Their design of shaft based on strength as;
Shaft subjected to axial loads in addition to combined torsional and bending loads
They find diameters of the shaft due to bending and twisting moments and take the maximum
diameter for the design of the shaft. They also included a systematic procedure and a C++
code in their study.
Fadare et al [5] studied on a transmission shaft software with multiple criteria. The
programming language used was Visual Basic 2008 and the program has an interface designed
with an image design software Fireworks. They use five design criteria; strength, torsional
rigidity, critical speed or vibration, Soderberg and lateral rigidity.
MITCalc is a commercial brand name of a software that has a shaft analysis module. The aim
of the shaft module is analyzing geometrical designs and complex examinations of shafts. The
software solves the following tasks:
5
• Support of 2D and 3D CAD systems.
It demands from the user to enter values for the preliminary shaft diameter design.
It has an option for Imperial vs SI Units selection. After entering transmitted power and shaft
speed, torsion moment and preliminary minimum diameter are found by the software.
Material selection and different types of load selection are chosen by the user.
6
4. PROGRAM DESIGN PROCEDURE
The elements of a shaft can be gears, bearings and pulleys. In the app, shaft elements restricted
to maximum number of two bearings, two gears and two sheaves.
4.3. Assumptions
Gears are assumed spur gears where no axial force exerted along X-axis.
Shaft is assumed to be a beam with left end is fixed and right end is free.
Assuming the torque is only present between the gears and/or pulleys. If the bearing on the
right side is on between the gears and/or pulleys there is a checkmark to state the situation.
Gears and belts apply transverse forces on the shaft. These forces can be on different planes.
X-axis taken as the axis along the length of the shaft, and Y-axis as vertical axis.
For gear loads, forces assumed about Z-axis, gear pressure angle asked from the user and
weight of the gear is an option as an input if it is mandatory.
For pulley loads, belt force tight side to slack side ratio, weight of the pulley asked from the
user.
7
4.5. Calculating Torque on the Shaft
The power transmitted through the shaft and shaft speed is asked from the user. Then the
torque is calculated from the equation Eq. 4.1.
= (Eq. 4.1)
% Rotational Velocity
% Torque
Where;
The forces on sheaves that bends the shaft are calculated from Eq. 4.2.
( + 1)
ℎ = × (Eq. 4.2)
( − 1)
2
if (app.R_Sheave1.Value==0)
8
app.Fsheave1_Z = 0;
elseif (app.R_Sheave1.Value==1)
app.Fsheave1_Z = 0;
elseif (app.D_Sheave1.Value==0)
app.Fsheave1_Z = 0;
else
end
Where;
app.R_Sheave1.Value: Pulley 1’s belt tight side to slack side ratio. If user not entered the
value, it is assumed that Pulley 1 is not used. If user entered the value as 1, force is calculated
as zero not to stuck the app.
The forces on gears about Z-axis are calculated from Eq. 4.3.
= (Eq. 4.3)
2
The forces on the gears about Y-axis are calculated from Eq. 4.4.
if(app.D_Gear1.Value==0)
app.Fgear1_Z=0;
9
app.Fgear1_Y=0;
else
end
Where;
The function takes loads and their locations and find the reaction force on the right support
bearing. Then evaluate the moment at the location of interest.
% Function that computes moments on a shaft based on loads and their locations where;
%Inputs: X is the calculated moment location, Load is locations and amounts of the loads, R1
is the location of left support bearing and R2 is the location of the right support bearing.
%Outputs: Reaction1 is the reaction force at left bearing, Reaction2 is the reaction force at
right bearing and M is the moment. %
mmnt = 0;
for i = 1: numberLoads(1)
end
10
Reaction1 = - Reaction2;
for i = 1: numberLoads(1)
end
% Finding moment at X
M = 0;
for i = 1: numberLoads(1)
if (X > Load(i,1))
M = M + Load(i,2) * (X - Load(i,1));
end
end
if (X > R1)
M = M + Reaction1 * (X - R1);
end
if (X > R2)
M = M + Reaction2 * (X - R2);
end
end
Loads and locations on both planes are taken inside matrixes and evaluated at the point of
interest.
%Input Loads;
11
[Link], app.Fsheave1_Z; [Link], app.Fsheave2_Z];
Where;
Endurance limit of the specimens are tested in a laboratory environment with care, however,
in reality it is less than the value founded. So, modification of the test results needed.
Shafts are polished rotating beams and finishing methods change the strength value of the
specimen. The surface factor is calculated from Eq. 4.5. [2]
= ×S (Eq. 4.5)
app.surface1 = [Link];
if strcmpi( app.surface1,'Machined')
[Link]= [Link];
12
[Link]= [Link];
[Link]= [Link];
[Link]= [Link];
end
[Link]= [Link];
Where;
The code evaluates surface factor after the selection of material finish and shows on the input
screen.
As same material is tested under the same conditions there occurred a scatter in the values by
8%. [8] Reliability factor is calculated from Eq. 4.6. [2]
function [ kr ] = Kreliab(app, a )
if (a < 50)
kr = 1;
13
kr = 0.620;
else
kr = interp1(y, z, a);
end
end
Where;
Forces on gears and pulleys create bending stresses. Since the preliminary diameters used
may change, at this point a while loop is also started.
while ([Link] == 0)
% At Bearing 1
[Link] = 0;
14
app.StressBearing1 = app.MomentBear1 * ([Link] / 2) / [Link];
% At Bearing 2
[Link] = 0;
app.StressAltBearing2 = app.StressBearing2;
% At Gear 1
[Link] = 0;
if([Link]==0)
app.StressGear1 =0;
else
end
Where;
If shaft element is not exists on the location, inertia is calculated as zero not to stuck the app.
Torque on the shaft creates shear stresses. Below code is calculated shear forces at locations
of interest.
app.ShearBearing1 = 0.0;
% At Bearing 2
[Link] = 0;
15
[Link] = pi * [Link] ^ 4 / 32;
% At Gear 1
[Link] = 0;
if([Link]==0)
app.ShearGear1 = 0;
else
end
Where;
If shaft element is not exists on the location, polar inertia is calculated as zero not to stuck the
app.
ks = 1.0;
ks = 1.24 * Dia^(-0.107);
else
16
end
end
Below is the code to calculate fully corrected endurance stresses at locations of interest.
= × (Eq. 4.7)
% Stress concentration factor computing function. For bending, round disc with change in
diameter.
17
%Diasmall : Smaller diameter
D_table = [6.0 3.0 2.0 1.5 1.2 1.1 1.07 1.05 1.03 1.02 1.01]';
A_table = [.87868 .89334 .90879 .93836 .97098 .95120 .97527 .98137 .98061 .96048
.91938]';
b_table = [-.33243 -.30860 -.28598 -.25759 -.21796 -.23757 -.20958 -.19653 -.18381 -.17711
-.17032]';
kc = A * (Fillet /Diasmall) ^ b;
end
% Stress concentration factor computing function. For torsion, round disc with change in
diameter.
D_ratio = D_table(1);
end
D_ratio = D_table(4);
end
kc = A * (Fillet /Diasmall) ^ b;
end
% Static Stress Concentration Factors at Locations of Interest Computing for Bending and
Shear
19
app.Kt_AtGear1 = Kscb(app, ([Link] + [Link]*2),
[Link], [Link]);
if([Link]==0)
app.Kt_AtGear2=0;
else
end
if([Link]==0)
app.Kts_AtGear2=0;
else
end
if([Link]==0)
app.Kt_AtSheave2 = 0;
else
end
20
if(app.DiaAtSheave2==0)
app.Kts_AtSheave2 = 0;
else
end
Below function reduces the stress concentration factor using the Neuber equation. [2]
Kf = 1 + (Kc - 1) / (1 + a / sqrt(r));
end
Below function reduces the stress concentration factor using the Neuber equation. [2]
Kf = 1 + (Kc - 1) / (1 + a / sqrt(r));
21
end
For bending, torsional and axial stresses, von Mises alternating stress is found from Eq. 4.8.
[2]
( )
= ( ) +
0.85
(Eq. 4.8)
+3 ( )
end
For bending, torsional and axial stresses, von Mises mean stress is found from Eq. 4.9. [2]
= ( ) + ( )
(Eq. 4.9)
+3 ( )
end
if([Link] ==1)
app.ShearAltBearing2 = app.ShearBearing2;
app.Kfs_TorsionBearing2 = app.Kfs_AtBearing2;
else
app.ShearAltBearing2 = 0;
app.Kfs_TorsionBearing2 = 1;
end
23
% Von Mises Stresses at Locations of Interest
24
= (Eq. 4.10)
+
end
1
= (Eq. 4.11)
+
End
Below function is to select next larger size of diameter on location of interest if Langer safety
factor or modified Goodman safety factor is less than allowable user safety factor.
[Link] = [10, 12, 14, 15, 16, 17, 18, 20, 22, 25, 27, 30, 31, 32, 33, 34, 35,
36, 37, 38, 40, 42, 45, 48, 50, 52, 55, 58, 60, 62, 65, 68, 70, 72, 75, 78, 80, 82, 85, 88, 90, 92,
95, 98, 100];
25
[a, ArrayLength] = size(Allowable_Diameter);
Done = 0;
for i = 1: ArrayLength
Done = 1;
break;
end
end
end
% At Bearing 1
continue;
end
% At Bearing 2
continue;
end
% At Gear 1
if ([Link]~=0)
continue;
end
end
% At Gear 2
if([Link]~=0)
27
[[Link]] = New_Size(app, [Link],
[Link]);
continue;
end
end
% At Sheave 1
if([Link]~=0)
continue;
end
end
% At Sheave 2
if([Link]~=0)
28
continue;
end
end
[Link] = 1;
if (S_Mean == 0)
N = S_E / S_Alt;
else
end
end
N = sqrt( 1 / Asme_A);
End
29
% Iteration Control
[Link] = 1;
30
app.Asme_N_Sheave2 = SF_ASME(app, app.VonMisses_Alt_Sheave2,
app.VonMisses_Mean_Sheave2, app.EnduranceAtSheave2, app.S_ut.Value);
End
Problem: Determine a sensible minimum nominal diameter for the drive shaft consisting of a
mid-mounted spur gear and overhung pulley wheel. The shaft is to be manufactured using
817M40 hot-rolled alloy steel with σuts = 1000MPa, σy = 770MPa and Brinell Hardness
approximately 220 BHN. The radius of the fillets at the gear and pulley shoulders is 3mm.
The power to be transmitted is 8 kW at 900rpm. The pitch circle diameter of the 20-degree
pressure angle spur gear is 192mm and the pulley diameter is 250mm. The masses of the gear
and pulley are 8kg and 10kg, respectively. The ratio of belt tensions should be taken as
2.5. Profiled keys are used to transmit torque through the gear and pulley. A shaft nominal
reliability of 90% is desired. A nominal diameter of 32mm can be assumed for the shaft.
Gear is 120mm apart from left bearing, right bearing is 200mm apart from left bearing, and
pulley is 300mm apart from left bearing. [1]
31
Figure 5.1: Proposed software inputs of the problem
Figure 5.2: The output interface of the proposed software for shaft design
32
Table 1: A comparison between the proposed software and book results
Figure 3 illustrates input parameters entered in the proposed software. After calculation button
pressed result page can be seen in Figure 4. We can see book results and proposed software
results in Table 1. Main difference occurred in modified endurance limit value. However, the
proposed diameter for bearing 2 is same.
33
6. CONCLUSION
In this project, we focused on an app that will aid the user for the mechanical design of a shaft.
Matlab app designer used as programing software that has a user friendly GUI and ability to
share as standalone app. Proposed app analyzes the shaft based on dynamic loads. Optimal
shaft diameter at the locations of interest are calculated by fatigue stress analysis. Langer, and
modified Goodman safety factors are used to check next available diameter then Gerber and
ASME safety factors are computed. Verification is also done with a problem from Mechanical
Design Engineering Handbook. Result for proposed diameters matches in both solutions.
The author is aware of the limitations of the app. Only shoulders are used for notch type. Shaft
elements are limited to two bearings, two gears and two pulleys. However, the core of the
design is solid and can be used for a most sophisticated design of a shaft.
34
REFERENCES
[1] Childs, Peter R. N., (2019) Mechanical Design Engineering Handbook, 2nd edition,
Butterworth Heinemann, Oxford, United Kingdom.
[2] Budynas, R. G. and Nisbett, J. K., (2011) Shigley’s Mechanical Engineering Design,
9th edition, McGraw-Hill Companies, New York.
[3] Adekunle, A.A, Adejuyigbe, S.B., Arulogun O.T., (2012) Development of CAD
Software for Shaft Under Various Loading Conditions, Procedia Engineering, 38, pp.
1962-1983.
[4] Saradava, Ketan D, Mandaliya, Piyush J., Parsania, Pratik P., (2016) Design of
Machine Shaft in Fatigue Loading by Using C++ Programming Language, Trends in
Machine Design, Volume 3, Issue 1, pp. 75-81.
[5] Fadare, D. A., Akanbi, O., (2010) Development Of A Computer Aided Software For
Power Transmission Shaft Design With Multiple Criteria, Ife Journal of Technology,
19(1), pp. 25-33.
[8] Robert L. Norton, (2010) Machine Design An Integrated Approach, 4th edition,
Prentice Hall, New Jersey.
35