Académique Documents
Professionnel Documents
Culture Documents
PROCESS IN
ENGINEERING DESIGN AND MANUFACTURING
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.
INTRODUCTION
The selection of a material 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.
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.
3
OVERVIEW OF THE ENGINEERING DESIGN PROCESS
There is no particular step categorization or step nomenclature universally
accepted, but generally the complete design process is outlined in below:
Recognition of need
Problem definition
Conceptual design
Preliminary design
Detailed design
Iteration
Production
Fig: Phases in Engineering Design Process (Adapted from: Madara Ogot &
Gul Kremer, Engineering Design: A Practical Guide).
Recognition of need
The need for a product typically arises from these three distinct scenarios.
The need to design a new product or process that will solve a
particular problem or need where none exists.
The need to redesign: to design a product or process that
improves on an existing one. Improvements include lower
cost, highier efficiency, lower pollution and better
ergonomics.
The need for technology-push product or process: to design a
new product or process and generate need for it. For example , a
company develops a new technology and then seeks a market to
apply it.
4
Problem definition
Its a crucial part in the design process and includes;
Condensed formal problem statement clearly stating objective
of the design process.
Listing of technical and non-technical design constraints.
Breakdown of the problem into smaller manageable sub-problems.
Compilation and ranking of customer needs. What exactly does
the customer expect in final product or process?
Definition of criteria to be used to evaluate the design.e.g testing
of prototypes developed in preliminary design step.
Conceptual design
A concept is a very preliminary description of the form, required principles
and technology for the solution. This stage is divided into two phases:
external and internal searches. An internal search entails the design team
developing several concepts from which the best suited to the need is
selected. The stage is creative, inventive and most difficult in engineering
design process. The external search includes performing literature
searches, looking at previous patents, talking with experts, and
benchmarking similar product. The conclusion of this stage results in the
generation and selection of few promising concepts that warrant further
development.
Detailed design
This stage of the design processes develops part geometry, technical
drawings, and tolerances. During this stage:
All hitherto undefined system specifications and design
requirements are defined such as operating parameters, test
requirements, design life, material requirements, and reliability
requirements.
Detailed manufacturing drawings are produced.
Detailed assembly drawings are generated.
Testing is performed to evaluate components, validate computer
models and the design itself. Evaluation ensures all the conclusions
reached during preliminary testing stage are accurate. If errors are
found or if components do not meet anticipated design
requirements, a redesign is initiated (Iteration).
5
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.
Design Reviews
Design review (DR) is system that involves gathering and evaluating
objective knowledge about the product design quality and the concrete plans
for making it a reality , suggesting improvements at each point, confirming
2
that the process is ready to proceed to the next phase.-JUSE Design Review
Committee, 1976 (Ichida, 1996). Design review ensures design meets all
requirements, and product quality is within cost and time constraints. DRs
should include:
Collecting and compiling relevant information.
Defining quality target.
Evaluating product and process designs and supporting operations.
Proposing improvements.
Defining subsequent actions and confirm readiness for the next stage.
MATERIAL SELECTION
Selecting materials usually begins in the preliminary design stage. The
problem of material selection usually involves the selection of materials for
a new product or new design, and re-evaluation of an existing product or
design to reduce cost, increase reliability and improve performance. In
selecting the appropriate material one must consider:
1. Material properties which affects the part perfomance.
2. Material processing which affects manufacturing costs and therefore
the final part cost.
3. Material cost.
4. Availability. Is the material available in desired quantity and time frame?
5. Regulatory properties; Code acceptance and repairability
S
Mode of failure US YS CS S FP E CR HD CE
Fatigue(High
cycle)
Fatigue(Low
cycle)
Yielding
Buckling
Wear
Thermal fatigue
Creep
Gross
deformation
KEY
US-Ultimate E- Modulus of
strength elasticity
YS-Yield strength CR-Creep rate
CS-Compressive yield
strength HD-Hardness
SS-Shear yield CE-Coeffient of
strength expansion
FP-Fatigue
properties
7
b) Go/no-go parameters. These are minimum or maximum property
values which candidate materials must meet. Excess or under
values of these fixed parameters dont make up for other
deficiencies in other properties. Examples include cost and
strength.
c) Discriminating parameters. These are minimum or maximum
property values which candidate materials must meet, and where
any excess or under values can make up for other deficiencies in
other areas. Includes cost, density and strength.
Depending on material application, a characteristic that is
considered a go/no-go parameter for one application may be
considered discriminating or non-discriminating parameter in
another. For example in aerospace applications cost is a
discriminating parameter, whereas in consumer products, cost is
a go/no-go parameter.
All materials
Non-discriminating parameters
go/no-go parameters
discriminating parameters
Final material
A. Strength
Strength is a measure of how a material withstands a heavy load without
breaking. Material strength information is used in engineering design in
order to prevent the failure of a product component by rapture. Following
are parameters of strength:
Elastic Limit: This is the force required to produce permanent
deformation.
Yield Point: This refers to the level of the load at which strain
continues at a constant stress.
Yield Strength: The amount of tensile force required to just cause a
well-defined permanent deformation in a material.
Ultimate Tensile Strength (UTS): This is the maximum strength of a
material and corresponds to the maximum load stress a structural
member can withstand before fracture.
Compressive Strength: This is the ability of a material to resist a
gradually applied compressive load.
Yield strength and tensile strength are the most significant values in many
engineering applications. Appreciable permanent deformation occurs
before the stress reaches the UTS value. Therefore, to guard against
permanent deformation in engineering components, information on elastic
limit of the candidate materials should be used in design. For ductile
materials, yield point information should be used instead of elastic limit
value. For this project, yield strength and compressive strength of
materials have been used as screening properties in the materials
selection process.
B. Rigidity
This is the resistance of a material to deflection under a bending force. Its
specified by the elastic modulus of a material .Modulus of elasticity is the
ratio of the applied stress to the corresponding strain in the elastic limit of
a material. The higher the value of the elastic modulus the more rigid the
material is.
9
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.
1
0
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
3
question can be stretched or drawn without necking and failing . Forming
limit is thus defined as the extent to which the metal can be stretched
before failure occurs.
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
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 high-strength steels, become brittle and fracture following
exposure to hydrogen. It results from unintentional introduction of
hydrogen into susceptible metals during forming or finishing operations
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.
1
2
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.
A. Machining
Machining operations can be classified as the ones in which material is
removed in chip form by means of a cutting tool or an abrasive wheel or
block. Some of the machining operations include: turning, grinding,
drilling, boring, reaming, milling, planing, shaping and broaching.
The designer differentiates the machining processes mainly on the basis of
the cost to achieve a certain shape, accuracy and surface finish. The
processes are usually costly and produce scrap and should therefore be
avoided if possible. The designer will specify abrasive methods when
he/she seeks high accuracy and surface finish or when the material is too
hard for other cutting tools.
B. Casting
Metal casting is the process by which a metal or metal alloy is poured into
a mould and hardened in the shape of the mold cavity. The casting
process involves:
Melting the metal.
Pouring the molten metal into the mold.
Allowing the metal to cooland solidify.
Removing the finished part from the mold.
This manufacturing process allows the creation of complex parts and can
be used to make small or large parts. In addition, it is well suited for mass
production. The types of casting processes available are sand casting,
pressure die casting, investment casting and ingot casting. The choice of
any of these processes depend mainly on the material, size, tolerances
involved and more importantly, on the number of pieces to be produced.
C. Forging
Forging involves plastic deformation of material between two dies to
achieve the desired configuration. Depending upon complexity, forging is
carried out as open die forging and closed die forging. In open die forging,
the metal is compressed by repeated blows using a mechanical hammer
and its shape is manipulated manually. In closed die
1
3
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
1
4
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.
A. Code Acceptance
Professional Engineering oganisations provide performance oriented
codes, standards and evaluation procedures by which a product can be
tested and evaluated for compliance.This helps provide a uniform and
widely recognised basis for acceptance of new products.After the new
product has been tested to indicate conformance to the
1
5
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.
1
6
3 CHAPTER THREE
LITERATURE REVIEW ON ENGINEERING
MATERIALS, THEIR
PROPERTIES AND CATEGORIES
3.1 INTRODUCTION
Many at times, a materials problem is really one of selecting that material
which has the right combination of characteristics for a specific
application. This necessitates that the engineering designers have some
familiarity with the general characteristics of a wide variety of materials.
17
(corrosion). Specialized simulation tests are developed to screen
materials for complex service conditions.
ENGINEERING MATERIALS
Composites Ceramics
Polymers
Non
Ferrous Ferrous
Carbon steels
Alloy steels
Low High
Carbon Carbon
High alloy
HSLA Stainless
Medium Carbon
Martensiti
Austenitic Ferritic c Duplex
3.3.1.1.1 STEELS
Steels are ironcarbon alloys that may contain appreciable
concentrations of other alloying elements. The mechanical properties
are sensitive to the content of carbon, which is normally less than 1.0
wt%. Steels are classified according to carbon concentration, namely,
into low, medium, and high carbon types.
A. Low-Carbon Steels
Have carbon content of less than 0.25 wt%. Microstructures consist of
ferrite and pearlite constituents. As a consequence, these alloys are
relatively soft and weak, but have outstanding ductility and toughness; in
addition, they are machinable, weldable. A sub group of low-carbon alloys
are the high-strength, low-alloy (HSLA) steels. They contain other
alloying elements such as copper, vanadium, nickel, and molybdenum in
combined concentrations as high as 10 wt%, and possess higher
strengths.
B. Medium-Carbon Steels
Have carbon concentrations between about 0.25 and 0.60 wt%. These
alloys may be heat treated by austenitizing, quenching, and then
tempering to improve their mechanical properties. They are most often
utilized in the tempered condition, having microstructures of tempered
martensite. The plain medium-carbon steels have low hardenabilities and
can be successfully heat treated only in very thin sections and with very
rapid quenching rates.
C. High-Carbon Steels
Have carbon contents between 0.60 and 1.4 wt%. They are the hardest,
strongest, and yet least ductile of the carbon steels. Used in a hardened and
tempered condition and, as such, are especially wear resistant and capable
of holding a sharp cutting edge. The tool and die steels are high-carbon
alloys, usually containing chromium, vanadium, tungsten,
19
and molybdenum. These alloying elements combine with carbon to form
very hard and wear-resistant carbide compounds.
20
exists in the form of clusters or rosettes surrounded by a ferrite or pearlite
matrix, depending on cooling rate. The microstructure of malleable iron is
similar to that for nodular iron hence its relatively high strength and
appreciable ductility or malleability.
A. Copper
Unalloyed copper has excellent thermal and electrical conductivity. It is
soft, ductile, and has an almost unlimited capacity to be cold worked. It is
highly resistant to corrosion in diverse environments including the
ambient atmosphere, seawater, and some industrial chemicals. The
mechanical and corrosion-resistance properties of copper may be
improved by alloying. Most copper alloys cannot be hardened or
strengthened by heat-treating procedures; consequently, cold working
and/or solid-solution alloying must be utilized to improve these
mechanical properties.
B. Copper alloys
Brasses
Zinc is the predominant alloying element. brasses are relatively soft,
ductile, and easily cold worked. Brass alloys having higher zinc content
contain both and phases at room temperature. The phase has an
ordered body centred cubic (BCC) crystal structure and is harder and
stronger than phase; consequently, + alloys are generally hot
worked. Some of the common brasses are yellow, naval, and cartridge
brass, muntz metal, and gilding metal.
Bronze
The bronzes are alloys of copper and several other elements, including tin,
aluminum, silicon, and nickel. These alloys are somewhat stronger than the
brasses, yet they still
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.
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 lead
tin 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.
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.
3.3.2.1.1 Plastics
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
2
4
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).
2
5
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.
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.
2
6
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
4
(deterministic, probabilistic, or uncertain) .
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)
Table 4.1- Structure of PCCs; Adapted from: Madara Ogot & Gul
Kremer, Engineering Design: A Practical
Guide.
Comparison criteria
Evaluate
d A B C D E F Total
A -1 -1 -1 -1 -1 -5
B 1 -1 1 -1 0 0
C 1 1 1 1 1 5
D 1 -1 -1 0 -1 -2
E 1 1 -1 0 -1 0
F 1 0 -1 1 1 2
4
Taha, A., 2008
27
Key
A-Size E-Availability
B-Weight F-Manufacturability
C-Strength
D-Cost
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:
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.
4.2INFORMATION PROCESSING
4.2.1 Hypertext Pre-Processor (PHP)
PHP is a server-side scripting language. A server- side scripting language
allows the user to embed little programs (scripts) into the HTML of a web
page. When executed, such scripts allow the user to control what will
actually appear in the browser window with more flexibility than is
possible using straight HTML. Although to some extent PHP is similar to
JavaScript, the key difference between the two is that JavaScript is
interpreted by the web browser once the web page that contains the script
has been downloaded whereas PHP is interpreted by the web server
before the page is sent to the browser. Once interpreted, the results of the
script replace the PHP code in the Web page so that all the browser sees is
a standard HTML file. The script is processed entirely by the server, hence
the designation: server-side scripting language.
Some of the merits of PHP include:
Access to server-side resources.
Interpretation of scripts by the Web server thus
eliminating browser compatibility issues.
Reduced load on client.
PHP syntax is similar to that of C, C++, Java, or any other C-derived
language.
4.2.2 Definitions
The following definitions are commonly associated with PHP:
a) Constant:- This is an identifier (name) for a simple value and does
not change in the execution of the script. Constant identifiers are
always in upper case.
b) Expression:- This is anything that has value. The basic forms of
expressions are constants and variables.
c) Operator:- An operator is anything that you feed with one or more
values (or expressions) which yields another value. Examples of
operators are unary operators operating on one value and ternary
operator which select between two expressions depending on a
third one.
d) Open database connectivity (ODBC) is an application
programming interface (API) that allows one to connect to data
source.
e) A web server is a computer program that delivers (serves)
content, such as web pages, using the Hypertext Transfer Protocol
(HTTP) over the World Wide Web (WWW). The primary function of a
web server is to deliver web pages which are basically HTML
documents to clients (i.e. a web browser). A full implementation of
HTTP also includes a way of receiving content from clients. This
feature is used for submitting web forms, including uploading of
files. A
2
9
client initiates communication by making a request for a specific
resource using HTTP and the server responds with the content of
that resource, or an error message if unable to do so.
f) Mysql:- Mysql is a relational database management system
(RDBMS) that runs as a server providing multi-user access to a
number of databases. Many web applications use mysql as a
database component. PhpMyadmin, a free web based protocol
widely installed by web hosts worldwide, can connect to
local/remote MySQL servers to manage databases, tables, column
structure and individual data records. MySQL can be built and
installed manually from source code, though it is more commonly
installed from binary package - unless customizations are required.
g) Data base:- This is a collection of data typically describing
activities of one or more related organizations.
h) Data base management system (DBMS):- Software designed to
assist in maintaining and utilizing large collections of data.
i) Variables in PHP are represented by a dollar sign followed by the
name of the variable. It is possible to access Microsoft server from PHP
on a windows machine by simply using ODBC support and the correct
ODBC drive. Variables in PHP are always assigned by value i.e. when
you assign an expression to a variable, the entire value of the original
expression is copied into the destination variable.PHP also allows for
the assignment of value to a variable by reference. This means that
the new variable simply references to the original variable. Changes in
the new variable affects the original variable and vice versa.
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.
Dedendum (d) is the radial distance from the pitch circle to the bottom of
the tooth space.
Outside diameter (D) is the diameter of the addendum circle. Thus 2
5
Root diameter (D) is the diameter of the root circle. Thus 2
Whole depth (h) is the total height of the tooth or the total depth of the
tooth space.
Thus
h
Working depth (2) is the distance that a tooth that projects into the
mating tooth space. Thus
5
The root circle is also known as the dedendum circle
3
4
Clearance (c) is thedistance between the top of the tooth and the bottom
Circular pitch (p) is the distance, along the pitchcircle, /from a point on
one tooth to a corresponding point on adjacent tooth. Therefore (z is the
number of teeth).
Module ( ) is the ratio of the pitch circle diameter of a gear wheel to the
number of
and that
m
teeth on the gear wheel. Thus . It therefore follows that the
arereally measures of the same
circular pitch and the / to
module quantity, 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.
3
5
5.1.4 MODES OF GEAR FAILURE
Gear failure occurs as a result of a material having or lacking
particular attributes closely related to its mechanical properties. The
following are the various modes of gear failure common in practice,
and possible remedies:
6
Contact stress was originally conceived by Hertz (1896) in whose name it is often
referred.
3
6
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)
&
' * '+
,
(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)
-( -) -* -+
&.( .)
(5.4)
The intra-stage gear ratios can be determined as follows:
2) /( -(
1( 2 ( /) -)
(5.5)
2 + / * - *
1* 2 * /+ -+
(5.6)
Introducing the following notation for normalized face widths, as
a matter of convenience:
' '
'3( . (( ; '3* . *(
(5.7)
4 5 '3(
(5.8) 5 (+
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:;)<=:3) ?( @( 91: )1:<=:3 A
)8 (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,
&
,
-* 7 (F
5.2.1.2 Kinematic Constraints
Budynas and Nisbett (2008) recommend that the speed reduction ratio in
a single stage of a compound gear train should not exceed 1:10. Oonishi
(1988) recommends limiting the speed reduction in a single stage as
shown in table below.
Low High
Type of gear speed speed
&
1* 7 G. (FI,
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
5.2.1.3 Strength Constraints
The load carrying capacity of any gear drive is limited by the heat of
operation, beam strength of teeth and wear-load capacity of gear
materials. In other words, a satisfactory gear drive must have the ability
to dissipate the friction heat of operation, must have teeth sufficiently
strong to carry the dynamic loads without breaking or shearing and must
be made of materials whose surface-endurance properties are adequate
to carry the dynamic loads without excessive wear.
A. Beam Strength
In studying the beam strength of gear teeth, Buckingham modeled the
teeth to be cantilever beams with the most severe condition of loading
assumed to be when the full load acting on the gear wheel is carried at
the tip of a single tooth. To reduce impact between meshing gear teeth,
as well as minimize noise, gears are normally designed in such a way that
a pair of teeth begins contact before the previously engaged pair of teeth
end contact. This nature of tooth contact is characterized by the contact
ratio, which is the average number of teeth in contact at any given time.
However, when the requirement of weight and size of gears are not
critical, a condition that includes the great majority of gears used in
machine design, it is safer to assume that the load is carried at the tip of
a single gear tooth.
7
Gear tooth bending stress is given by the Lewis equation :
KL
J'
'6M (5.13)
Now, from their definitions, the circular pitch and the module are related
as follows:
6 T. (5.14)
7
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)
Now, let us introduce the following notation:
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 Vand a gear in mesh, along with the forces and Vtorques acting upon the two gear wheels. ! is the input torque at
the pinion shaft and " is the load torque acting upon the shaft carrying the driven gear. Therefore:
W( KL(/(
) (5.18)
D2
F1
T2
Fr1 F1
Ft1
Ft1
T1
Ft1
D1
41
The power input at the pinion shaft is denoted by ]! and can be expressed
as follows:
^( W(2(
(5.20)
Let us denote the pitch line velocity of the input pinion by _!. Then we can write the
following:
(5.21)
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:
^(
'(.(U(J' '3(.)U(J'
(5.23)
`( (
Similarly, for the output stage pinion gear, we can write the following:
^(
'*.*U*J' '3*.)U*J'
(5.24)
`* *
If we denote the allowable bending stress of the gear material by abc, then we can write
the following:
(5.25)
J'd 7 '3(.^)((U(`(
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)
The pitch-line velocities, _! and _e , may be expressed in terms of the input shaftrotational
velocity as follows:
2(/( 2(.( -(
`(
) )
)
(5.27)
`*
)
42
Thus, from equations (5.25), (5.26) and (5.27), we can write the following:
)^(
*
J'd 7 '3*1(.* U* 2(-*
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 j
(5.29)
-6;-i
Where:
2
k is the contact stress factor (N/mm ) and is given by:
Jk) Z[\ )
8 (. + lm n where Jk8 is the compressive strength of the material.
Adapting this equation to the load on the input stage pinion, we can write
the following:
)-)
KL( 5 88g/('( l n
(5.30)
-(;-)
Similarly, for the output stage pinion, we can write the following:
^( )
5 88g-*.*'* l n
(5.32)
`* 1*;(
From equations (5.7), (5.31) and (5.32), we can write the following:
^ (
`( 5 88g-(.()'3( l1();(n
(5.33)
^ ( ) )
`* 5 88g-*.* '3* l1* ;(n
(5.34)
The contact stress for the pinions in the input and output stages can be
expressed as:
8 7
8 7
^(91(;(< (5.35)
)
) ` (8g -(.( '3(
^(91*;(< (5.36)
) `*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:
^(91(;(<
8d 7 ) `(8g-(.()'3(
f
(5.37)
& ^(91*;(<
)
8d 7 ) `*8g-*.* '3*
44
Thus, from equations (5.27) and (5.37), we can write the following:
^(91(;(<
8d 7 8g.(*'3( 2( -()
f
(5.38)
& ^(91*;(<
* )
8d 7 8g.* '3* 2( -* 1(
45
6 CHAPTER SIX
qv tdkw .dLty:dx
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:
)4G
pq=L r3stu I+G = 0.39189
FG
+ G. +S*SI
Thus the material that can be machined easily will have a higher
manufacturing index.
Since the idea in all the indices was to maximize the individual index
ranking number, the material with the highest composite index would then
be preferred. To achieve this, all the candidate materials were ranked on
the basis of the composite index and then sorted to get the top fifteen
candidate materials. The material with the highest compound index was
selected as the best candidate for the design of a gear train based on the
chosen materials selection criteria. The list of the top fifteen candidate
materials based on their composite index is shown in Table 5.3 below:
Table 5.3: List of Top Fifteen Materials Based On their Composite Index
Manufacturin
UNS Cost g Availability Composite
Material
Number Name Index Index Index Index
K11576 HSLA Steel 1 0.387096774 5 3.13870968
K02801 A285-C Steel 0.76316 0.555555556 5 3.07266082
K02100 A516-60 Steel 0.76316 0.491803279 5 3.06628559
K02401 A516-60 Steel 0.76316 0.483870968 5 3.06549236
K01800 A515-70 Steel 0.725 0.550458716 5 3.05879587
K02002 A515-55 Steel 0.725 0.508474576 5 3.05459746
K02403 AL516-65 Steel 0.725 0.45112782 5 3.04886278
K02800 A515-60 Steel 0.725 0.45112782 5 3.04886278
K02700 A516-70 Steel 0.725 0.413793103 5 3.04512931
K01800 A516-55 Steel 0.65909 0.491803279 5 3.02986215
C89520 EnviroBrass2 0.28019 0.882352941 5 2.93630293
S40500 405 SS 0.39189 0.483870968 5 2.93554926
S41000 410 SS 0.39189 0.483870968 5 2.93554926
S40900 409 SS 0.31522 0.458015267 5 2.90612761
S44600 446 SS 0.31183 0.416666667 5 2.90080645
47
6.2 SUPPORT INFORMATION
Support Information gives a detailed profile of each candidate
material. The data requirements for support information differ greatly
from those for the screening or ranking step. Typically, it is the non-
quantifiable information which is sought. An example of Support
11
Information is :
4
8
6.3.1 Database Structure
The database should be structured such that it is easy to retrieve and
update information in it. The database structure used is as shown in the
Tables below:
Descriptio
Table Field Type n
1.Materials Uniqu
Properties Id int e identifier of the
material.
Holds value of UNS
UNS No varchar number
Holds material
Material Name varchar name
Holds material
Form varchar form
49
Below is the implemented database using MySql relational database. It
shows two tables for materials properties and login (for administrators
login details):
50
6.3.2 Material selection system
To start the materials selection system, run the local server (WAMP) on a
windows operating platform. Then, key in the URL address
http://localhost/material selection system/ to display the homepage as
shown below:
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.
5
1
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).
Filling the form with gear specifications e.g. data considered for our
selection process, it would appear as below:
5
3
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).
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.
5
4
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:
Enter the material properties values and click the save button.
5
6
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:
Finally, to remove any material from the database click on the delete
link in the administration materials view.
5
8
7 CHAPTER SEVEN: CLOSURE
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.
Screening was done in two steps. In the first step, using availability as the
non-discriminating 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
12
the weighted indices . The material with the highest composite index
was ranked the best by the material selection system.
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
Weighted index= weight *index.
5
9
relied on supporting information. The supporting information for the two
materials is given below:
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.
6
0
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.3RECOMMENDATIONS
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 one-stop universal materials selection system.
6
1
7.4 REFERENCES AND APPENDICES
7.4.1 REFERENCES
1. MADARA OGOT and GL KREMER, Engineering Design. A
Practical Guide, Trafford Publishing Co., Inc, 2004.
2. RICHARD G. BUDYNAS AND J. KEITH NISBETT, Shigleys Mechanical
Engineering Design, 8th edition, McGraw Hill, 2008.
3. ODUORI, M.F, Class notes on gears for FME 212 Mechanics of
Machines.
4. MICHAEL F. ASHBY, Materials Selection in Mechanical Design,
2nd Edition, Butterworth-Heinemann, 1999.
5. RADING, G. O, Concise Notes on Materials Science and
Engineering, Trafford Publishing, 2007.
6. WILLIAM D. CALLISTER, DAVID G. RETHWISCH, Materials
th
Science and Engineering: An Introduction, 7 Edition, John
Wiley and Sons, 2007.
th
7. TAHA, A. H, Operations Research. An introduction, 8 Edition.
Prentice Hall of India Private Ltd, 2008.
8. POPOV, E, Mechanics of Materials, Upper Saddle River Prentice-Hall,
1976.
th
9. A Metals Handbook, 9 Edition. Vol.3: Properties & Selection:
Stainless Steels, Tool Materials & Special Purpose Metals,
American Society Of Manufacturing Engineers (ASME).
10. Matweb.com, http://www.matweb.com
11. Metals Bank website, http://www.metalsbank.com
12. http://en.wikipedia.org/wiki/Failure_causes
13. Metals Handbook Desk Edition, Second Edition, American
Society for Metals (ASM), 1998.
62
7.4.2 APPENDICES
7.4.2.1 Tables
63
C89320 - Casting 1610
C12200 DHP Copper Tube 2010
A96061 AL6061 Tube 2070
C14200 DPA Copper Tube 2010
A95086 Aluminium 5086 Tube 2130
A95083 Aluminium 5083 Tube 2130
A96063 Aluminium 6063 Tube 2050
C61400 Aluminium Bronze D Sheet 1700
A92024 Aluminium 2024 Tube 2010
A92014 Aluminium 2014 Tube 2025
A97075 Aluminium 7075 Tube 2540
Manufacturin Availabilit
UNS Cost g y Composite
Material
Number Name index index Index Index
K11576 HSLA Steel 1 0.387096774 5 3.13870968
K02801 A285-C Steel 0.7631579 0.555555556 5 3.07266082
K01800 A515-70 Steel 0.725 0.550458716 5 3.05879587
K02100 A516-60 Steel 0.7631579 0.491803279 5 3.06628559
K02401 A516-60 Steel 0.7631579 0.483870968 5 3.06549236
K02002 A515-55 Steel 0.725 0.508474576 5 3.05459746
K02403 AL516-65 Steel 0.725 0.45112782 5 3.04886278
K02800 A515-60 Steel 0.725 0.45112782 5 3.04886278
K01800 A516-55 Steel 0.6590909 0.491803279 5 3.02986215
K02700 A516-70 Steel 0.725 0.413793103 5 3.04512931
S40500 405 SS 0.3918919 0.483870968 5 2.93554926
S41000 410 SS 0.3918919 0.483870968 5 2.93554926
S40900 409 SS 0.3152174 0.458015267 5 2.90612761
S44600 446 SS 0.311828 0.416666667 5 2.90080645
S40300 403 SS 0.311828 0.416666667 5 2.90080645
S43600 436 SS 0.2959184 0.408163265 5 2.89438776
S30200 302 SS 0.3152174 0.387096774 5 2.89903576
S44200 442 SS 0.3085106 0.387096774 5 2.8966884
S34700 347 SS 0.3085106 0.387096774 5 2.8966884
S32100 321 SS 0.3085106 0.387096774 5 2.8966884
S31725 317LM SS 0.3085106 0.387096774 5 2.8966884
S31635 316Ti SS 0.3085106 0.387096774 5 2.8966884
S43400 434 SS 0.2959184 0.382165605 5 2.89178799
S30500 305 SS 0.2843137 0.387096774 5 2.88821948
S31726 317L4 SS 0.29 0.36809816 5 2.88830982
S34800 348 SS 0.2801932 0.375 5 2.88556763
64
S21000 201 SS 0.266055 0.307692308 5 2.8738885
S20910 22-13-5 SS 0.2521739 0.295566502 5 2.86781752
C89520 EnviroBrass2 0.2801932 0.882352941 5 2.93630293
C89510 EnviroBrass1 0.2521739 0.909090909 3 1.82916996
C61300 AL Bronze 7% 0.1629213 0.612244898 3 1.76824696
C60800 AL Bronze 6% 0.1736527 0.75 3 1.78577844
C61300 AL Bronze 7% 0.1705882 0.659340659 3 1.77563995
A95154 AL5154 0.1442786 1.034482759 1 0.70394579
C11000 ETP Copper 0.1442786 1 1 0.70049751
C10200 Oxygen free Cu 0.1432099 0.967741935 1 0.69689765
C89320 - 0.1801242 0.923076923 1 0.70535117
C12200 DHP Copper 0.1442786 0.923076923 1 0.6928052
A96061 AL6061 0.1400966 0.923076923 1 0.69134151
C14200 DPA Copper 0.1442786 0.895522388 1 0.69004975
A95086 AL5086 0.1361502 0.857142857 1 0.68336687
A95083 AL5083 0.1361502 0.779220779 1 0.67557466
A96063 AL6063 0.1414634 0.731707317 1 0.67268293
C61400 AL Bronze D 0.1705882 0.631578947 1 0.67286378
A92024 AL2024 0.1442786 0.5 1 0.65049751
A92014 AL2014 0.1432099 0.444444444 1 0.6445679
A97075 AL7075 0.1141732 0.4 1 0.62996063
65
S44200 275 515 7870 190 155 0.19448
S34700 205 515 8030 190 155 0.10807
S32100 205 515 8030 190 155 0.10807
S31725 205 515 8030 198 155 0.1037
S31635 205 515 7860 193 155 0.10639
S43400 365 530 7800 200 157 0.32547
S30500 240 585 8000 193 155 0.14582
S31726 240 550 8030 198 163 0.14214
S34800 240 620 8000 195 160 0.14432
S21000 260 655 8000 200 195 0.16515
S20910 380 690 8030 200 203 0.35277
C89520 121 176 7890 115 68 0.06221
C89510 119 185 7890 115 66 0.06017
C61300 240 540 7890 115 98 0.24472
C60800 130 345 8170 121 80 0.06824
C61300 193 447 7890 115 91 0.15826
A95154 75 205 2660 70 58 0.03926
C11000 105 250 8890 120 60 0.04489
C10200 180 205 8940 115 62 0.13766
C89320 125 241 7890 115 65 0.06639
C12200 205 250 8940 117 65 0.1755
A96061 145 241 2700 69 65 0.14888
C14200 205 250 8910 115 67 0.17855
A95086 117 262 2660 71 70 0.0942
A95083 110 270 2660 71 77 0.08327
A96063 195 225 2700 69 82 0.26926
C61400 205 485 7890 115 95 0.17855
A92024 290 440 2780 73 120 0.56289
A92014 414 483 1800 73 135 1.14718
A97075 455 530 2810 72 150 1.40489
Table 7.4: Expressions for evaluating the velocity factor for different
applications
Type of
Application Pitch line Velocity Finish
Velocity, g6 Factor, 8g
Surface
Medium finished 5~10 Shaping
6.1 ~E
speed gear
Surface
Medium finished 10 ~ 20 Machined and
~E
speed gear 15
ground
66
Fig. 7.1: Chart for obtaining the modified Lewis form factor (Y)
67
7.4.2.2 THE CODE
A. Code of the Index page
<!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 Selection</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>MATERIALS
SELECTION SYSTEM </h4> </div>
</div>
<div id="content">
<table width="639" height="50" border="0" style="background-color:#C6C6FF"
align="center"; border:solid 4px #990000;-moz-
opacity:0.75;opacity:1.75;filter:alpha(opacity=75);" >
<tr>
<td>
<div
id="menu">
<ul>
<li>
<h2>Select Material</h2>
Reverted Compound Gear Train
</h2> <ul>
<li><a
href="availablematerials.php">Spur</a
> </li>
<li><a
href="">Helical</a></li>
</li>
</ul>
</li>
</ul>
<ul>
<li>
<h2> Material
Database</h2> <ul>
<li><a href="MaterialsProperties.php"> View Database </a>
6
8
</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>
<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 </li>
<li> Locally Available
Materials</a> </div>
</div>
<div id="content">
<table width="100%" height="100%" border="0"
align="center"style="background-color:#C6C6FF";
border:solid 4px #990000;-moz-
opacity:1;opacity:1;
filter:alpha(opacity=75);" >
<thead>
<tr>
<td colspan="8" align="center">
<a href="GetProperties.php"><strong>CLICK HERE TO CALCULATE
STRESSES</strong></a>
<?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
7
0
{
// 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_deta
ils_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['ManufacturingIn
dex'];
$compo=$info['CompositeInde
x'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td
align=centre>$UNSNo<br></t
d> <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</t
d> </tr>";
}
$display_block.="</table>";
}
print
"$display_block"; ?
>
</td>
</thead>
</table>
<div
id="searchreport">
</tr>
<tr>
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
7
2
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="background-
color:#C6C6FF";border:solid4px #990000;-moz-
opacity:0.5;opacity:0.5;filter:alpha(opacity=75);"
<formid="GetProperties"name="GetProperties"method="POST"action="getbes
tMaterials.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>
7
3
</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>
75
//start main formula
$D = ($b*$g3*$M*$Y*$w*$z); // Denominator of
the formula //real formula
$YIELD = $h*1000 / $D;
//for convenience, we divide the value above by 1000000 to match what we
recorded in the database.
$MATCHEDYIELD =
$YIELD/1000000; //echo
"$MATCHEDYIELD";
//start calculating for contact stress
//we start by finding (velocity factor)kv needed in the
formula //denominator for kv is
$Dkv = (12.2 + ($w * $z *
0.001*$m)); //velocity
factor(kv) is then given as $kv
= (12.2 / $Dkv);
//this will soon be
needed $g4 = ($g3 +
1);
//we will need the value of z as a
square $z2 = ($z*$z);
//now we embark on getting the value of the contact
stress ka //the numerator is given as
$Nka = ($h * $g4*1000);
// The denominator for ka
is $Dka =
($kv*$M*$b*$w*$z2);
//the contact stress is
given as $ka = ($Nka /
$Dka);
//divide by 1000000 for consistency with the
database $Mka = ($ka / 1000000);
7
6
</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($res
ult))
{
$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['ManufacturingIn
dex'];
$compo=$info['CompositeInde
x'];
77
$elas=$info['ElasticModu
lus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td
align=centre>$UNSNo<br></t
d> <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>
<style
type="text/css">
<!--
.style1 {font-size: 36px; color:#FFFFFF;}
7
8
.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="background-color:#C6C6FF";
border:solid 4px #990000;-moz-
opacity:1;opacity:1;
filter:alpha(opacity=75);" >
<thead>
<tr>
<td colspan="8" align="center">
<strong>MATERIALS PROPERTIES
</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
$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%
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>
7
9
<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_deta
ils_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['ManufacturingIn
dex'];
$compo=$info['CompositeInde
x'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td
align=centre>$UNSNo<br></t
d> <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"; ?
>
</td>
</thead>
</table>
<div
id="searchreport">
</tr>
<tr>
80
</tr>
</thead>
</table>
</div>
</div>
</body>
</html>
</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">
width="100% height="320 border="0 align="center"style="backgro
<table " " " und-
border:soli
color:#C6C6FF"; d 4px #990000;-moz-
opacity:0.75;opacity:0.75;filter:alpha(opacity=75);
">
<tr>
<td>
<table width="647" >
<?php include
'DB.php';
?>
name="searchMaterials
<form id="searchMaterials" " method="POST"
action="SearchMaterial.php">
<tr>
<td colspan="4"><strong>SEARCH MATERIALS DATABASE
</strong> </td> </tr>
<tr>
8
1
<td width="136" >UNS Number</td>
<td width="181" ><input type="text" name="UNSNo"
id="UNSNo" /> </td>
<td width="143" >Yield Strength</td>
<td width="167" ><label> <input type="text" name="ystrength"
id="ystrength" /> </label></td>
</tr> <tr>
<td>Material Name </td>
<td><input type="text" name="material"
id="material" /></td> <td>Tensile Strength </td>
<td><label>
<input type="text" name="tstrength"
id="tstrength" /> </label></td>
</tr>
<tr>
<td>Form</td>
<td><label>
<input type="text" name="formId"
id="formId" /> </label></td>
<td>Density</td>
<td>
<input type="text" name="density"
id="density" /></td> </tr>
<tr>
<td>Elastic Modulus </td>
<td><input type="text" name="elastic"
id="elastic"/></td> <td>Hardness</td>
<td><label> <input type="text" name="hardness"
id="hardness"/> </label> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" id="Submit"
value="Search" /></td> <td><label></label></td>
</tr> <tr>
<td colspan="4"
align="center"><label></label></td> </tr>
</form> </table>
</td> </tr>
<tr> <td>
<table>
<div
id="searchreport">
<?php
if(count($_POST))
{
$UNSNo =
$_POST['UNSNo'];
$material =
$_POST['material'];
82
$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($re
sult))
{
$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['ManufacturingIn
dex'];
$compo=$info['CompositeInde
x'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td
align=centre>$UNSNo<br></t
d> <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>
8
7
<td>
<table>
<div
id="searchreport">
<thead>
<td>
</tbody>
</table>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
</tbody>
</table>
</td>
</tr>
</table>
</div>
8
9
{
die('Wrong username or password');
}
?>
9
0
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;
91
</a>MATERIALS SELECTION SYSTEM
</h4> </div>
</div>
<div id="content">
<table width="639" height="315" border="0"
align="center"style="background-color:#C6C6FF";border:solid 4px #990000;-
moz-opacity:0.75;opacity:0.75;filter:alpha(opacity=75);" >
<?php include
'DB.php'; ?>
<form id="AddMaterials"
name="AddMateri
als"
method="POST"
action="Save.php" onsubmit="return
validateAddProperties()"> <tr>
<td colspan="2">
<strong>ADD MATERIALS
PROPERTIES</strong> </td>
</tr>
<tr>
<td width="185" >UNS
Number</td> <td width="399"
><label>
<input type="text" name="UNSNo"
id="UNSNo" /> </label></td>
</tr>
<tr>
<td>Material Name
</td> <td>
<label><input type="text" name="material"
id="material" /></label> </td>
</tr>
<tr>
<td>Form</td>
<td>
<select name="formId"
id="formId"> <option> Please
Select </option> <option>
Plate </option>
<option> Sheet
</option> <option>
Tube </option>
<option> casting
</option> <option>
Bar </option>
<option> ANN
</option> </select>
</td>
</tr>
<tr>
<td>Yield Strength(MPa)
</td> <td>
9
2
<label> <input type="text" name="ystrength"
id="ystrength" /> </label>
</td>
</tr>
<tr>
<td>Tensile Strength(MPa) </td>
<td><label> <input type="text" name="tstrength"
id="tstrength" /> </label></td>
</tr>
<tr>
<td>Density (Kg/M^3)</td>
<td><label> <input type="text" name="density"
id="density" /> </label> </td>
</tr>
<tr>
<td>Young's Modulus(GPa) </td>
<td><label> <input type="text" name="elastic"
id="elastic"/> </label> </td>
</tr>
<tr>
<td>Hardness</td>
<td><label>
<input type="text" name="hardness" id="hardness"/>
</label></td> </tr>
</tr>
<tr>
<td>Availability
index</td>
<td><label>
<input type="text" name="availabilityindex" id="availabilityindex"/>
</label></td> </tr>
</tr>
<tr>
<td>Cost
index</td>
<td><label>
<input type="text" name="costindex" id="costindex"/>
</label></td> </tr>
</tr>
<tr>
<td>Manufacturing
index</td> <td><label>
<input type="text" name="manufacturingindex"
id="Manufacturingindex"/> </label></td>
</tr>
</tr>
<tr>
<td>Composite
index</td>
<td><label>
9
3
<input type="text" name="compositeindex" id="Compositeindex"/>
</label></td> </tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="Submit" id="Submit" value="Save" />
</label></td> </tr>
<tr>
<td colspan="2" align=centre><a
href="adminMaterialsProperties.php">Edit materials</a></td>
</tr>
</form>
</table>
</div>
</div>
</body>
</html>
9
4
}
else
{
echo "Material details were successfully saved in the database";
}
?>
<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
9
5
$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_deta
ils_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['ManufacturingIn
dex'];
$compo=$info['CompositeInde
x'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
$display_block.="<tr>
<td align=centre>$id<br></td>
<td
align=centre>$UNSNo<br></t
d> <td
align=centre>$matN<br></td
>
9
6
<td
align=centre>$Form<br></t
d> <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>
9
7
var Error = "The following field(s) need to be
attended to.\n"; var ErrorCounter = 0;
if( UNSNo == '')
{
Error += '-Please enter the UNSNo number.\n'; ErrorCounter +=1;
}
if( material == '')
{
Error += '-Please enter the material name.\n'; ErrorCounter +=1;
}
if( formId == '') { Error += '-the form field is empty.\n'; ErrorCounter +=1;
}
if( ystrength == '') { Error += '-the yield strength field is empty.\n'; ErrorCounter
+=1;
}
if( tstrength == '') { Error += '-the tensile strength field is empty.\n';
ErrorCounter +=1;
}
if( density == '') { Error += '-the density field is empty.\n'; ErrorCounter +=1;
}
if( hardness == '')
{ Error += '-the hardness field is empty.\n'; ErrorCounter +=1;
}
if( elastic == '') { Error += '-elasticity field is empty.\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 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">
98
border="1 align="center"style="backgrou
<table width="639" height="315" " nd-
border:soli
color:#C6C6FF"; d 4px #990000;-moz-
opacity: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['ManufacturingIn
dex'];
$compo=$info['CompositeInde
x'];
$elas=$info['ElasticModulus'];
$had=$info['Hardness'];
$de=$info['Density'];
}
}
?>
<form
id="AddMaterials"
name="AddMaterial
s" 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
9
9
echo $id; ?
></td></label></td> </tr>
<tr>
<td width="185" >UNS
Number</td> <td width="399"
><label>
<input type="text" name="UNSNo" id="UNSNo" />
</label></td> <td><?php echo $UNSNo; ?
></td></tr>
<tr>
<td>Material Name </td> <td>
<label><input type="text" name="material"
id="material" /> </label>
</td> <td><?php echo
$matN; ?></td> </tr>
<tr>
<td>Form</td>
<td>
<select name="formId"
id="formId"> <option> Please
Select </option> <option>
Plate </option>
<option> Sheet
</option> <option>
Tube </option>
<option> casting
</option> <option>
Bar </option>
<option> ANN
</option> </select>
</td> <td><?php echo
$Form; ?></td> </tr>
<tr>
<td>Yield Strength(MPa)
</td> <td>
<label> <input type="text" name="ystrength"
id="ystrength" /> </label>
</td><td><?php echo
$Yst; ?></td> </tr>
<tr>
<td>Tensile Strength(MPa) </td>
<td><label> <input type="text" name="tstrength"
id="tstrength" /> </label></td><td><?php echo $Tst; ?
></td>
</tr>
<tr>
<td>Density (Kg/M^3)</td>
<td><label> <input type="text" name="density"
id="density" /> </label> </td><td><?php echo $de; ?
></td>
</tr>
<tr>
<td>Young's Modulus(GPa) </td>
<td><label> <input type="text" name="elastic"
id="elastic"/> </label> </td><td><?php echo
$elas; ?></td>
100
</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
>
10
1
</div>
</div>
</body>
</html>
//Density=$density,ElasticModulus=$elastic,Hardness=$hardness,AvailabilityInd
ex=$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,ElasticMo
dulus,Hardne ss,AvailabilityIndex,CostIndex,ManufacturingIndex,CompositeIndex,
ContactStress)
VALUES('$id','$UNSNo','$material','$formId','$ystrength','$tstrength','$density','$elast
ic','$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.";
}
?>
10
2
Q. Code to delete materials in database
<?php
include
'DB.php';
if($_GET['id']!
="")
{
$delete_item="delete from materialproperties where
Id=$_GET[id]"; mysql_query($delete_item) or
die(mysql_error());
header("location:
adminMaterialsProperties.php"); exit;
}
else
{
header("location:
login.php"); exit;
}
?>
103
font: bold 11px/16px arial, helvetica,
sans-serif; display: block;
border-width:
1px; border-
style: solid;
border-color: #ccc #888 #555
#bbb; margin: 0;
padding: 2px 3px;
}
#menu h2
{ color: #fff;
background:
#000;
text-transform: uppercase;
}
#menu a
{ color:
#000;
background:
#efefef; text-
decoration: none;
}
#menu
a:hover
{ color: #a00;
background:
#fff;
}
#menu li {position:
relative;} #menu ul ul
ul {
position:
absolute; top:
0;
left: 100%;
}
#menu ul ul
{ position:
absolute; z-
index: 500;
}
div#menu ul
ul { display:
none;
}
div#menu ul li:hover ul
{display: block;}
div#menu ul ul,
div#menu ul li:hover ul
ul, div#menu ul ul
li:hover ul ul {display:
none;}
div#menu ul li:hover ul,
div#menu ul ul li:hover
ul, div#menu ul ul ul
li:hover ul {display:
block;}
104