Académique Documents
Professionnel Documents
Culture Documents
WRITTEN BY:
MOGAKA DAVIDSON ONCHANA
&
MOMANYI GODFREY MARAMBE
F18/1735/2007
F18/1869/2007
DECLARATION
We certify that the information presented in this report, except where indicated and
acknowledged, is our original effort and has not been presented before to the best of our
knowledge.
F18/1735/2007
Signature
Date...
F18/1869/2007
Signature
Date...
This project has been submitted with the approval of the supervisor
Project supervisor: Prof. ODUORI, M. F.
Signature
Date of Submission
DEDICATION
To my Dad, Mom (R.I.P), and brother Paul for your continued support. God bless you all.
Mogaka Davidson
To my parents, brothers and sisters who have accorded me with endless support during
my undergraduate studies, to my girlfriend Assumpter with love, to my lecturers in the
department of mechanical and manufacturing engineering for the knowledge they have
imparted in me in my undergraduate studies and from whom I have learnt so much.
Marambe Godfrey
ii
TABLE OF CONTENTS
Declaration...i
Dedicationii
Contents...iii
Acknowledgementsv
Abstractvi
Objectives.........vii
Chapter One....................................................................................................................................... 1
1.1
Introduction .................................................................................................................................... 1
1.2
Introduction .................................................................................................................................... 3
2.2
2.3
2.3.1
2.3.2
Chapter Three................................................................................................................................. 17
Literature Review On Engineering Materials, Their Properties And Categories ................ 17
3.1
Introduction .................................................................................................................................. 17
3.2
3.3
3.3.1
3.3.2
Introduction .................................................................................................................................. 27
4.1.1
4.1.2
iii
4.2
Introduction .................................................................................................................................. 31
5.1.1
Classification Of Gears...................................................................................................... 31
5.1.2
5.1.3
5.1.4
5.2
5.2.1
6.2
6.3
6.3.1
6.3.2
Discussion...................................................................................................................................... 59
7.2
Conclusion ..................................................................................................................................... 61
7.3
Recommendations...................................................................................................................... 61
7.4
iv
ACKNOWLEDGEMENTS
A project such as this could not have been accomplished without the assistance of a
large number of individuals. First and foremost we would like to sincerely thank Prof.
F.M. Oduori our project supervisor, and a senior lecturer at the Department of
Mechanical and Manufacturing Engineering - University of Nairobi; for the continued
guidance and support he gave us through relevant literature material and helpful
information to undertake this project.
We are grateful to Mr. Enoch Kimanzi for criticizing our work and providing us with
relevant information without which it would be difficult to accomplish our work. We
would also like to extend our hand of appreciation to Prof. S. Mutuli, chairman Department of Mechanical and Manufacturing Engineering for his efforts to ensure good
working conditions as well as support through departmental facilities especially the
departmental library.
We would like to acknowledge the staff of East African Foundry Ltd and Kensmetal Ltd
for providing us with meaningful information on engineering materials.
Finally, we would like to thank our families for their support and encouragement.
God bless.
ABSTRACT
The selection of proper materials is fundamental to engineering design. Engineering
materials are many hence a formalized selection process is required to select a reliable
material for a product. The objective of this project was to develop an online material
selection process based on principles of decision theory and implement it as an
information processing routine on a computer system. A case study was undertaken
that involved selection of a material in the design of a reverted two stage compound gear
train. Selection was done in two stages: screening followed by ranking. The first stage
reduces the large material database to a small candidate list which are locally available
and meets the critical property limits such as strength. The second stage involves
ranking the candidate materials using indices formulated from availability, cost and
machinability. Supporting information is then sought and used to narrow down the
ranked materials to a final choice allowing a definite match to be made between design
requirements and material attributes. This material selection system helps the designer
perform the rigorous process of material selection for the gear train at fast speeds thus
saving time and money during design.
vi
OBJECTIVES
vii
CHAPTER ONE
1.1 INTRODUCTION
The selection of a material for machine part or structural member is one of the most
important decisions the engineering designer has to make. Poor material choice can
lead to failure of a part or system or to unnecessary cost. The process of materials
selection is difficult one and typically involves multiple conflicting material
characteristics as well as large number of constraints.
A good material selection process considers the limiting factors for a particular design
exercise which include material properties, material processing, material cost and
material availability. Through systematic and optimizing approach, one can list all the
limiting factors associated with the design e.g. strength, hardness, cost and availability.
Weighting measure can be used to prioritize on what materials are more important than
others after which all available materials are listed and ranked.
For ranking purposes, indices like cost and availability of the various materials are
computed. After this task a list of the materials meeting the limiting requirements is
produced in which the materials are ranked from the one with the highest composite
index to the one with the least. In this case, the material with the highest composite
index based on cost and availability is taken as the best for the application. Materials for
other engineering applications can be selected in the same way.
With the advent of the internet, utilization of an online material selection process is a
major advancement in the selection of a material for a particular product. The process
gives accurate information at fast speeds thus saving time and money during design.
The computer can play a major role in storing information (database) on materials
properties. In addition a computer code is created using PHP (recursive acronym for
hypertext preprocessor) in which the information in the database can be accessed and
retrieved. Thus entering the machine part specifications in the program, the computer
searches for the qualified materials in the database and displays them to the user.
CHAPTER TWO
Recognition of need
Problem definition
Conceptual design
Preliminary design
Detailed design
Iteration
Production
Fig. 2.1: Phases in Engineering Design Process (Adapted from: Madara Ogot & Gul Kremer,
Engineering Design: A Practical Guide).
It must be emphasized that engineering design is an iterative process requiring the
repetition of most steps based on what is learned at a later stage. The primary iterations
occur between the conceptual design and preliminary design steps.
2.2.6 Production
Prior to production, production process planning is carried out. This involves
Design drawings and specifications interpretation.
Production processes and machines selection.
Stock material selection.
Determination of production sequence of operations.
Determination of processing time.
The implementation involves successful testing of prototypes after which the final
solution is developed and preceded with full production.
US
Fatigue(High cycle)
Fatigue(Low cycle)
Yielding
Buckling
Wear
Thermal fatigue
Creep
Gross deformation
YS
CS
SS
KEY
US-Ultimate strength
YS-Yield strength
CS-Compressive yield strength
SS-Shear yield strength
FP-Fatigue properties
FP
CR
HD
CE
E- Modulus of elasticity
CR-Creep rate
HD-Hardness
CE-Coeffient of expansion
2. Screening of large material database for candidate materials that meet the
critical material properties is determined in steps. These critical properties
can be divided into three groups
a) Non-discriminating parameters are those that must be met if material is to be
used at all. Examples include availability and corrosion resistance.
7
All materials
Non-discriminating parameters
go/no-go parameters
discriminating parameters
Final material
Fig. 2.2: Three general steps in material selection
C. Resistance to fatigue:
Fatigue is defined as the progressive and localized structural damage of a material
under cyclic loading. Thus, fatigue strength, expressed in terms of the fatigue limit or
endurance limit of a material means the stress below which a material will not fail in
fatigue. This value is used in design of parts subjected to repeated alternating stresses
over an extended period of time. Since the strength of a material under cyclic loading is
less than the strength of the same material under static loading, resistance to fatigue
forms the basis for the design of components that are subjected to cyclic loading.
D. Ductility
Ductility is a measure of the degree of plastic deformation that has been sustained at
fracture. A material that experiences very little or no plastic deformation upon fracture
is termed brittle.
E. Resilience
Resilience is the capacity of a material to absorb energy when it is deformed elastically
and then, upon unloading, to have this energy recovered. The associated property is the
modulus of resilience, which is the strain energy per unit volume required to stress a
material from an unloaded state up to the point of yielding.
F. Toughness
Toughness is a mechanical term that is used in several contexts; basically, it is a
measure of the ability of a material to absorb energy up to fracture. Specimen geometry
as well as the manner of load application are important in toughness determinations. A
related property is fracture toughness which is indicative of a materials resistance to
fracture when a crack is present
G. Hardness
Another mechanical property that may be important to consider is hardness, which is a
measure of a materials resistance to localized plastic deformation (e.g., a small dent or a
scratch. Quantitative hardness techniques have been developed over the years in which
a small indenter is forced into the surface of a material to be tested, under controlled
conditions of load and rate of application. The depth or size of the resulting indentation
is measured, which in turn is related to a hardness number; the softer the material, the
larger and deeper the indentation, and the lower the hardness index number.
H. Damping capacity
The damping capacity of a material is defined as energy dissipated as heat by a unit
volume of the material during a completely reversed cycle of stress. It is related to
internal friction in the material and depends on maximum stress. The critical value
suggested for engineering design is the value at the endurance limit. High damping
capacity is desirable in most machine parts to reduce accumulation of harmful resonant
stresses, vibration, and to decrease noise in machine tools.
10
I. Friction
Surface friction is an energy dissipative process which takes place with relative
tangential displacement of contacting solids in zones of real contact between them,
formed by the action of an external load. It is that component of the load which resists
lateral (tangential) motion of solid surfaces, fluid layers or material elements in contact.
Friction is described by a ratio of friction force to normal load, termed the coefficient of
friction, . This value depends not only on the surface finish but also on the contacting
materials. It thus occurs that, in the process of engineering design, decisions must
always be made as to which materials and what processes can be used according to the
friction requirements of the component.
J. Formability
Formability can be defined as the relative ease with which a metal can be shaped
through plastic deformation while avoiding machining operations. Usually, shaping of
the component is achieved by stretching it using mechanical force. Formability
determines the amount the material in question can be stretched or drawn without
necking and failing3 . Forming limit is thus defined as the extent to which the metal can
be stretched before failure occurs.
2.3.2.1.2
A. Fracture
Fracture refers to the local separation of an object or material into two or more pieces
under the action of stress. Fracture toughness is a property which describes the ability
of a material containing a crack to resist fracture, and is one of the most important
properties of any material for virtually all design applications.
B. Fatigue
Fatigue is the progressive and localized structural damage that occurs when a material
is subjected to cyclic loading. It occurs when a material is subjected to repeated loading
and unloading. If the loads are above a certain threshold, microscopic cracks will begin
to form at the surface. Eventually a crack will reach a critical size, and the structure will
suddenly fracture.
C. Wear
Wear is erosion or sideways displacement of material from its "derivative" and original
position on a solid surface performed by the action of another surface. It is related to
interactions between surfaces and more specifically the removal and deformation of
material on a surface as a result of mechanical action of the opposite surface.
D. Creep
Creep is a slow or progressive deformation of a material with time under constant
3
11
stress. It is triggered via thermal activation and is more severe in materials that are
subjected to heat for long periods near the melting point.
E. Corrosion
Corrosion is the disintegration of an engineering material into its constituent atoms due
to chemical reactions with its surroundings. It involves electrochemical oxidation of
metals in reaction with an oxidant such as oxygen. A well-known example of
electrochemical corrosion is formation of an oxide iron due to oxidation of the iron
atoms in solid solution.Effects of corrosion are magnified by stress concentration and
cyclic loading.
F. Hydrogen embrittlement
Hydrogen embrittlement is the process by which various metals, most importantly highstrength steels, become brittle and fracture following exposure to hydrogen. It results
from unintentional introduction of hydrogen into susceptible metals during forming or
finishing operations
2.3.2.1.3
Physical properties
A. Density
Density is commonly defined as mass per unit volume. It is the weight of a material per
unit volume and is measured by weighing it in air and in a fluid of known density.
Different engineering applications demand different density requirements from
materials. Low density materials may be preferred in some applications like in aircraft
components (fuel economy). On the contrary, weight is found to be advantageous in
some cases such as while making foundations and flywheels.
B. Electrical properties
Typical electrical properties include;
Resistivity which is the measure a materials ability to resist the flow of
electricity. The higher its value, the higher the resistance of the material.
Resistivity changes with temperature.
Dielectric strength. Materials can be categorised in terms their electrical
properties as conductors, semiconductors or insulators. For an insulator, the
dielectric strength is the voltage required to break down the insulation ( i.e.,
allow electrical conduction ) through a unit thickness of the material.
C. Thermal properties
Typical thermal properties include
Thermal conductivity- Measure of the rate at which heat can be conducted
through a material. Its measured with the coefficient of thermal conductivity, k.
12
The higher the coefficient, the better the thermal conductivity. For cases where
thermal insulation is required, materials with low thermal conductivity are used.
Specific heat- is the amount of thermal energy required to increase a unit mass of
a materials temperature by 1 degree.
Coefficient of thermal expansion- it gives a measure of an objects change in
length per degree change in temperature.
forging, the desired configuration is obtained by squeezing the work piece between two
shaped and closed dies. On squeezing the die cavity gets completely filled and excess
material comes out around the periphery of the die as flash which is later trimmed. Both
open and closed die forging processes are carried in hot as well as in cold state. In
forging, favorable grain orientation of metal is obtained.
D. Rolling
Rolling is the most extensively used metal forming process. The material to be rolled is
drawn by means of friction into the two revolving roll gap. The compressive forces
applied by the rolls reduce the thickness of the material or changes its cross sectional
area. The geometry of the product depends on the contour of the roll gap. Roll materials
are cast iron cast steel and forged steel because of high strength and wear resistance. In
rolling the crystals get elongated in the rolling direction. In cold rolling, the crystal more
or less retains the elongated shape but in hot rolling they start reforming after coming
out from the deformation zone.
E. Extrusion
In extrusion, the material is compressed in a chamber and the deformed material is
forced to flow through a die. The die opening corresponds to the cross section of the
required product. It is basically a hot working process; however, for softer materials
cold extrusion is also performed. In direct extrusion metal flows in the same direction as
that of the ram. Because of the relative motion between the heated billet and the
chamber walls, friction is severe and is reduced by using a lubricant. In indirect
extrusion, the metal flows in the opposite direction of the ram. It is more efficient since
it reduces friction losses considerably.
F. Drawing
Large quantities of wires, rods, tubes and other sections are produced by drawing
process which is basically a cold working process. In this process the material is pulled
through a die in order to reduce it to the desired shape and size. In a typical wire
drawing operation, one end of the wire is reduced and passed through the opening of
the die, gripped and pulled to reduce its diameter. By successive drawing operation
through dies of reducing diameter the wire can be reduced to a very small diameter.
Annealing before each drawing operation permits large area reduction.
G. Case Hardening
The purpose of case hardening is to produce a hard outer surface on a specimen of low
carbon steel while at the same time retaining the ductility and toughness in the core.
This is done by increasing the carbon content at the surface by using solid, liquid, or
gaseous carburizing materials. The process consists of introducing the part to be
carburized into the carburizing material for a stated time, and temperature depending
upon the depth of case desired and the composition of the part. The part may then be
quenched directly from the carburization temperature and tempered, or in some cases
it must undergo a double heat treatment in order to ensure that both the core and the
14
case are in proper condition. Some of the more useful case-hardening processes are
pack carburizing, gas carburizing, nitriding, cyaniding, induction hardening, and flame
hardening.
H. Powder Metallurgy
The powder metallurgy process is a quantityproduction process that uses powders
from a single metal, several metals, or a mixture of metals and non-metals. Essentially it
consists of mechanically mixing the powders, compacting them in dies at high pressures
and heating the compacted part at a temperature less than the melting point of the
major ingredient. Waste material and machining operations are reduced significantly.
However, the cost of materials and dies are high. Parts commonly made by this process
are: Oil impregnated bearings, incandescent lamp filaments, cemented carbide tips for
tools and permanent magnet.
I. Plastic Injection Molding
Plastic injection is the most common process for manufacturing plastic products. It
involves:
Heating a polymer to a molten state.
Forcing the molten polymer to flow into a mold.
Cooling and removing the molded part.
This process is suitable for large scale production. In such production scale, the
expenditure on tooling cost is high, and therefore its important that the designer
consults the manufacturer at an early stage in design.
code, a technical report is issued describing the new system, the information and the
tests submitted , and the recommended usage.
B. Reparability
This is the ability of the of the damaged or failed equipment, machine or system to be
restored to acceptable operating condition within a specified time. This property should
be taken into account to avoid losses that would be suffered if replacement was to be
done for whole component or equipment. The spare parts should be available and
affordable.
16
CHAPTER THREE
17
ENGINEERING MATERIALS
Non-Metals
Ferrous
Steels
Composites
Non Ferrous
Cast irons
Titanium
Copper
Nickel
Ceramics
Magnesium
Polymers
Aluminium
Carbon steels
Alloy steels
Low Carbon
High Carbon
HSLA
Medium Carbon
Austenitic
Ferritic
Martensitic
Duplex
18
19
and molybdenum. These alloying elements combine with carbon to form very hard and
wear-resistant carbide compounds.
3.3.1.1.2
STAINLESS STEELS
The stainless steels are highly resistant to corrosion. Their predominant alloying
element is Chromium with a concentration of at least 11 wt%. Corrosion resistance may
also be enhanced by nickel and molybdenum additions. They are divided into three
classes:
Ferritic steels: contain 12-27% chromium.
Martensitic steels: contain 12% chromium and no nickel.
Austensitic steels: contain 18% chromium and 8% nickel
CAST IRONS
3.3.1.1.3
Generically, cast irons are a class of ferrous alloys with carbon content above 2.14 wt %.
However, most cast irons contain between 3.0 and 4.5 wt% C and, other alloying
elements. They are easily melted and amenable to casting. Cast irons are grouped into:
A. Gray cast Iron
The carbon content varies between 2.5 - 4.0 wt %, with Silicon content varying between
1.0 - 3.0 wt%. The graphite exists in the form of flakes (similar to corn flakes), which
are normally surrounded by ferrite or pearlite matrix. Its weak and brittle in tension as
a consequence of its microstructure; the tips of the graphite flakes are sharp and
pointed, and may serve as points of stress concentration when an external tensile stress
is applied. Strength and ductility are much higher under compressive loads. They are
very effective in damping vibration energy.
B. Ductile (or Nodular) Iron
It is formed by adding a small amount of magnesium and/or cerium to the gray iron
before casting. Graphite forms as nodules or sphere-like particles instead of flakes. The
matrix phase surrounding these particles is either pearlite or ferrite, depending on heat
treatment. It is normally pearlite for a cast piece. However, heat treatments for several
hours at about 700 0C will yield a ferrite matrix .Castings are stronger and much more
ductile than gray cast iron. Ductile cast iron has mechanical characteristics approaching
those of steel.
C. White cast Iron and Malleable cast Iron
White cast iron contains low-silicon (less than 1.0 wt% Si) and undergoes rapid cooling
rates. Carbon exists as cementite instead of graphite. It is extremely hard but also very
brittle, to the point of being virtually unmachinable. White iron is used as an
intermediary in the production of malleable iron. Heating white iron at temperatures
between 800- 9000C for a prolonged time period and in a neutral atmosphere (to
prevent oxidation) causes a decomposition of the cementite, forming graphite, which
20
21
have a high degree of corrosion resistance. Generally they are utilized when, in addition
to corrosion resistance, good tensile properties are required.
Beryllium coppers
They possess a remarkable combination of properties: tensile strengths as high as 1400
MPa, excellent electrical and corrosion properties, and wear resistance when properly
lubricated; they may be cast, hot worked, or cold worked. High strengths are attained by
precipitation-hardening heat treatments. These alloys are costly because of the
beryllium additions, which range between 1.0 and 2.5 wt%. Applications include jet
aircraft landing gear bearings and bushings, springs, and surgical and dental
instruments.
3.3.1.2.2
ALUMINIUM AND ITS ALLOYS
Aluminium and its alloys are characterized by a relatively low density (2700Kg/m3),
high ductility, high electrical- thermal conductivities, and a resistance to corrosion.
Since aluminium has a face centred cubic (FCC) crystal structure, its ductility is retained
even at very low temperatures. The chief limitation of aluminium is its low melting
temperature, which restricts the maximum temperature at which it can be used.
Principal alloying elements include copper, magnesium, silicon, manganese, and zinc.
Aluminium alloys are classified as either cast or wrought. Some of the more common
applications of aluminum alloys include aircraft structural parts, beverage cans, bus
bodies, and automotive parts (engine blocks, pistons, and manifolds).Recent attention
has been given to alloys of aluminum and other low-density metals (e.g. Mg and Ti) as
engineering materials for transportation, to effect reductions in fuel consumption. An
important characteristic of these materials is specific strength, which is quantified by
the tensile strengthspecific gravity ratio.
A generation of new aluminum-lithium alloys has been developed recently for use by
the aircraft and aerospace industries. These materials have relatively low densities
(between 25002600 Kg/m3), high specific moduli (elastic modulus specific gravity
ratios), and excellent fatigue and low-temperature toughness properties.
3.3.1.2.3
MAGNESIUM AND ITS ALLOYS
The most outstanding characteristic of magnesium is its density (1700 Kg/m3); hence
its alloys are used where light weight is an important consideration (e.g. in aircraft
components).It is relatively soft, and has a low elastic modulus. At room temperature
magnesium and its alloys are difficult to deform. Consequently, most fabrication is by
casting or hot working. It has a moderately low melting temperature. Chemically,
magnesium alloys are relatively unstable and especially susceptible to corrosion in
marine environments. On the other hand, corrosion or oxidation resistance is
reasonably good in the normal atmosphere (due to impurities). Fine magnesium
powder ignites easily when heated in air; consequently, care should be exercised when
handling it in this state.
22
These alloys are also classified as either cast or wrought, and some of them are heat
treatable. Aluminum, zinc, manganese, and some of the rare earths are the major
alloying elements. These alloys are used in aircraft and missile applications.
3.3.1.2.4
TITANIUM AND ITS ALLOYS
Titanium and its alloys are relatively new engineering materials that possess an
extraordinary combination of properties. The pure metal has a relatively low density
(4500 Kg/m3), a high melting point [16680C], and an elastic modulus of 107 GPa.
Titanium alloys are extremely strong, with room temperature tensile strengths as high
as 1400 MPa. Furthermore, the alloys are highly ductile, easily forged and machined.
The major limitation of titanium is its chemical reactivity with other materials at
elevated temperatures. This property has necessitated the development of
nonconventional refining, melting, and casting techniques; consequently, titanium
alloys are quite expensive. In spite of this high temperature reactivity, the corrosion
resistance of titanium alloys at normal temperatures is unusually high; they are
virtually immune to air, marine, and a variety of industrial environments
They are commonly utilized in airplane structures, space vehicles, surgical implants,
and in the petroleum and chemical industries.
3.3.1.2.5
THE SUPER ALLOYS
The super-alloys have superlative combinations of properties. Most are used in aircraft
turbine components, which must withstand exposure to severely oxidizing
environments and high temperatures for reasonable time periods. Mechanical integrity
under these conditions is critical; in this regard, density is an important consideration
because centrifugal stresses are diminished in rotating members when the density is
reduced. These materials are classified according to the predominant metal in the alloy,
which may be cobalt, nickel, or iron. Other alloying elements include the refractory
metals (Nb, Mo, W, and Ta), chromium, and titanium. In addition to turbine applications,
these alloys are utilized in nuclear reactors and petrochemical equipment.
3.3.1.2.6
MISCELLANEOUS ALLOYS NONFERROUS
The discussion above covers the vast majority of non-ferrous alloys; however, a number
of others are found in a variety of engineering applications. These include:
Nickel and its alloys are highly resistant to corrosion in many environments, especially
those that are basic (alkaline). Nickel is often coated or plated on some metals that are
susceptible to corrosion as a protective measure. Monel, a nickel based alloy containing
approximately 65 wt% Ni and 28 wt% Cu (the balance iron), has very high strength and
is extremely corrosion resistant; it is used in pumps, valves, and other components that
are in contact with some acid and petroleum solutions.
23
Lead, tin, and their alloys find some use as engineering materials. Both are
mechanically soft and weak, have low melting temperatures, are quite resistant to many
corrosion environments, and have re-crystallization temperatures below room
temperature. Many common solders are leadtin alloys, which have low melting
temperatures. Applications for lead and its alloys include x-ray shields and storage
batteries. Tin is used as a very thin coating on the inside of plain carbon steel cans (tin
cans) that are used for food containers; this coating inhibits chemical reactions between
the steel and the food products.
Zinc is a relatively soft metal having a low melting temperature and a re-crystallization
temperature. Chemically, it is reactive in a number of common environments and,
therefore, susceptible to corrosion. Galvanized steel is just plain carbon steel that has
been coated with a thin zinc layer; the zinc preferentially corrodes and protects the
steel .Typical applications of galvanized steel are familiar (sheet metal, fences, screen,
screws, etc.). Common applications of zinc alloys include padlocks, automotive parts
(door handles and grilles), and office equipment.
Zirconium and its alloys are ductile and have other mechanical characteristics that are
comparable to those of titanium alloys and the austenitic stainless steels. However, the
primary asset of these alloys is their resistance to corrosion in a host of corrosive media,
including superheated water. Furthermore, zirconium is transparent to thermal
neutrons, so that its alloys have been used as cladding for uranium fuel in water-cooled
nuclear reactors.
3.3.2 NON-METALLIC MATERIALS
These are the materials that do not exhibit metallic characteristics in their properties.
Examples are composites, ceramics, rubbers, plastics and polymers.
3.3.2.1 POLYMERS
These are compounds of high molecular weight derived by the addition of smaller
molecules (monomers) or by the condensation of smaller molecules with the
elimination of water, alcohol and other solvents. There are many different polymeric
materials that are familiar to us and find a wide variety of applications.
Plastics
3.3.2.1.1
They have a wide variety of combinations of properties. Some plastics are very rigid and
brittle; others are flexible, exhibiting both elastic and plastic deformations when
stressed, and sometimes experiencing considerable deformation before fracture. Plastic
materials may be either thermoplastic or thermosetting.
A. Thermoplastics
These are also known as thermo softening plastics. They have very weak Van Der Waals
forces. They are polymers that liquefy on heating and when cooled, they form a very
24
glassy state. They are easily molded and extruded into films, fibers and packaging
materials. E.g. Polyvinylchloride, polyethylene
B. Thermosetting plastics
These are polymers that cure irreversibly. Once cooled and hardened, they return to
their shapes but cannot return to their original form. The curing is by heating or
through a chemical reaction. They can be used for automobile parts, aircraft parts and
tyres. Example are vulcanized rubber and epoxy resins.
3.3.2.1.2
Elastomers
They have a cross linked structure with a looser mesh than thermosets. Thus they have
the ability to be deformed to quite large deformations, and then elastically spring back
to their original form. Their moduli of elasticity are quite small. They are to produce
automobile tyres. Example is Natural poly-isoprene (natural rubber)
3.3.2.1.3
Fibers
Fibers are capable of being drawn into long filaments (100: 1 length-to-diameter ratio).
Fiber polymers are utilized in the textile industry, being woven or knit into cloth or
fabric. While in use, fibers may be subjected to a variety of mechanical deformations:
stretching, twisting, shearing, and abrasion. Consequently, they must have a high tensile
strength (over a relatively wide temperature range) and a high modulus of elasticity, as
well as abrasion resistance.
3.3.2.2 CERAMICS
These are inorganic non-metallic materials made up of two or more elements bonded
together. They can be dense or light in weight but with excellent strength and hardness
properties. Typical properties of ceramics include:
Ceramics are brittle, wear resistant, hard and oxidation-resistant.
They are very strong in compression but very weak in tension due to presence of
minute cracks.
They are also widely applicable in positions involving chemicals because they are
inert.
Ceramics are hard and strong.
Ceramics are divided into four sections of application, namely: Structural application ceramics e.g. bricks, roof and floor tiles.
Refractory applications: These are the ceramics used as kiln linings and gas fire
radiant.
Technical engineering applications: These include fire ceramics used in space
shuttle programmers.
Whiteware applications ceramics: Become white after the high-temperature
firing. E.g. porcelain, pottery, tableware, china, and plumbing fixtures (sanitary
ware).
25
3.3.2.3 COMPOSITES
These are engineering materials made from two or more materials with significantly
different chemical and physical properties and these materials remain separate or
distinct on the microscopic level within a finished structure. The constituent material is
either a matrix or reinforcement.
The matrix, usually a polymer matrix, surrounds and supports the reinforcement by
maintaining their relative positions. The reinforcement; usually fibers, metals, ceramics
and polymers impart their mechanical and physical properties to enhance the matrix
properties. Composites have special properties like: Fire resistance.
Light weight.
Chemical and weathering resistance.
Good electrical properties.
High strength to weight ratio.
Composites fail by: Shock, impact and repeated cyclic loading causing separation of the
layers (de-lamination). Some composites are brittle and have little reserve strength
beyond initial onset of failure while others have reserve energy absorbing capacity past
the onset of damage. In comparison with other materials, composites have poor bearing
strength.
26
4
CHAPTER FOUR
REVIEW OF LITERATURE ON DECISION MAKING AND
INFORMATION PROCESSING
4.1 INTRODUCTION
Engineering design is inherently a decision making process where choices are
constantly being made between alternatives, such as selection of concepts, components,
or the rating of client needs. The tools used in solving these problems depend largely on
the type of data available (deterministic, probabilistic, or uncertain)4.
Numerous methods have been developed to help design teams make the correct choices
by using structured approaches. The two widely used tools include:
i. Rank order: Pairwise comparison charts (PCCs)
ii. Analytic hierarchy process(AHP)
4.1.1 RANK ORDER: PAIR WISE COMPARISON CHARTS
Dym and Little (2003) proposed using of PCCs based on the premise that it is easier to
differentiate between pairs of alternatives e.g. A is better than B or A is similar to B.
PCCs use a matrix structure to compare each alternative individually with every other
(Pair wise comparison). The results from the comparison are summed to obtain an
overall rank order.
PCCs can be generated using the following steps:
1) In a table, the n items to be compared are listed as row and column headings in
an nn matrix. An additional column is added at the end of the matrix to record
the total score for each item.
Table 4.1- Structure of PCCs; Adapted from: Madara Ogot & Gul Kremer, Engineering
Design: A Practical Guide.
Comparison criteria
Evaluated
A
B
C
D
E
F
4Taha,
A
1
1
1
1
1
B
-1
1
-1
1
0
C
-1
-1
-1
-1
-1
D
-1
1
1
0
1
E
-1
-1
1
0
1
F
-1
0
1
-1
-1
Total
-5
0
5
-2
0
2
A., 2008
27
Key
A-Size
B-Weight
C-Strength
D-Cost
E-Availability
F-Manufacturability
2) The first row is compared individualy to all other column items. Scores of 1, 0,
and -1 are assigned if the row item is better, similar, or worse, respectively than
the column item.
3) The row scores are totalled, yielding the overall score of thr first alternative.
4) Steps 2 and 3 are repeated for all alternatives.
5) The ranking order for alternatives is compiled. The higher the overall score, the
higher the alternatives rank. From the table above, strength (C) is ranked
highest.
4.1.2 RELATIVE ORDER: ANALYTIC HIERARCHY PROCESS (AHP)
It is used when a relative score is required for a set of qualitative alternatives.AHP
determines by how much each alternative is better (or worse) than the others. It is
based on the fundamental scale which captures individual preferences with respect to
qualitative or quantitative attributes.
Example
Consider two choices of materials all of which meet the basic properties desired for a
particular product. To select one material, the designer specifies three main criteria: its
availability, cost, and the manufacturing process. Giving a weight of approximately 45%
to availability, 35% to cost and 20% to manufacturing process, the designer uses a
systematic analysis to rank these two materials. The table below ranks the three criteria
for the two materials:
Table 4.2: Criteria ranking for the three materials
Index
Estimates
Criterion
Manufacturing
process (20%)
Cost
(35%)
Availability Composite
(45%)
weights
Material
A
Material
B
0.63
0.42
0.33
0.4215
0.37
0.58
0.67
0.5785
The problem involves a single hierarchy (level) with three criteria (manufacturing
process, cost, and availability) and two decision alternatives (Material A and material
B). The ranking of each material is based on computing the following composite
weights:
28
Material A=0.2*0.63+0.35*0.42+0.45*0.33=0.4215
Material B=0.2*0.37+0.35*0.58+0.45*0.67=0.5785
Material B has the highest composite weight, and is therefore the best material choice
for the application.
f)
g)
h)
i)
30
CHAPTER FIVE
Helical gears: Similar to spur gears except that the teeth of a helical gear are
cut at an angle (known as the helix angle) to the axis. Helical gears are made in
both right and left hand configurations.
31
Bevel gears:The teeth lie upon a cone rather than a right cylinder. Variants of
the bevel gears are the straight bevel, spiral bevel and the hypoid gears.
32
Worm and worm wheel: A worm is a type of gear with one or more cylindrical
threads or starts (that resemble screw threads) and a face that is usually wider
than its diameter. A worm wheel, on the other hand, is a helical gear that meshes
with the worm.
33
Whole depth (h ) is the total height of the tooth or the total depth of the tooth space.
Thus
Working depth (h ) is the distance that a tooth that projects into the mating tooth
space. Thus 2
34
Clearance (c) is the distance between the top of the tooth and the bottom of the mating
tooth space. Thus;
Circular pitch (p) is the distance, along the pitch circle, from a point on one tooth to a
corresponding point on adjacent tooth. Therefore /(z is the number of teeth).
Module (m) is the ratio of the pitch circle diameter of a gear wheel to the number of
teeth on the gear wheel. Thus /. It therefore follows that and that the
circular pitch and the module are really measures of the same quantity, to different
scales.
Pressure angle or tooth shape () is the angle at which the pressure from the tooth
of one gear is passed on to the tooth of another gear. Spur gears come in two pressure
angles: 14
!#
"
and 20.
Diametral pitch (P) is the ratio of the number of teeth on a gear wheel to the pitch
circle diameter of the gear wheel. Thus % / 1/
Backlash (B) of a pair of meshing teeth is the amount by which the width of a tooth
space exceeds the thickness of a mating tooth on the pitch circle. A small amount of
backlash is usually desirable, or necessary. But if it is excessive the gears will rattle
under light loads or when running idle.
Face width (b) is the lengthwise width of the teeth in the direction parallel to the axis of
rotation of the gear wheel
Gear ratio (G) is the mathematical ratio of a pair of spur gears determined by dividing
the number of teeth on the larger gear with the number of teeth on the pinion.
35
Bending failure: Every gear tooth acts as a cantilever. If the total dynamic load
acting on the gear tooth is greater than its beam strength, failure due to bending
will occur i.e. the tooth will break. To avoid such failure, the module and face
width is adjusted such that the beam strength is greater than the dynamic load.
Pitting: Its surface fatigue failure which occurs due to many repetition of
Hertz 6contact stresses. The failure occurs when the surface contact stresses are
higher than the endurance of the material. It starts with formation of pits which
continue to grow resulting in the rupture of the tooth. To avoid pitting, the
dynamic load must be less than the wear strength of the gear tooth.
Abrasive wear: Foreign particles in the lubricant such as dirt, dust or burr can
cause loss of material from contacting surfaces of teeth. This type of failure can
be avoided by providing filters for lubricating oil or by using high viscosity oil
which forms a thicker film and permits easy passage of such particles without
damaging the gear surface.
Corrosive wear: Corrosion of teeth surface is mainly caused due to the presence
of corrosive elements such as additives present in lubricating oils. In order to
avoid this type of wear, proper anti-corrosive additives should be used.
Contact stress was originally conceived by Hertz (1896) in whose name it is often referred.
36
Fig. 5.7: A reverted two stage compound gear train in a manual winch
For the reverted compound gear train, the input and output shafts must be co-axial and
therefore:
C1=C3
(5.1)
Moreover, it is common practice to make meshing gear wheels be of equal face widths.
In that case:
'
& ( ') ,
'* ' +
(5.2)
b2
b3
Z2
Z3
C1
C3
Z1
Z4
b1
b4
37
In figure 5.8, the numbers of teeth on the gear wheels are denoted -( , z2, z3 and z4.
Further, the corresponding gear wheel pitch diameters are D1, D2, D3 and D4.
Then the modules of the gear wheels can be determined as follows:
.(
/(
-(
; .)
/)
-)
; .*
/*
-*
; .+
/+
-+
(5.3)
As is well known, the modules of meshing gear wheels must be equal. Therefore:
.
& ( .) 0
.* .+
(5.4)
1(
1*
2)
2(
2+
2*
/(
/)
/*
/+
-(
-)
-*
-+
(5.5)
(5.6)
'3(
'(
.(
; '3*
'*
.(
(5.7)
4
& 5 '3( 5 (+,
4 5 '3* 5 (+
(5.8)
Furthermore, according to Juvinall (1983), gear wheels with standard pressure angle of
20 should not have less than 18 teeth. This is the condition for avoiding undercutting
for gear wheels that are produced by a generation process. However, according to
Budynas and Nisbett (2008), the number of teeth on a pinion that will avoid
interference is determined as follows:
38
-6 7 91
)8
)
: ;)<=:3
(5.9)
Where, BC is the speed ratio for a pair of meshing gear wheels, k is a factor that is equal
to 1 for standard full-depth teeth and 0.8 for stub teeth, is the pressure angle and DE is
the number of teeth on the pinion. For full-depth teeth, if we make BC =1 /6 and =20,
we find that DE 16.
Mathematically, this constraint may be stated as follows:
& ( 7 (F,
-* 7 (F
(5.10)
Low speed
High speed
Spur
7:1
5:1
Bevel
5:1
3:1
We shall limit the maximum speed reduction in a single stage to be 1: 6. Bearing in mind
that the gear train being designed is a speed reducer, this leads to constraints that may
be stated mathematically as follows:
1
& ( 7 G. (FI,
1* 7 G. (FI
(5.11)
The intra-stage gear ratios must take on such values as to obtain the required overall
gear ratio of the train. This constraint may be expressed as follows:
1( 1* 1
(5.12)
39
J'
KL
'6M
(5.13)
Where:
N is the transmitted force (newtons)
b is the face width of the gear (mm)
is the circular pitch(mm)
O is known as the tooth form factor or Lewis form factor.
The value of y, in terms of the number of gear teeth is expressed as:
y G. (P+
y G. (IP
G.4()
Q
G.S+(
Q
Now, from their definitions, the circular pitch and the module are related as follows:
6 T.
(5.14)
In 1892, Wilfred Lewis investigated for the strength of gear teeth. He derived an equation which is now
extensively used by industry in determining the size and proportions of gear.
40
Therefore, from equations (5.13) and (5.14), the following can be readily obtained:
KL T'.MJ'
(5.15)
U TM
(5.16)
Then, from equations (5.15) and (5.16) the following can be readily obtained:
KL '.UJ'
(5.17)
Figure 5.9, shows the pitch circles of a pinion and a gear in mesh, along with the forces
and torques acting upon the two gear wheels. V! is the input torque at the pinion shaft
and V" is the load torque acting upon the shaft carrying the driven gear. Therefore:
W(
KL( /(
)
(5.18)
(5.19)
D2
F1
T2
Fr1 F1
Ft1
Ft1
T1
Ft1
D1
The power input at the pinion shaft is denoted by ]! and can be expressed as follows:
^( W( 2(
(5.20)
`(
(5.21)
Let us denote the pitch line velocity of the input pinion by _! . Then we can write the
following:
2( /(
)
From equations (5.18), (5.20) and (5.21), we can write the following:
KL(
^(
`(
(5.22)
From equations (5.7), (5.17) and (5.22), we can write the following:
^(
`(
(5.23)
Similarly, for the output stage pinion gear, we can write the following:
^(
`*
(5.24)
If we denote the allowable bending stress of the gear material by abc , then we can write
the following:
J'd 7
^(
'3( .)( U( `(
(5.25)
Similarly, assuming that all the gear wheels in the train are made of the same material,
we can write the following:
J'd 7
^(
'3* .)* U* `*
(5.26)
`(
`*
2( /(
2 . ( )( (
)
2( 1( .* -* f
2* .* -*
)
)
(5.27)
42
Thus, from equations (5.25), (5.26) and (5.27), we can write the following:
&
J'd 7
J'd 7
)^(
'3( .*( U( 2( -(
^(
'3* 1( .** U* 2( -*
(5.28)
B. Wear Strength
The contact conditions between spur-gear-tooth profile are similar to those between
two cylinders except that on the gear tooth profiles the radius of curvature is
constantly changing. If use is made of the contact and pressure conditions between two
cylinders as measure of the stress on the surface of the gear teeth, it is necessary to first
select some definite part of the gear tooth for use as a basis of comparison.
In many cases, wear on gear teeth first becomes apparent at or near the pitch line.
Possibly one contributing cause for this effects is the fact that one pair of teeth is usually
carrying the entire load. When contact takes place near the top or the bottom of the
active profile, two pairs of mating teeth are usually sharing the load. Again the impact or
dynamic load is usually imposed on the gear near the pitch line area. It is the intensity of
this dynamic load that is largely responsible for the surface fatigue of the gear materials.
Hence the radius of the curvature of the gear tooth profile at the pitch line is selected as
the one to use as a basis of comparison with the Hertz equation (for cylinders).
The Hertz equation was modified to give the expression for the limiting wear load for
gear teeth by Buckingham and was presented by Oonishi as follows
KL 88g /6 '6 h
)-i
-6 ;-i
(5.29)
Where:
k is the contact stress factor (N/mm2) and is given by:
8
8For
(.+
kv is the velocity factor. For medium speed, surface finished gears it is given by:
8g
Jk ) Z[\ )
F.(
F.(;`6
Dp is the pitch circle diameter of the pinion (mm) in the meshing pair of gears
bp is the face width of the pinion (mm) in the meshing pair of gears
43
zg, zp are the numbers of teeth of the gear and the pinion, respectively, in the
meshing pair of gears
Adapting this equation to the load on the input stage pinion, we can write the following:
)-)
-( ;-)
(5.30)
5 88g -( .( '( l
1( ;(
(5.31)
Similarly, for the output stage pinion, we can write the following:
^(
`*
5 88g -* .* '* l
1* ;(
(5.32)
From equations (5.7), (5.31) and (5.32), we can write the following:
^(
`(
^(
`*
1( ;(
)
1* ;(
n
n
(5.33)
(5.34)
The contact stress for the pinions in the input and output stages can be expressed as:
87
87
^( 91( ;(<
(5.35)
^( 91* ;(<
(5.36)
) `( 8g -( .)( '3(
) `* 8g -* .)* '3*
Denoting the allowable contact stress factor of the material by 8c , and assuming that
all the gear wheels in the train are made of the same material, it follows that:
&
8d 7
8d 7
^( 91( ;(<
) `( 8g -( .)( '3(
^( 91* ;(<
) `* 8g -* .)* '3*
(5.37)
44
Thus, from equations (5.27) and (5.37), we can write the following:
&
8d 7
8d 7
^( 91( ;(<
(5.38)
45
CHAPTER SIX
HSLA Steel was the least expensive material at Kshs 290 and thus it had a cost index of
1.
Example, for UNS S40500 ( 405 Stainless steel) the cost index is:
pq=L r3stu I+G = 0.39189
)4G
{^| FG
{^| qv tdkw .dLty:dx
East African Foundries Ltd, Kensmetal Ltd and other local suppliers in Industrial Area, Nairobi.
See appendix.
10
46
Example, for UNS S40500 ( 405 Stainless steel) the manufacturing index is:
zd3`vdkL`y:3i r3stu
FG
G. +S*SI
()+
Thus the material that can be machined easily will have a higher manufacturing index.
Material Name
HSLA Steel
A285-C Steel
A516-60 Steel
A516-60 Steel
A515-70 Steel
A515-55 Steel
AL516-65 Steel
A515-60 Steel
A516-70 Steel
A516-55 Steel
EnviroBrass2
405 SS
410 SS
409 SS
446 SS
Cost
Index
1
0.76316
0.76316
0.76316
0.725
0.725
0.725
0.725
0.725
0.65909
0.28019
0.39189
0.39189
0.31522
0.31183
Manufacturing
Index
0.387096774
0.555555556
0.491803279
0.483870968
0.550458716
0.508474576
0.45112782
0.45112782
0.413793103
0.491803279
0.882352941
0.483870968
0.483870968
0.458015267
0.416666667
Availability
Index
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
Composite
Index
3.13870968
3.07266082
3.06628559
3.06549236
3.05879587
3.05459746
3.04886278
3.04886278
3.04512931
3.02986215
2.93630293
2.93554926
2.93554926
2.90612761
2.90080645
47
11
48
Id
int
UNS No
Material Name
Form
Yield Strength
int
Tensile Strength
int
Density
int
Elastic Modulus
int
Hardness
int
Availability Index
int
Cost Index
int
Manufacturing
Index
int
Composite Index
int
2.Login(Administration Id
login Purpose)
Username
Password
int
Unique identifier
material.
of
the
49
Below is the implemented database using MySql relational database. It shows two tables
for materials properties and login (for administrators login details):
50
The homepage has three menu items: select material, material database, and
administration. On the select material menu item, the spur link enables the user to
start the process of material selection for the gear train. The material database has links
for viewing and searching the material database. The third item, administration, allows
the user to add to and edit material in the database.
51
Clicking on the spur link, a list of locally available materials is displayed. This is done
by screening the material database using availability as the non-discriminating
parameter (if the material is not available it cannot be used and therefore its dropped
in the first stage of selection i.e. its not displayed).
On selecting the calculate stresses option, a page for capturing properties specified by
the user is displayed. This page allows one to input the design specifications for the
gear.
52
The calculate button is used to compute the bending and contact stresses as defined
by equations (5.28) and (5.38) respectively. If the user selects the calculate button
without filling any fields an error report is displayed highlighting the empty text fields
in the html form as shown below:
Filling the form with gear specifications e.g. data considered for our selection process, it
would appear as below:
53
On selecting the calculate button after successfully filling in all the text fields, a new
page loads showing the parameters used in calculating the design stresses and a list of
the qualified materials. The qualified materials are ranked using composite index in a
descending order (starting with the one having the highest composite index to the one
with the least composite index).
This is the second stage in material selection where screening is done using go/no-go
parameters (These are minimum/maximum properties values which candidate
materials must meet). In selecting a candidate material for the gear train, the bending
stress was compared with the materials yield strength (go/no-go parameter) while the
contact stress was compared with the materials contact stress factor (go/no-go
parameter). For any material to qualify it had to meet these two conditions:
From the list of qualified materials above, UNS K11576 HSLA Steel was ranked the
highest with a composite index of 3.1387 while UNS S20910 22-13-5 Stainless Steel was
the lowest ranked with an index of 2.8678.
54
Other than selecting materials, the system has interfaces for viewing and searching the
database. To view materials in the database, click on the view database link to retrieve
and display all materials in the database as shown below:
To search for a particular material in the database, click on the search database link in
the material database menu item and a form for entering the material specifications to
aid in the search is displayed. For example, using density as the search field and
entering a value of 7850Kg/m3 , materials in the database matching this value are
retrieved and displayed.
55
The application also allows the administrator to manage the database by:
Adding new materials and,
Editing existing materials in the database
These two tasks require the administrator to log in (Logging in prevents unauthorized
users from altering contents in the database).To add new materials to the database click
on the add materials link and after a successful login the form for entering materials
properties value is displayed:
Enter the material properties values and click the save button.
56
To edit materials in the database click on the edit materials link and after a successful
login the Administration Materials View page is displayed with the edit and delete
options:
Select edit link and the html form to edit materials properties is displayed:
57
The user is required to enter values in all the fields. In case no change is to be effected in
a given field the previous value should be entered. Note that the Id is a unique identifier
of a material; therefore use the previous Id as the new Id for the material when editing:
Click on save button to save the edited material properties in the database.
Finally, to remove any material from the database click on the delete link in the
administration materials view.
58
7.1 DISCUSSION
The selection of a material for machine part or structural member is one of the most
important decisions the engineering designer has to make. Poor material choice can
lead to failure of a part or system or to unnecessary cost. The process of materials
selection is difficult one and typically involves multiple conflicting material
characteristics as well as large number of constraints.
A good material selection process considers the limiting factors for a particular design
exercise which include material properties, material processing, material cost and
material availability. The selection of candidate materials for the gear train was done in
two stages; screening of the large material database and ranking of qualified materials.
Screening was done in two steps. In the first step, using availability as the nondiscriminating parameter all locally unavailable materials were eliminated from further
consideration in the selection. The second step used go/no-go parameters as the basis
for screening. In this case, the materials yield strength and the contact stress factor
were considered as the go/no-go parameters. Therefore, for any material to qualify it
had to meet these two conditions: material yield strength had to be greater than the
calculated bending stress and the material contact stress factor had to be greater than
the calculated contact stress.
After screening, the second stage involved ranking the qualified materials using
composite index. The composite index for a given material, by using the Analytic
hierarchy process (AHP), was obtained by multiplying the availability index by a weight
of 0.55, the cost index by a weight of 0.35, and the manufacturing index by a weight of
0.1 and thereafter summing the weighted indices12. The material with the highest
composite index was ranked the best by the material selection system.
Different materials scored differently in the different indices (i.e. availability, cost and
manufacturing). No particular material was exclusively favored by all factors. Some
scored high on some indices and poorly on others while others were just fair. For
example, Low Carbon Steels and Low alloy Steels scored highly in the availability index
as well as cost index. On the other hand, Aluminium alloys scored well in the availability
index but poorly in the cost index.
From the list of the five qualified materials, UNS K11576 HSLA Steel was ranked the
highest with a composite index of 3.1387. Considering the first three materials and
eliminating UNS S43600 436 Stainless Steel on the basis that its in sheet form and
hence it cannot be used in gear manufacture, the decision on which material to use
12
59
relied on supporting information. The supporting information for the two materials is
given below:
UNS K11576 High Strength Low Alloy Steel
Material Composition: Fe 95-97%, C (0.1-0.2%), Mn (0.6-1%), P (0.035%), S
(0.04%), Si (0.15-0.35%), Cr (0.4-0.65%), Ni (0.7-1%), Mo (0.4-0.6%), V (0.030.08%), Cu (0.15-0.5%), B (0.002-0.006%).
Maximum plate thickness is 64 mm.
Ductile with elongation at failure equal to 18% for a 50mm specimen.
Much stronger and tougher than ordinary carbon steels.
Highly resistant to corrosion.
Available in many forms e.g. bar, plate, tube.
UNS K02002 A515-55 Steel:
Material Composition: Iron 98%, Carbon 0.2%, Manganese 1.03%, Phosphorous
0.04%, Sulphur 0.05%, Silicon 0.28%, Copper 0.20%.
Maximum plate thickness is 63.4 mm.
Much stronger and tougher than ordinary carbon steels.
Ductile with elongation at failure equal to 22% for a 50mm specimen.
Characterized by good corrosion resistance and high hardness.
Available in many forms e.g. plate, round bar, forgings, tubings.
From the supporting information, the two materials had almost similar attributes, and
thus UNS K11576 HSLA Steel was chosen as the best material for the gear train design
because of its higher composite index.
This online material selection system helps the designer perform the rigorous process
of material selection for the gear train by giving accurate information at fast speeds thus
saving time and money during design. However, several challenges were encountered
during the development of this selection system. Among them were lack of easy access
to comprehensive and accurate information on the availability of the different materials
and their local cost.
60
7.2 CONCLUSION
Optimal selection of engineering materials is done in two stages: screening followed by
ranking. The first stage reduces the large material database to a small candidate list
which meets the critical property limits as defined by the design equations. The second
stage involves ranking the candidate materials using composite index. Supporting
information is then sought and used to narrow down the ranked materials to a final
choice allowing a definite match to be made between design requirements and material
attributes.
The selection of a suitable material for the gear train was successfully implemented as
an information processing routine on a computer system. Only data input was required,
the application developed did the data manipulation and output a list of suitable
materials ranked in order of preference. The selection of UNS K11576 HSLA Steel was
therefore not based on past experience but on stepwise selection from first principles,
considering the design problem was new.
7.3 RECOMMENDATIONS
1. Documentation of concise and accurate information on the materials available in
the local market and their costs.
2. Future students to approach a local gear manufacturing industry to test and
check the workability of this materials selection system.
3. Future students to ensure full realization of an online materials selection portal
for all types of gears (bevel, worm and wheel).
4. Future students to develop this application further to incorporate other
engineering designs other than gear design so as to ensure that we have a onestop universal materials selection system.
61
62
7.4.2 APPENDICES
7.4.2.1 Tables
Table 7.1: Local Cost of Materials in Kshs per Kg
UNS Number
K11576
K02801
K01800
K02100
K02401
K02002
K02403
K02800
K01800
K02700
S40500
S41000
S40900
S44600
S40300
S43600
S30200
S44200
S34700
S32100
S31725
S31635
S43400
S30500
S31726
S34800
S21000
S20910
C89520
C89510
C61300
C60800
C61300
A95154
C11000
C10200
Material Name
HSLA Steel
A285-C Steel
A515-70 Steel
A516-60 Steel
A516-60 Steel
A515-55 Steel
AL516-65 Steel
A515-60 Steel
A516-55 Steel
A516-70 Steel
405 Stainless Steel
410 Stainless Steel
409 Stainless Steel
446 Stainless Steel
403 Stainless Steel
436 Stainless Steel
302 Stainless Steel
442 Stainless Steel
347 Stainless Steel
321 Stainless Steel
317LM Stainless Steel
316Ti Stainless Steel
434 Stainless Steel
305 Stainless Steel
317L4 Stainless Steel
348 Stainless Steel
201 Stainless Steel
22-13-5 Stainless Steel
EnviroBrass2
EnviroBrass1
Aluminium Bronze 7%
Aluminium Bronze 6%
Aluminium Bronze 7%
Aluminium 5154
ETP Copper
Oxygen free Copper
Form
Bar
Plate
Plate
Bar
Bar
Bar
Plate
Plate
Plate
Bar
Tube
Tube
Plate
Tube
Plate
Sheet
Plate
Plate
Bar
Bar
Bar
Plate
Plate
Plate
Bar
Plate
Plate
Bar
Casting
Casting
Sheet
Tube
Tube
Tube
Sheet
Sheet
Cost per kg
290
380
400
380
380
400
400
400
440
400
740
740
920
930
930
980
920
940
940
940
940
940
980
1020
1000
1035
1090
1150
1035
1150
1780
1670
1700
2010
2010
2025
63
C89320
C12200
A96061
C14200
A95086
A95083
A96063
C61400
A92024
A92014
A97075
DHP Copper
AL6061
DPA Copper
Aluminium 5086
Aluminium 5083
Aluminium 6063
Aluminium Bronze D
Aluminium 2024
Aluminium 2014
Aluminium 7075
Casting
Tube
Tube
Tube
Tube
Tube
Tube
Sheet
Tube
Tube
Tube
1610
2010
2070
2010
2130
2130
2050
1700
2010
2025
2540
UNS
Number
K11576
K02801
K01800
K02100
K02401
K02002
K02403
K02800
K01800
K02700
S40500
S41000
S40900
S44600
S40300
S43600
S30200
S44200
S34700
S32100
S31725
S31635
S43400
S30500
S31726
S34800
Material Name
HSLA Steel
A285-C Steel
A515-70 Steel
A516-60 Steel
A516-60 Steel
A515-55 Steel
AL516-65 Steel
A515-60 Steel
A516-55 Steel
A516-70 Steel
405 SS
410 SS
409 SS
446 SS
403 SS
436 SS
302 SS
442 SS
347 SS
321 SS
317LM SS
316Ti SS
434 SS
305 SS
317L4 SS
348 SS
Cost
index
1
0.7631579
0.725
0.7631579
0.7631579
0.725
0.725
0.725
0.6590909
0.725
0.3918919
0.3918919
0.3152174
0.311828
0.311828
0.2959184
0.3152174
0.3085106
0.3085106
0.3085106
0.3085106
0.3085106
0.2959184
0.2843137
0.29
0.2801932
Manufacturing Availability
index
Index
0.387096774
5
0.555555556
5
0.550458716
5
0.491803279
5
0.483870968
5
0.508474576
5
0.45112782
5
0.45112782
5
0.491803279
5
0.413793103
5
0.483870968
5
0.483870968
5
0.458015267
5
0.416666667
5
0.416666667
5
0.408163265
5
0.387096774
5
0.387096774
5
0.387096774
5
0.387096774
5
0.387096774
5
0.387096774
5
0.382165605
5
0.387096774
5
0.36809816
5
0.375
5
Composite
Index
3.13870968
3.07266082
3.05879587
3.06628559
3.06549236
3.05459746
3.04886278
3.04886278
3.02986215
3.04512931
2.93554926
2.93554926
2.90612761
2.90080645
2.90080645
2.89438776
2.89903576
2.8966884
2.8966884
2.8966884
2.8966884
2.8966884
2.89178799
2.88821948
2.88830982
2.88556763
64
S21000
S20910
C89520
C89510
C61300
C60800
C61300
A95154
C11000
C10200
C89320
C12200
A96061
C14200
A95086
A95083
A96063
C61400
A92024
A92014
A97075
201 SS
22-13-5 SS
EnviroBrass2
EnviroBrass1
AL Bronze 7%
AL Bronze 6%
AL Bronze 7%
AL5154
ETP Copper
Oxygen free Cu
DHP Copper
AL6061
DPA Copper
AL5086
AL5083
AL6063
AL Bronze D
AL2024
AL2014
AL7075
0.266055
0.2521739
0.2801932
0.2521739
0.1629213
0.1736527
0.1705882
0.1442786
0.1442786
0.1432099
0.1801242
0.1442786
0.1400966
0.1442786
0.1361502
0.1361502
0.1414634
0.1705882
0.1442786
0.1432099
0.1141732
0.307692308
0.295566502
0.882352941
0.909090909
0.612244898
0.75
0.659340659
1.034482759
1
0.967741935
0.923076923
0.923076923
0.923076923
0.895522388
0.857142857
0.779220779
0.731707317
0.631578947
0.5
0.444444444
0.4
5
5
5
3
3
3
3
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2.8738885
2.86781752
2.93630293
1.82916996
1.76824696
1.78577844
1.77563995
0.70394579
0.70049751
0.69689765
0.70535117
0.6928052
0.69134151
0.69004975
0.68336687
0.67557466
0.67268293
0.67286378
0.65049751
0.6445679
0.62996063
Hardness
(BHN)
155
108
109
122
124
118
133
133
122
145
124
124
131
144
144
147
155
Contact
stress
(MPa)
1.2053
0.10267
0.16515
0.11824
0.11824
0.42075
0.14072
0.14072
0.10267
0.20546
0.12078
0.44524
0.14072
0.18475
0.10807
0.3426
0.10639
UNS
Number
K11576
K02801
K01800
K02100
K02401
K02002
K02403
K02800
K01800
K02700
S40500
S41000
S40900
S44600
S40300
S43600
S30200
Yield
Strength
(MPa)
690
205
260
220
220
415
240
240
205
290
205
405
240
275
205
365
205
Tensile
Strength
(MPa)
795
380
485
415
414
550
450
450
380
485
415
415
450
485
485
530
515
Density
(Kg/m3)
7850
7850
7850
7850
7850
7850
7850
7850
7850
7850
7870
7870
7800
7870
7870
7870
7860
Elastic
Modulus
(GPa)
193
200
200
200
200
200
200
200
200
200
170
180
200
200
190
190
193
65
S44200
S34700
S32100
S31725
S31635
S43400
S30500
S31726
S34800
S21000
S20910
C89520
C89510
C61300
C60800
C61300
A95154
C11000
C10200
C89320
C12200
A96061
C14200
A95086
A95083
A96063
C61400
A92024
A92014
A97075
275
205
205
205
205
365
240
240
240
260
380
121
119
240
130
193
75
105
180
125
205
145
205
117
110
195
205
290
414
455
515
515
515
515
515
530
585
550
620
655
690
176
185
540
345
447
205
250
205
241
250
241
250
262
270
225
485
440
483
530
7870
8030
8030
8030
7860
7800
8000
8030
8000
8000
8030
7890
7890
7890
8170
7890
2660
8890
8940
7890
8940
2700
8910
2660
2660
2700
7890
2780
1800
2810
190
190
190
198
193
200
193
198
195
200
200
115
115
115
121
115
70
120
115
115
117
69
115
71
71
69
115
73
73
72
155
155
155
155
155
157
155
163
160
195
203
68
66
98
80
91
58
60
62
65
65
65
67
70
77
82
95
120
135
150
0.19448
0.10807
0.10807
0.1037
0.10639
0.32547
0.14582
0.14214
0.14432
0.16515
0.35277
0.06221
0.06017
0.24472
0.06824
0.15826
0.03926
0.04489
0.13766
0.06639
0.1755
0.14888
0.17855
0.0942
0.08327
0.26926
0.17855
0.56289
1.14718
1.40489
Table 7.4: Expressions for evaluating the velocity factor for different applications
Application
Pitch line
Velocity, g6
~E 5
Low
speed
Cut gear
Medium
speed
Surface finished
gear
5~10
Medium
speed
Surface finished
gear
10 ~ 20
Velocity
Factor, 8g
3.05
3.05 ~E
6.1
6.1 ~E
15
15 ~E
Type of Finish
Machining
Shaping
Machined and
ground
66
Fig. 7.1: Chart for obtaining the modified Lewis form factor (Y)
67
</li>
<li><a href="SearchMaterial.php"> Search Database </a>
</li>
</ul>
</li>
</ul>
<ul>
<li>
<h2> Administration</h2>
<ul>
<li><a href="login.php">Add Materials</a></li>
<li><a href="login2.php">Edit Materials</a>
</li>
</ul>
</li>
</ul>
</div>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</div>
</div>
</body>
</html>
B. Code to connect to the database
<?php
$DbConn = mysql_connect("localhost","projectmech","wazito");
$Db = mysql_select_db("materialsselection",
$DbConn);
if(!$Db)
{
echo "Connection to DB was not successful";
}
else
{
}
?>
69
<?php
include 'DB.php';
$get_details="select * from materialproperties WHERE AvailabilityIndex > '1'";
$get_details_res=mysql_query($get_details) or die(mysql_error());
if (mysql_num_rows($get_details_res)<1)
{
//print message
$display_block = "<p>There are no details for material properties in the database try checking
later.</p>";
}
else
70
{
// get info and build display table
$display_block ="
<table cellpadding=3 cellspacing=2 border=1 width=98% font=medium> <tr>
<td >
<strong>Id</strong> </td> <td>
<strong>UNS Number </strong></td> <td>
<strong>Material Name</strong> </td> <td>
<strong>Form</strong></td> <td>
<strong>Yield Strength</strong></td> <td>
<strong>Tensile Strength</strong></td> <td>
<strong>Density</strong></td> <td>
<strong>Elastic Modulus</strong></td> <td>
<strong>Hardness</strong></td> <td>
<strong>Availability index</strong></td> <td>
<strong>Cost index</strong></td> <td>
<strong>Manufacturing index</strong></td> <td>
<strong>Composite index</strong></td>
</tr>";
while($info=mysql_fetch_array($get_details_res))
{
$id=$info['Id'];
$UNSNo=$info['UNSNo'];
$matN=$info['MaterialName'];
$Form=$info['FormId'];
$Yst=$info['YieldStrength'];
$Tst=$info['TensileStrength'];
$ava=$info['AvailabilityIndex'];
$cost=$info['CostIndex'];
$manu=$info['ManufacturingIndex'];
$compo=$info['CompositeIndex'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td align=centre>$UNSNo<br></td>
<td align=centre>$matN<br></td>
<td align=centre>$Form<br></td>
<td align=centre>$Yst<br></td>
<td align=centre>$Tst<br></td>
<td align=centre>$de</td>
<td align=centre>$elas</td>
<td align=centre>$had</td>
<td align=centre>$ava</td>
<td align=centre>$cost</td>
<td align=centre>$manu</td>
71
<td align=centre>$compo</td>
</tr>";
}
$display_block.="</table>";
}
print "$display_block";
?>
</td>
</thead>
</table>
<div id="searchreport">
</tr>
<tr>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
D. Code to enter gear specifications
<?php include 'DB.php';?>
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Materials Properties</title> <link href="css/styles.css" rel="stylesheet" type="text/css"
/>
<script language="javascript" type="text/javascript" src="xmlhttprequest.js"> </script>
<script language="javascript" type="text/javascript" src="functions.js"> </script>
<script type="text/javascript" > function validateGetProperties
{
var reduction1 = document.getElementById('reduction1').value;
var reduction2 = document.getElementById('reduction2').value;
var speed = document.getElementById('speed').value;
var putpower = document.getElementById('power').value;
var teethpinion = document.getElementById('teethpinion').value;
var facewidth = document.getElementById('facewidth').value;
var length = document.getElementById('length').value;
var Error = "The following field(s) need to be attended to.\n";
var ErrorCounter = 0;
if( putpower == '') { Error += '-Please enter the Input power.\n'; ErrorCounter +=1; }
if( speed == '') { Error += '-Please enter the Input speed.\n'; ErrorCounter +=1; }
if( teethpinion == ''){ Error += '-Please enter the number of teeth in pinion.\n';
ErrorCounter +=1; }
72
if( reduction1 == '') { Error += '-Please enter the reduction 1.\n'; ErrorCounter +=1; }
if( reduction2 == '') { Error += '-Please enter the reduction 2.\n'; ErrorCounter +=1; }
if( length == '') { Error += '-Please enter the module.\n'; ErrorCounter +=1; }
if( facewidth == '') { Error += '-Please enter the Normalized facewidth.\n'; ErrorCounter +=1; }
if (ErrorCounter !=0)
{
alert(Error); return false;
}return true;
}
</script> <style type="text/css">
<!-.style1 {font-size: 36px; color:#FFFFFF;}
.style4 {font-size: 36px; color: #000000; }
->
</style>
</head>
<body><body bgcolor="#CC0000" background="vlcsnap-2012-03-21-11h06m27s26.png">
<div id="container">
<div id="topPan">
<div id="title" class="style1" align="center">
<h4><a href="index.php" ><img name="" src="images/2.png" width="31" height="22" alt="" />
</a>MATERIALS SELECTION SYSTEM </h4> </div>
</div> <div id="content">
<table
width="800"
height="315"
border="0"
align="center"style="backgroundcolor:#C6C6FF";border:solid4px
#990000;-mozopacity:0.5;opacity:0.5;filter:alpha(opacity=75);"
<formid="GetProperties"name="GetProperties"method="POST"action="getbestMaterials.php"
onsubmit="return validateGetProperties()">
<thead>
<tr>
<td colspan="2">
<strong>CALCULATE BENDING AND CONTACT STRESSES</strong>
</td>
</tr>
</thead>
<tbody >
<tr>
<td>Input Power </td>
<td><input type="text" name="power" id="power" /> kW</td>
</tr>
<tr>
<td>Input Speed</td>
<td><label> <input type="text" name="speed" id="speed" /> rpm</label></td>
</tr>
<tr>
<td>Number of teeth Pinion</td>
<td><label> <input type="text" name="teethpinion" id="teethpinion" /> </label>
73
</td>
</tr>
<td width="185" >Gear Ratio </td>
<td width="399" >
<label>
<input type="text" name="reduction1" id="reduction1" size="10"/> : <input type="text"
name="reduction2" id="reduction2" size="10"/>
</label></td>
<tr>
tr> <tr>
<td>Module </td>
<td><label><input type="text" name="length" id="length"/> mm</label></td>
</tr>
<tr>
<td>Normalized Face Width </td>
<td>
<label><input type="text" name="facewidth" id="facewidth"/></label> </td>
</tr>
<tr>
<td>Preference </td>
<td> <select name="preference" id="preference"> <option value="0">All</option>
</select>
</td>
</tr> <tr> <td colspan="2" align="center">
<label>
<input type="submit" name="Submit" id="Submit" value="Calculate" />
</label></td>
</tr>
</tbody>
</form>
</table>
</div>
</div>
</body>
</html>
E. Code to calculate design stresses and display qualified materials
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Get best materials</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" >
</script>
<style type="text/css"> <!-.style1 {font-size: 36px; color:#FFFFFF;}
74
align="center"><?php
align="center"><?php
align="center"><?php
align="center"><?php
76
</table>
</td> </tr> <tr>
<td>
<table>
<div id="searchreport">
<thead>
<td>
<?php
if (mysql_num_rows($result)<1)
{
//print message
$display_block = "<p>No results were found for your search.</p>";
}
else
{
// get info and build display table
$display_block ="
<table cellpadding=3 cellspacing=2 border=1 width=98%>
<tr>QUALIFIED MATERIALS</tr>
<tr>
<td>
<strong>Id</strong> </td> <td>
<strong>UNS Number</strong> </td> <td>
<strong>Material Name </strong></td> <td>
<strong>Form</strong></td> <td>
<strong>Yield Strength</strong></td> <td>
<strong>Tensile Strength</strong></td> <td>
<strong>Density</strong></td> <td>
<strong>Elastic Modulus</strong></td> <td>
<strong>Hardness</strong></td> <td>
<strong>Availability index</strong></td> <td>
<strong>Cost index</strong></td> <td>
<strong>Manufacturing index</strong></td> <td>
<strong>Composite index</strong></td>
</tr>";
while($info=mysql_fetch_array($result))
{
$id=$info['Id'];
$UNSNo=$info['UNSNo'];
$matN=$info['MaterialName'];
$Form=$info['FormId'];
$Yst=$info['YieldStrength'];
$Tst=$info['TensileStrength'];
$ava=$info['AvailabilityIndex'];
$cost=$info['CostIndex'];
$manu=$info['ManufacturingIndex'];
$compo=$info['CompositeIndex'];
77
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td align=centre>$UNSNo<br></td>
<td align=centre>$matN<br></td>
<td align=centre>$Form<br></td>
<td align=centre>$Yst<br></td>
<td align=centre>$Tst<br></td>
<td align=centre>$de</td>
<td align=centre>$elas</td>
<td align=centre>$had</td>
<td align=centre>$ava</td>
<td align=centre>$cost</td>
<td align=centre>$manu</td>
<td align=centre>$compo</td>
</tr>";
}
$display_block.="</table>";
}
print "$display_block";
}
}
?>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
F. Code to view the material database
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Materials Properties</title> <link href="css/styles.css" rel="stylesheet" type="text/css"
/>
<style type="text/css">
<!-.style1 {font-size: 36px; color:#FFFFFF;}
78
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
G. Code to search materials
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>search for materials</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" >
</script>
<style type="text/css"> <!-.style1 {font-size: 36px; color:#FFFFFF;}
.style4 {font-size: 36px; color: #000000; }
-->
</style>
</head>
<body><body bgcolor="#CC0000" background="vlcsnap-2012-03-21-11h06m27s26.png">
<div id="container">
<div id="topPan">
<div id="title" class="style1" align="center">
<h4> <a href="index.php" >
<img name="" src="images/2.png" width="33" height="26" alt="" /></a>MATERIALS
SELECTION SYSTEM </h4> </div>
</div>
<div id="content">
<table
width="100%"
height="320"
border="0"
align="center"style="backgroundcolor:#C6C6FF";
border:solid
4px
#990000;-mozopacity:0.75;opacity:0.75;filter:alpha(opacity=75);" >
<tr>
<td>
<table width="647" >
<?php include 'DB.php';
?>
<form
id="searchMaterials"
name="searchMaterials"
method="POST"
action="SearchMaterial.php">
<tr>
<td colspan="4"><strong>SEARCH MATERIALS DATABASE </strong>
</td> </tr>
<tr>
81
$formId = $_POST['formId'];
$ystrength = $_POST['ystrength'];
$tstrength = $_POST['tstrength'];
$density = $_POST['density'];
$hardness = $_POST['hardness'];
$elastic = $_POST['elastic']; }
$search_parts="";
$Sql="";
$counter =0;
$res = "SELECT * FROM materialproperties";
if(count($_POST))
{
if ($UNSNo !='')
{
if ($counter==0)
{
$search_parts=" WHERE UNSNo LIKE '%$UNSNo%'";
}
else
{
$search_parts.=" AND UNSNo LIKE '%$UNSNo%'";
}
$counter ++;
}
if
($material !='')
{
if ($counter==0)
{
$search_parts=" WHERE MaterialName LIKE '%$material%'";
}
else { $search_parts.=" AND MaterialName LIKE '%$material%'";
}
$counter ++; }
if ($formId !='')
{
if ($counter==0)
{
$search_parts=" WHERE FormId LIKE '%$formId%'";
}
else
{ $search_parts.=" AND FormId LIKE '%$formId%'";
}
$counter ++;
}
if ($ystrength !='')
{
83
if ($counter==0)
{
$search_parts=" WHERE YieldStrength LIKE '%$ystrength%'";
}
else
{
$search_parts.=" AND YieldStrength LIKE '%$ystrength%'";
}
$counter ++;
}
if ($tstrength !='')
{
if ($counter==0)
{
$search_parts=" WHERE TensileStrength LIKE '%$tstrength%'";
}
else
{
$search_parts.=" AND TensileStrength LIKE '%$tstrength%'";
} $counter ++; } if ($density !='')
{
if ($counter==0)
{
$search_parts=" WHERE Density LIKE '%$density%'";
}
else
{
$search_parts.=" AND Density LIKE '%$density%'";
}
$counter ++;
}
if ($hardness !='')
{
if ($counter==0)
{
$search_parts=" WHERE Hardness LIKE '%$hardness%'"; }
else
{
$search_parts.=" AND Hardness LIKE '%$hardness%'";
}
$counter ++;
}
if ($elastic !='')
{
if ($counter==0)
{
$search_parts=" WHERE ElasticModulus LIKE '%$elastic%'";
84
}
else
{
$search_parts=" AND ElasticModulus LIKE '%$elastic%'";
}
$counter ++;
}
$search_order="ORDER BY CompositeIndex DESC";
$Sql= $res."".$search_parts."".$search_order;
}
else
{
$Sql=$res;
}
$result = mysql_query($Sql) or die(mysql_error());
//Execute the SQL query
?>
<thead>
<td>
<?php
if (mysql_num_rows($result)<1)
{
//print message
$display_block = "<p>No results were found for your search.</p>";
}
else
{
// get info and build display table
$display_block ="
<table cellpadding=3 cellspacing=2 border=1 width=98%>
<tr>
<td>
<strong>Id</strong> </td> <td>
<strong>UNS Number</strong> </td> <td>
<strong>Material Name </strong></td> <td>
<strong>Form</strong></td> <td>
<strong>Yield Strength</strong></td> <td>
<strong>Tensile Strength</strong></td> <td>
<strong>Density</strong></td> <td>
<strong>Elastic Modulus</strong></td> <td>
<strong>Hardness</strong></td> <td>
<strong>Availability index</strong></td> <td>
<strong>Cost index</strong></td> <td>
<strong>manufacturing index</strong></td> <td>
85
<strong>Composite index</strong></td>
</tr>";
while($info=mysql_fetch_array($result))
{
$id=$info['Id'];
$UNSNo=$info['UNSNo'];
$matN=$info['MaterialName'];
$Form=$info['FormId'];
$Yst=$info['YieldStrength'];
$Tst=$info['TensileStrength'];
$ava=$info['AvailabilityIndex'];
$cost=$info['CostIndex'];
$manu=$info['ManufacturingIndex'];
$compo=$info['CompositeIndex'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td align=centre>$UNSNo<br></td>
<td align=centre>$matN<br></td>
<td align=centre>$Form<br></td>
<td align=centre>$Yst<br></td>
<td align=centre>$Tst<br></td>
<td align=centre>$de</td>
<td align=centre>$elas</td>
<td align=centre>$had</td>
<td align=centre>$ava</td>
<td align=centre>$cost</td>
<td align=centre>$manu</td>
<td align=centre>$compo</td>
</tr>";
}
$display_block.="</table>";
}
print "$display_block";
?>
</tbody>
</table>
</td>
</tr>
</table>
</div>
86
</div>
</body>
</html>
H. Code for login1 to Add materials properties
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>login-addmaterials</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" >
</script>
<style type="text/css">
<!-.style1 {font-size: 36px; color:#FFFFFF;}
.style4 {font-size: 36px; color: #000000; }
-->
</style>
</head>
<body><body bgcolor="#CC0000" background="vlcsnap-2012-03-21-11h06m27s26.png">
<div id="container">
<div id="topPan">
<div id="title" class="style1" align="center">
<h4> <a href="index.php" >
<img name="" src="images/2.png" width="33" height="26" alt="" /></a>MATERIALS
SELECTION SYSTEM LOGIN FORM </h4> </div>
</div>
<div id="content">
<table
width="100%"
height="320"
border="1"
align="center"style="backgroundcolor:#C6C6FF";
border:solid
4px
#990000;-mozopacity:0.75;opacity:0.75;filter:alpha(opacity=75);" >
<tr>
<td>
<table width="647" >
<tr><tr><p>Hi, to add materials, you must be logged in. fill the form below</p></td></tr>
<?php include 'DB.php';
?>
<form method="POST" action="engineer.php"><table border="1" align="center" ><tr>
<td><span class="style5"><label for="email"><strong>Username</strong></
</span><input type="text" name="username" id="search-text" size="30" /></td> <td><span
class="style5">
<label><strong>Password</strong></label></span>
<input type="password" name="password" id="password"/></td><td>
<input type="submit" id="search-submit" value="login" /></td></tr></table>
</form></table></td> </tr>
<tr>
87
<td>
<table>
<div id="searchreport">
<thead>
<td>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
I. Code for login 2( Editing materials)
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>login-remove_materials</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" >
</script>
<style type="text/css"> <!-.style1 {font-size: 36px; color:#FFFFFF;}
.style4 {font-size: 36px; color: #000000; }
-->
</style>
</head>
<body><body bgcolor="#CC0000" background="vlcsnap-2012-03-21-11h06m27s26.png">
<div id="container">
<div id="topPan"> <div id="title" class="style1" align="center">
<h4> <a href="index.php" >
<img name="" src="images/2.png" width="33" height="26" alt="" /></a>MATERIALS
SELECTION SYSTEM LOGIN FORM </h4> </div>
</div>
<div id="content">
<table
width="100%"
height="320"
border="1"
align="center"style="backgroundcolor:#C6C6FF";border:solid4px#990000;-mozopacity:0.75;opacity:0.75;filter:alpha(opacity=75);" >
<tr>
<td>
<table width="647" >
<tr><tr><p>Hi, to add materials, you must be logged in. fill the form below</p></td></tr>
<?php include 'DB.php';
?>
88
{
die('Wrong username or password');
}
?>
K. Code to link the login2 with the database
<?php
//ensure that all fields have been filled
include 'DB.php';
if($_POST['username']!="" | $_POST['password']!="")
{
$username = $_POST['username'];
$password = $_POST['password'];
$querytrylogin = "select * from login where username = '$username' And password =
'$password' ";
$resultlogin = mysql_query($querytrylogin) or
die ( mysql_error() );
$row = mysql_fetch_row($resultlogin);
if(isset($row[0]))
{
header ("location: AddMaterials.php");
exit;
}
else
{
die('Wrong username or password');
exit;
}
}
else
{
die('Wrong username or password');
}
?>
L. Code to add materials in the database
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<title>Adding Materials</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" > function validateAddProperties()
{
var UNSNo = document.getElementById('UNSNo').value;
var material = document.getElementById('material').value;
var formId = document.getElementById('formId').value;
90
}
else
{
echo "Material details were successfully saved in the database";
}
?>
N. Code to Administrations materials view
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Admin for Materials Properties</title> <link href="css/styles.css" rel="stylesheet"
type="text/css" />
<style type="text/css">
<!-.style1 {font-size: 36px; color:#FFFFFF;}
.style4 {font-size: 36px; color: #000000; } -->
</style>
</head>
<body><body bgcolor="#CC0000" background="vlcsnap-2012-03-21-11h06m27s26.png">
<div id="container">
<div id="topPan">
<div id="title" class="style1" align="center"> <h4>
<a href="index.php" >
<img name="" src="images/2.png" width="33" height="20" alt="" />
</a>MATERIALS SELECTION SYSTEM </h4>
</div>
</div>
<div id="content">
<table width="100%" height="100%" border="0" align="center"style="backgroundcolor:#C6C6FF;
border:solid 4px #990000;-moz-opacity:1;opacity:1;
filter:alpha(opacity=75);" >
<thead>
<tr>
<td colspan="8" align="center">
<strong>ADMIN'S MATERIALS VIEW </strong>
<?php
include 'DB.php';
$get_details="select * from materialproperties";
$get_details_res=mysql_query($get_details) or die(mysql_error());
if (mysql_num_rows($get_details_res)<1)
{
//print message
95
$display_block = "<p>There are no details for material properties in the database try checking
later.</p>";
}
else
{
// get info and build display table
$display_block ="
<table cellpadding=3 cellspacing=2 border=1 width=98%>
<tr>
<td>
<strong>Id</strong> </td> <td>
<strong>UNS Number</strong> </td> <td>
<strong>Material Name </strong></td> <td>
<strong>Form</strong></td> <td>
<strong>Yield Strength</strong></td> <td>
<strong>Tensile Strength</strong></td> <td>
<strong>Density</strong></td> <td>
<strong>Elastic Modulus</strong></td> <td>
<strong>Hardness</strong></td> <td>
<strong>Availability index</strong></td> <td>
<strong>Cost index</strong></td> <td>
<strong>Manufacturing index</strong></td> <td>
<strong>Composite index</strong></td> <td>
<strong>Edit</strong></td> <td>
<strong>Remove</strong></td>
</tr>";
while($info=mysql_fetch_array($get_details_res))
{
$id=$info['Id'];
$UNSNo=$info['UNSNo'];
$matN=$info['MaterialName'];
$Form=$info['FormId'];
$Yst=$info['YieldStrength'];
$Tst=$info['TensileStrength'];
$ava=$info['AvailabilityIndex'];
$cost=$info['CostIndex'];
$manu=$info['ManufacturingIndex'];
$compo=$info['CompositeIndex'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td align=centre>$UNSNo<br></td>
<td align=centre>$matN<br></td>
96
<td align=centre>$Form<br></td>
<td align=centre>$Yst<br></td>
<td align=centre>$Tst<br></td>
<td align=centre>$de</td>
<td align=centre>$elas</td>
<td align=centre>$had</td>
<td align=centre>$ava</td>
<td align=centre>$cost</td>
<td align=centre>$manu</td>
<td align=centre>$compo</td>
<td align=centre><a href=\"edit_material.php?id=$id\">Edit</a></td>
<td align=centre><a href=\"remove_material.php?id=$id\">Delete</a></td>
</tr>";
}
$display_block.="</table>";
}
print "$display_block";
?>
</td>
</tr>
<tr>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
O. Code to edit materials in the database
<!DOCTYPE
html
PUBLIC
"-//W3C//DTD
XHTML
1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<title>Edit db Materials</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" > function validateAddProperties()
{
var UNSNo = document.getElementById('UNSNo').value;
var material = document.getElementById('material').value;
var formId = document.getElementById('formId').value;
var ystrength = document.getElementById('ystrength').value;
var tstrength = document.getElementById('tstrength').value;
var density = document.getElementById('density').value;
var hardness = document.getElementById('hardness').value;
var elastic = document.getElementById('elastic').value;
97
98
<table
width="639"
height="315"
border="1"
align="center"style="backgroundcolor:#C6C6FF";
border:solid
4px
#990000;-mozopacity:0.75;opacity:0.75;filter:alpha(opacity=75);" >
<?php
include 'DB.php';
if($_GET['id']!="")
{
$select_row ="select * from materialproperties where Id=$_GET[id]";
$rows=mysql_query($select_row) or die(mysql_error());
if (mysql_num_rows($rows)<1)
{
echo "No items were selected for editing";
}
else
{
while($info=mysql_fetch_array($rows))
{
$id=$info['Id'];
$UNSNo=$info['UNSNo'];
$matN=$info['MaterialName'];
$Form=$info['FormId'];
$Yst=$info['YieldStrength'];
$Tst=$info['TensileStrength'];
$ava=$info['AvailabilityIndex'];
$cost=$info['CostIndex'];
$manu=$info['ManufacturingIndex'];
$compo=$info['CompositeIndex'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
}
}
?>
<form id="AddMaterials"
name="AddMaterials"
method="POST"
action="Save2.php" onsubmit="return validateAddProperties()">
<tr> <td colspan="2">
<strong>EDIT MATERIAL PROPERTIES FOR ID (<?php echo $id; ?>) IN THE
DATABASE</strong>
</td><td>Previous values</td>
</tr>
<tr>
<td width="185" >Id</td> <td width="399" ><label><input type="text" name="Id" id="newId"
/>(Use default Id)<td>
<?php
99
</tr>
<tr>
<td>Hardness</td>
<td><label>
<input type="text" name="hardness" id="hardness"/> </label></td> <td><?php echo
$had; ?></td>
</tr>
</tr>
<tr>
<td>Availability index</td>
<td><label>
<input
type="text"
name="availabilityindex"
id="availabilityindex"/>
</label></td><td><?php echo $ava; ?></td>
</tr>
</tr>
<tr>
<td>Cost index</td>
<td><label
<input type="text" name="costindex" id="costindex"/> </label></td>
<td><?php echo $cost; ?></td>
</tr>
</tr>
<tr>
<td>Manufacturing index</td>
<td><label>
<input
type="text"
name="manufacturingindex"
id="Manufacturingindex"/>
</label></td><td><?php echo $manu; ?></td>
</tr>
</tr>
<tr>
<td>Composite index</td>
<td><label>
<input
type="text"
name="compositeindex"
id="Compositeindex"/>
</label></td><td><?php echo $compo; ?></td>
</tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="Submit" id="Submit" value="Save" /> </label></td>
<td colspan="2"><label>
<a href="adminMaterialsProperties.php">Back</label></td>
</tr>
<tr>
<td colspan="2" align=centre>Use previous values if no change is to be made.</td>
</tr>
</form>
<?php } ?>
</table>
101
</div>
</div>
</body>
</html>
P. Code to save edited materials
<title>Save materials to db</title>
<?php
include 'DB.php';
$id = $_POST['Id'];
$UNSNo = $_POST['UNSNo'];
$material = $_POST['material'];
$formId = $_POST['formId'];
$ystrength = $_POST['ystrength'];
$tstrength = $_POST['tstrength'];
$density = $_POST['density'];
$hardness = $_POST['hardness'];
$elastic = $_POST['elastic'];
$availability = $_POST['availabilityindex'];
$cost = $_POST['costindex'];
$manufacturing = $_POST['manufacturingindex'];
$composite = $_POST['compositeindex'];
//calculate for allowable contact stress
$Yst2 = ($ystrength*$ystrength);
$allowableka = 0.0004886 *$Yst2 / $elastic;
//Density=$density,ElasticModulus=$elastic,Hardness=$hardness,AvailabilityIndex=$availabilit
y,CostIndex=$cost,ManufacturingIndex=$manufacturing,
//CompositeIndex=$composite,ContactStress=$allowableka
// WHERE Id=$id;
//
$sql=mysql_query("REPLACE
INTO
materialproperties
(Id,UNSNo,MaterialName,FormId,YieldStrength,TensileStrength,Density,ElasticModulus,Hardne
ss,AvailabilityIndex,CostIndex,ManufacturingIndex,CompositeIndex,
ContactStress)
VALUES('$id','$UNSNo','$material','$formId','$ystrength','$tstrength','$density','$elastic','$hardn
ess','$availability','$cost','$manufacturing','$composite','$allowableka')")
or die(mysql_error());
if(!$sql) {
echo "error in saving";
}
else
{
echo " properties for the row selected were updated in the database.";
}
?>
102
104