Professional Documents
Culture Documents
CAD Darshan
CAD Darshan
CAD tools can be defined as the intersection of three sets: geometrical modeling, computer graphics and
the design tools. Fig.1.2 shows such definition. As can be perceived from this figure, the abstracted
concepts of geometric modeling and computer graphics must be applied innovatively to serve the design
process.
Based on implementation in a design environment, CAD tools can be defined as the design tools (analysis
codes, heuristic procedures, design practices, etc.) being improved by computer hardware and software
throughout its various phases to achieve the design goal efficiently and competitively as shown in Fig.1.2.
The level of improvement determines the design capabilities of the various CAD/CAM systems and the
effectiveness of the CAD tools they provide. Designers will always require tools that provide them with
fast and reliable solutions to design situations that involve iterations and testings of more than one
alternative.
CAD tools can vary from geometric tools, such as manipulations of graphics entities and interference
checking, on one extreme, to customized applications programs, such as developing analysis and
optimization routines, on the other extreme. In between these two extremes, typical tools currently
available include tolerance analysis, mass property calculations and finite element modeling and analysis.
• CAD tools, as defined above, resemble guidance to the user of CAD technology.
• The definition should not and is not intended to, represent a restriction on utilizing it in engineering
design and applications. The principal purposes of this definition are the following:
1. To extend the utilization of current CAD/CAM systems beyond just drafting and
visualization.
2. To customize current CAD/CAM systems to meet special design and analysis needs.
3. To influence the development of the next generation of CAD/CAM systems to better serve
the design and manufacturing processes.
There are six steps involved in the conventional design process as discussed below:
1. Geometric modeling
• Geometric modeling is concerned with the computer compatible mathematical description of the
geometry of an object.
• The mathematical description allows the image of the object to be displayed and manipulated on
a graphics terminal through signals from the CPU of CAD system.
• The software that provides geometric modeling capabilities must be designed for efficient use
both by the computer and human designer.
• The basic form uses wire frames to represent the object.
• The most advanced method of geometric modeling is solid modeling in three dimensions.
2. Engineering Analysis
• The analysis may involve stress-strain calculations, heat transfer computation etc.
• The analysis of mass properties is the analysis feature of CAD system that has probably the widest
application.
• It provides properties of solid object being analyzed, such as surface area, weight, volume, center
of gravity and moment of inertia.
• The most powerful analysis feature of CAD system is the finite element method.
1.7.4 Applications
(i) Assemblies or Model Merging
• Generating assemblies and assembly drawings from individual parts is an essential process.
(ii) Design Applications
• There are design packages available to perform applications such as mass property calculations,
tolerance analysis, finite element modeling and analysis, injection modeling analysis and
mechanism analysis and simulation.
(iii) Manufacturing Applications
• The common packages available are tool path generation and verification, NC part programming,
postprocessing, computer aided process planning, group technology, CIM applications and robot
simulation.
(iv) Programming Languages Supported
• It is vital to look into the various levels of programming languages a system supports. Attention
should be paid to the syntax of graphics commands when they are used inside and outside the
programming languages. If this syntax changes significantly between the two cases, user
confusion and panic should be expected.
The work station is a visible part of the CAD system which provides interaction between the
operator and the system.
Among these advantages offered by work station are their availability, portability, the availability to
dedicate them to a single task without affecting other users and their consistency of time
response.
A work station can be defined as a station of work with its own computing power to support major
software packages, multitasking capabilities demanded by increased usage, complex tasks and
networking potential with other computing environments.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
1.10
Computer Aided Design (3161903) | Unit-1 Introduction
Technical specifications of CAD workstation
CAD applications require workstations with reasonably enhanced processing speed, graphic capability,
and storage capacity. Typical workstation specifications of some of the currently available models are
given below.
Processor: Intel Pentium 4 at 2.4 GHz
RAM: 2 GB to 16 GB
PCI bus width: 64 – bit
Hard drive: 500 GB to 1 TB
CD-ROM: CD-RW/DVD Combo
Standard I/O ports: 1 Serial port, 1 Parallel port, 4 USB ports
Graphics: NVIDIA 512 MB
Graphics resolution: 2018 x 1536 (Max)
Operating system: Windows XP, Windows 7
Monitor: 21” Flat Panel TFT display
Keyboard: Enhanced Multimedia USB
Mouse: Optical Mouse Two-button Scroll Mouse
3. Input devices
• A no. of input devices is available. These devices are used to input two possible types of
information: text and graphics.
• Text-input devices and the alphanumeric keyboards.
• There are two classes of graphics input devices: Locating devices and image-input devices.
• Locating devices, or locators, provide a position or location on the screen.
• These include lightpens, mouse, digitizing tablets, joysticks, trackballs, thumbwheels,
touchscreen and touchpads.
• Locating devices typically operate by controlling the position of a cursor on screen. Thus,
they are also referred to as cursor-control devices.
I. Scanners
• Scanners comprise other class of graphics-input device.
• There are four relevant parameters to measure the performance of graphics input devices.
These are resolution, accuracy, repeatability and linearity.
• Some may be more significant to some devices than others.
II. Keyboards
• Keyboards are typically employed to create/edit programs or to perform word processing
functions.
• CAD/CAM systems, information entered through keyboards should be displayed back to
the user on a screen for verification.
Fig.1.8 – Digitizer
Fig.1.9 – Mouse
• There are two basic types of mouse available mechanical and optical.
• The mechanical mouse has roller in order to record the mouse motion in X and Y directions.
• In optical mouse, movements over the surface are measured by a light beam modulation
techniques.
• The light source is located at the bottom and the mouse must be in contact with the surface
for screen cursor to follow its movement.
V. Joy sticks & Trackballs
• The joystick works by pushing its stick backwards or forward or to left or right. The extreme
positions of these directions correspond to the four corner of the screen.
• A trackball is similar in principal to a joystick but allows more precise fingertip control. The
ball rotates freely within its mount.
• Both the joystick and trackball are used to navigate the screen display cursor. The user of
a trackball can learn quickly how to adjust to any nonlinearity in its performance.
Fig.1.11 – (a) Cursor Control Devices (b) Thumbwheels as input device with a work station
VI. Thumbwheels
• Two thumbwheels are usually required to control the screen cursor, one for its horizontal
position and other for its vertical position. Each position is indicated on screen by cross-
hair.
• The deflection system of the CRT controls the x and y, or the horizontal and vertical, positions of
the beam which in turn are related to the graphics information through the display controller, which
typically sits between the computer and the CRT. The controller receives the information from the
computer and converts it into signals acceptable to the CRT.
Refresh vector display
• Early displays in 1960s were refresh vector displays.
• The refresh buffer stores the display file or program, which contains points, lines, characters and
other attributes of picture to be drawn.
• These commands are interpreted & processed by display processor.
• The electron beam accordingly excites the phosphor, which glows for a short period.
• To maintain a steady flicker- free image, the screen must be refreshed or redrawn at least 30 to 60
times per second, that is at a rate of 30 to 60 Hz.
• The principal advantages of refresh display is its high resolution (4096 x 4096) and thus its
generation of high quality picture.
• Images are displayed by converting geometric information into pixel values which are then
converted into electron beam deflection through display processors and deflection system.
• The creation of raster-format data from geometric information is known as scan conversion.
• The values of the pixels of a display screen that results from scan-conversion processes are stored
in an area or memory called frame buffer or bit map.
• Each pixel value determines its brightness (gray level) or most often its color on the screen.
• 8 bits/pixel are needed to produce satisfactory continuous shades of gray for monochrome
display.
• For color displays, 24 bits/pixel would be needed: 8 bits for each primary color red, blue and green.
• This would provide 224 different colors, which are far more than needed in real application.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
1.16
Computer Aided Design (3161903) | Unit-1 Introduction
Fig.1.16 – Color raster display with eight planes
• The bit map memory is arranged conceptually as a series of planes, one for each bit in the pixel
value. Thus an eight-plane memory provides 8 bits/pixel, as shown in Fig.1.16. This provides 28
different gray levels or different colors that can be displayed simultaneously in one image. The
number of bits per pixel directly affects the quality of its display and consequently its price.
• The value of a pixel in the bit map memory is translated to a gray level or a color through a lookup
table (also called a color table or color map for a color display).
• Fig.1.17 shows how the pixel value is related to the lookup table in an eight plane display. If cell P
in the bit map corresponds to pixel P at the location P(x, y) on the screen, then the gray level of this
pixel is 50 (00110010) or its corresponding color is 50.
• For color displays this may imply that the number of bits per pixel must be increased to increase
the number of entries in the color map and therefore increase available number of colors to user.
• This, however, is not true and leads to increasing the size of the bit map memory and the cost of
the display. Thus, how can the number of color indexes in the color map increase while keeping
the pixel definition (number of bits per pixel) in the bit map to a minimum?
• For example, how can a display have 4 bits/pixel with 24 bits of color output (224 different colors)?
This is achieved by designing a color map with 224 (16.7 million) available color indexes. The 4
bits/pixel provides 16 (24 simultaneous colors, in an image, which can be chosen from color map.
• A pixel value (0 to 15) can be used to set the value of the color index which corresponds to the
proper color to be displayed. This scheme, in this example, provides 16 simultaneous colors from
a palette of 16.7 million.
• To the user, the color map is made available where colors are chosen and the application program
relates the chosen color to the proper pixel value. For example, if the user chooses the color purple
for an image element, corresponding program sets the corresponding pixels to reflect color purple.
Fig.1.18 – Relationship between pixel value and a lookup table for color display
• In the flat-bed plotter, the paper is stationary and pen holding mechanism can move in two axes.
Laser printer
• A semiconductor laser beam scans the electro statically charged drum with a rotating mirror.
• This writes on the drum a no. of points which are similar to pixels.
• When the beam strikes the drum in the wrong way round for printing a positive charge, reversing it,
then toner powder is released. The toner powder sticks to the charged positions of the drum, which
is then transformed to a sheet of paper.
• Though it is relatively expansive compared to the dot matrix printer, the quality of the output is
extremely good and it works very fast.
• Using this equation for direct computing of the pixel positions involves a large amount of
computational effort.
• Hence it is necessary to simplify the procedure of calculating the individual pixel positions by a
simple algorithm.
• For this purpose consider drawing a line on the screen as shown in Fig.1.26, from (x1, y1) to (x2, y2),
• The line drawing method would have to make use of the above three equations in order to develop
a suitable algorithm.
• Eq. (1.1), for small increments can also be written as,
∆𝑌 = 𝑚∆𝑋 Eq. (1.4)
• By taking a small step for ∆X, ∆Y can be computed using Eq. (1.4). However, the computations
become unnecessarily long for arbitrary values of ∆X. Let us now workout a procedure to simplify
the calculation method.
• Let us consider a case of line drawing where m 1. Choose an increment for ∆X as unit pixel. Hence
∆X = 1.
• Then from Eq. (1.4),
𝑦𝑖+1 = 𝑦𝑖 + 𝑚 Eq. (1.5)
• The subscript i takes the values starting from 1 for the starting point till the end point is reached.
• Hence it is possible to calculate the total pixel positions for completely drawing the line on the
display screen. This is called DDA (Digital Differential Analyser) algorithm.
• If m > 1, then the roles of x and y would have to be reversed.
• Choose ∆Y = 1
Then from Eq. (1.4), we get
1 Eq. (1.6)
𝑥𝑖+1 = 𝑥𝑖 +
𝑚
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
1.23
Computer Aided Design (3161903) | Unit-1 Introduction
• The following is the flow chart showing the complete process for the implementation of the above
procedure.
X Y Calculated Y Rounded
19 38 38
20 38.737 39
21 39.474 39
22 40.211 40
23 40.948 41
24 41.685 42
25 42.422 42
26 43.159 43
27 43.896 44
28 44.633 45
29 45.370 45
30 46.107 46
31 46.844 47
32 47.581 48
33 48.318 48
34 49.055 49
35 49.792 50
36 50.529 51
37 51.266 51
38 52.003 52
Then
• These are shown in Fig.1.28. Let d1 and d2 be two parameters, which indicate where the next pixel
is to be located. If d1 is greater than d2, then the y pixel is to be located at the +1 position else, it
remains at the same position as previous location.
• Eq. (1.13) still contains more computations and hence we would now define another parameter P
which would define the relative position in terms of d1 – d2.
• Taking the difference of two successive parameters, we can eliminate the constant terms from Eq.
(1.17).
X P Y
19 P1 = 2∆y - ∆x = 28 – 19 = 9 38
21 P3 = P2 + 2∆y = -1 + 28 = 27 39
25 P7 = P6 + 2∆y = -3 + 28 = 25 42
DBMSs designed for commercial business systems are too slow for CAD/ CAM. The handling of graphics
data is an area where the conventional DBMSs tend to break down under the shear volume of data and
the demand for quick display.
By contrast, data handled in the commercial realm is mostly alphanumeric and the objects described are
usually not very complex. A DBMS is directly related to the database model it is supposed to manage. For
example, relational DBMSs require relatively large amounts of CPU time for searching and sorting data
stored in the relations or tables.
Therefore, the concept of database machines exists where a DBMS is implemented into hardware that can
lie between the CPU of a computer and its database disks, as shown in Fig.1.30(b).
A number of vendors have implemented IGES. They include Applicon, Autotrol, CADAM, Calcomp, Calma,
Computervision, Control Data, Gerber, IBM, Intergraph, McAuto, Prime, Summagraphics, Tektronix and
T & W systems.
As mentioned earlier, IGES enables data transfer from one CAD system to another. This is shown in
Fig.1.31. Software which translates data from CAD system to IGES is called pre-processor. Software which
translates IGES data to a CAD system is called postprocessor.
Like most CAD systems IGES is based on the concept of entities which range from simple geometric
objects such, as points, lines and circles, to more sophisticated items like dimensions and sculptured
surfaces.
1.15 References
1) CAD/CAM Principles and Applications by P. N. Rao, Tata McGraw-Hill Publication.
2) Mastering CAD/CAM by Zeid,Ibrahim, Tata McGraw-Hill Publication.
3) CAD/CAM/CIM by Radhakrishnan,P;Subramanyan,S;Raju,V, New Age International (P) Limited.
4) CAD/CAM: Theory and Practice by Zeid,Ibrahim;Subramanian,R, Tata McGraw-Hill Publication.
A curve can be represented by following two methods either by storing its analytical equation or by
storing an array of co-ordinates of various points
Curves can be described mathematically by following methods:
F (x, y, z) = 0
G (x, y, z) = 0
Limitation of nonparametric representation of curves are:
1. If the slope of a curve at a point is vertical or near vertical, its value becomes infinity or very large,
a difficult condition to deal with both computationally and programming-wise. Other ill-defined
mathematical conditions may result.
2. Shapes of most engineering objects are intrinsically independent of any coordinate system. What
determines the shape of an object is the relationship between its data points themselves and not
between these points and some arbitrary coordinate system.
3. If the curve is to be displayed as a series of points or straight line segments, the computations
involved could be extensive.
The curves which are defined by the analytical equations are known as analytical curves.
2. Synthetic Curves:
The curves which are defined by set of data points are known as synthetic curves.
These curves can be conveniently twisted, shaped or bent by changing the control points.
Synthetic curves take up where the analytic curves leave – the latter are not that efficient at
geometric design of mechanical parts.
Need for synthetic curves arise in two occasions:
Some examples of complex geometric design are: Car bodies, Ship hulls, Airplane fuselage and
wings, Propeller blades, Shoe insoles, aesthetically designed bottles etc.
When the curve pass through all the data points, then the curve is known as Interpolant curve. It
sounds more logical but can be more unstable and ringing.
When a smooth curve is approximated through the data points, then the curve is known as
approximation curve. It turns out to be convenient.
Synthetic curve pass through defined data points and can thus represented by polynomial
equations.
The parametric form for any synthetic curve is:
𝑃(𝑢) = 𝐶3 𝑢3 + 𝐶2 𝑢2 + 𝐶1 𝑢 + 𝐶0
where, u = Parameter and Ci = Polynomial coefficients
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 2.3
Unit-2 Curves and Surfaces
2.3 Parametric representation of analytical curve
2.3.1 Lines
A line can be represented in a parametric form by an input of two endpoints or by one point and a
length and direction. Besides these, modifiers and filters can be used to represent these lines. The
two important methods of establishing equations for lines are considered.
2.3.1.1 A line connecting two endpoints in parametric form, having the values of parameter u as 0 and 1
at the endpoints:
Consider a line between two given endpoints P 1 (x1, y1, z1) and P2(x2, y2, z2) as shown in Fig.2.2. The
position vectors for these two points would be P 1 and P2. Consider any point P (x, y, z) on the line
P1 P2 .
Let a parametric system be introduced such that the point P is represented by the parameter u
such that its values are 0 and 1 at endpoints P1 and P2 respectively.
From ∆OPP1, we can express the vector between endpoints P 1 and P as P–P1. This vector
represents the parameter u. The mapping between the Cartesian and parametric space can be
done by the following relation :
𝐷𝑖𝑠𝑡𝑎𝑛𝑐𝑒 𝑜𝑓 𝑃 𝑓𝑟𝑜𝑚 𝑃1 𝑖𝑛 𝑐𝑎𝑟𝑡𝑒𝑠𝑖𝑎𝑛 𝑠𝑝𝑎𝑐𝑒 𝐸𝑛𝑑𝑝𝑜𝑖𝑛𝑡 𝑙𝑒𝑛𝑔𝑡ℎ 𝑖𝑛 𝑐𝑎𝑟𝑡𝑒𝑠𝑖𝑎𝑛 𝑠𝑝𝑎𝑐𝑒
=
𝐷𝑖𝑠𝑡𝑎𝑛𝑐𝑒 𝑜𝑓 𝑃 𝑓𝑟𝑜𝑚 𝑃1 𝑖𝑛 𝑝𝑎𝑟𝑎𝑚𝑒𝑡𝑟𝑖𝑐 𝑠𝑝𝑎𝑐𝑒 𝐸𝑛𝑑𝑝𝑜𝑖𝑛𝑡 𝑙𝑒𝑛𝑔𝑡ℎ 𝑖𝑛 𝑝𝑎𝑟𝑎𝑚𝑒𝑡𝑟𝑖𝑐 𝑠𝑝𝑎𝑐𝑒
𝑃 − 𝑃1 𝑃2 − 𝑃1
=
𝑢 1
𝑃 − 𝑃1 = 𝑢(𝑃2 − 𝑃1 )
𝑃 = 𝑃1 + 𝑢(𝑃2 − 𝑃1 ) where, 0 ≤ 𝑢 ≤ 1
This equation represents the vector equation of the line in parametric form. In scalar form, it can
be written as:
𝑥 = 𝑥1 + 𝑢(𝑥2 − 𝑥1 )
𝑦 = 𝑦1 + 𝑢(𝑦2 − 𝑦1 )
𝑧 = 𝑧1 + 𝑢(𝑧2 − 𝑧1 ) where, 0 ≤ 𝑢 ≤ 1
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
2.4 Computer Aided Design (3161903) |
Unit-2 Curves and Surfaces
Any point on the above line or its extension can be found by substituting the value of parameter u.
The tangent vector of the line would be represented by :
𝑃′ = 𝑃2 − 𝑃1
In scalar form these would have the coordinates expressed by the following equations:
𝑥 ′ = 𝑥2 − 𝑥1
𝑦 ′ = 𝑦2 − 𝑦1
𝑧 ′ = 𝑧2 − 𝑧1
It can be seen that the tangent vector is independent of the parameter 𝑢, thus representing the
constant slope of the line. Above equations are sufficient to represent all properties of the line for
CAD/CAM representation. The length L and direction vector 𝑛̂ can be calculated using the following
equations :
𝐿 = |𝐿2 − 𝐿1 |
2.3.1.2 A line passing through a point and defined by a length and direction:
Consider a case, where a line is to pass through a point P 1 and has its length L and direction vector
𝑛̂ defined as input as shown in Fig.2.3. The computation of the endpoint of this line needs to be
done based on the above inputs. As seen earlier,
𝑃 − 𝑃1
𝑛̂ =
𝐿
𝑃 = 𝑃1 + 𝐿(𝑛̂) where, −∞ ≤ 𝐿 ≤ ∞
Once the user inputs P1, L and 𝑛̂, the endpoint can be calculated as per the above equation. The
two endpoints can then be expressed in parametric form with values of parameter u as 0 and 1.
Fig.2.3 – Line passing through a point and defined by a Length and Direction
Fig.2.4
Assume that the existing line has the two endpoints P 1 and P2, a length L1, and a direction defined
by the unit vector 𝑛1 The new line has the same direction 𝑛
̂. ̂1 , a length L2 and endpoints P3 and P4.
The unit vector 𝑛
̂1 is given by
𝑃2 − 𝑃1
𝑛
̂1 =
𝐿1
The unit vector for the parallel line will be same as unit vector for the existing line.
𝑃4 − 𝑃3
𝑛
̂1 =
𝐿2
𝑃4 = 𝑃3 + 𝐿2 (𝑛
̂)
1
𝑃 − 𝑃3 = 𝑢(𝑃4 − 𝑃3 )
Fig.2.5
Fig.2.6
Fig.2.6 shows the distance D from point P3 to the line whose endpoints are P1 and P2 and direction
is 𝑛̂. Its length is L. D is given by
(𝑃3 − 𝑃1 )
𝐷 = |(𝑃3 − 𝑃1 ) × 𝑛̂| = |(𝑃3 − 𝑃1 ) × |
|𝑃3 − 𝑃1 |
A circle is represented in the CAD/CAM database by storing the values of its center and its radius.
In a parametric form, a circle shown in Fig.2.7, can be represented by the following set of equations:
𝑥 = 𝑥𝐶 + 𝑅 cos 𝑢
𝑦 = 𝑦𝐶 + 𝑅 cos 𝑢
𝑧 = 𝑧𝐶 + 𝑅 cos 𝑢
where, 0 ≤ 𝑢 ≤ 2
In this case the parameter u represents the angle measured from the X axis to any point P on the
circumference of the circle. By incrementing the values of u from 0 to 2, the intermediate points
on the circle can be worked out.
These points can then be connected by straight lines for the purpose of display. However, this
method of computation is inefficient as it requires trigonometric evaluation of functions.
A convenient method to determine the different points on the circle is to use the incremental
equations. Consider any point Pn (xn, yn, zn) on the circle.
Let the subsequent incremental point be Pn+1 (xn+1, yn+1, zn+1). From the above equation, we get:
𝑥𝑛 = 𝑥𝐶 + 𝑅 cos 𝑢
𝑅 cos 𝑢 = 𝑥𝑛 − 𝑥𝐶 Eq. (2.1)
𝑦𝑛 = 𝑦𝐶 + 𝑅 sin 𝑢
𝑅 sin 𝑢 = 𝑦𝑛 − 𝑦𝐶 Eq. (2.2)
Eq. (2.3)
𝑥𝑛+1 = 𝑥𝐶 + 𝑅 cos(𝑢 + ∆𝑢)
If two endpoints of diameter of circle are given, then the center & radius of circle are calculated as
below.
Let P1 (x1, y1, z1) & P2 (x2, y2, z2) and center point PC (xC, yC, zC)
1
𝑅𝑎𝑑𝑖𝑢𝑠, 𝑅 = (√(𝑥2 − 𝑥1 )2 + (𝑦2 − 𝑦1 )2 + (𝑧2 − 𝑧1 )2 )
2
1
𝐶𝑒𝑛𝑡𝑒𝑟, 𝑃𝐶 = (𝑃1 + 𝑃2 )
2
𝑥1 + 𝑥2 𝑦1 + 𝑦2 𝑧1 + 𝑧2
[𝑥𝐶 𝑦𝐶 𝑧𝐶 ] = [ ]
2 2 2
However, four conditions (points and/or tangent vectors) are required to define the geometric
shape of an ellipse.
Fig.2.8 shows an ellipse with point Pc as the center and the lengths of half of the major and minor
axes are A and B respectively. The parametric equation of an ellipse can be written as assuming
the plane of the ellipse is the XY plane.
The parameter u is the angle as in the case of a circle. However, for a point P shown in the figure,
it is not the angle between the line PPc and the major axis of the ellipse. Instead, it is defined as
shown.
To find point P on the ellipse that corresponds to an angle u, the two concentric circles C 1 and C2
are constructed with centers at Pc and radii of A and B respectively. A radial line is constructed at
the angle u to intersect both circles at points P1 and P2 respectively.
If a line parallel to the minor axis is drawn from P 1 and a line parallel to the major axis is drawn
from P2, the intersection of these two lines defines the point P.
𝑥 = 𝑥𝐶 + 𝐴 cos 𝑢
𝑦 = 𝑦𝐶 + 𝐵 sin 𝑢 } 0 ≤ 𝑢 ≤ 2𝜋
𝑧 = 𝑧𝐶
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
2.12 Computer Aided Design (3161903) |
Unit-2 Curves and Surfaces
Similar development as in the case of a circle results in the following recursive relationships which
are useful for generating points on the ellipse for display purposes without excessive evaluations
of trigonometric functions:
𝐴
𝑥𝑛+1 = 𝑥𝐶 + (𝑥𝑛 − 𝑥𝐶 ) cos ∆𝑢 − (𝑦𝑛 − 𝑦𝐶 ) sin ∆𝑢
𝐵
𝐴 Eq. (2.8)
𝑦𝑛+1 = 𝑦𝐶 + (𝑦𝑛 − 𝑦𝐶 ) cos ∆𝑢 + (𝑥𝑛 − 𝑥𝐶 ) sin ∆𝑢
𝐵
𝑧𝑛+1 = 𝑧𝑛
If the ellipse major axis is inclined with an angle α relative to the x axis as shown in Fig.2.30, the
ellipse equation becomes
𝑥 = 𝑥𝐶 + 𝐴 cos 𝑢 cos 𝛼 − 𝐵 sin 𝑢 sin 𝛼
𝑦 = 𝑦𝐶 + 𝐴 cos 𝑢 sin 𝛼 − 𝐵 sin 𝑢 cos 𝛼 } 0 ≤ 𝑢 ≤ 2𝜋 Eq. (2.9)
𝑧 = 𝑧𝐶
Eq. (2.9) cannot be reduced to a recursive relationship similar to what is given by Eq. (2.8). Instead
these equations can be written as
𝑥𝑛+1 = 𝑥𝐶 + 𝐴 cos(𝑢𝑛 + ∆𝑢) cos 𝛼 − 𝐵 sin(𝑢𝑛 + ∆𝑢) sin 𝛼
𝑦𝑛+1 = 𝑦𝐶 + 𝐴 cos(𝑢𝑛 + ∆𝑢) sin 𝛼 + 𝐵 sin(𝑢𝑛 + ∆𝑢) cos 𝛼
𝑧𝑛+1 = 𝑧𝑛
2.3.4 Parabola
The parabola is defined mathematically as a curve generated by a point that moves such that its
distance from a fixed point (the focus PF) is always equal to its distance to a fixed line (the directrix)
as shown in Fig.2.9.
The vertex Pv is the intersection point of the parabola with its axis of symmetry. It is located midway
between directrix and focus. Focus lies on the axis of symmetry.
Useful applications of the parabolic curve in engineering design include its use in parabolic sound
and light reflectors, radar antennas and in bridge arches.
Three conditions are required to define a parabola, a parabolic curve, or a parabolic arc. The default
plane of a parabola is the XY plane of the current WCS at the time of construction.
The database of a parabola usually stores the coordinates of its vertex, distances y HW and yLW, that
define its endpoints as shown in Fig.2.9 the distance A between the focus and the vertex (the focal
distance) and the orientation angle .
Unlike the ellipse, the parabola is not a closed curve. Thus, the two endpoints determine the amount
of the parabola to be displayed.
Assuming the local coordinate system of the parabola as shown in Fig.2.9, its parametric equation
can be written as
𝑥 = 𝑥𝑣 + 𝐴𝑢2
𝑦 = 𝑦𝑣 + 2𝐴𝑢 } 0≤𝑢≤∞
𝑧 = 𝑧𝑣
If the range of the y coordinate is limited to y HW and yLW for positive and negative values
respectively, the corresponding u values become
𝑦𝐻𝑊
𝑢𝐻 =
2𝐴
𝑦𝐿𝑊
𝑢𝐿 =
2𝐴
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 2.13
Unit-2 Curves and Surfaces
Fig.2.9 – Basic geometry of Parabola
The recursive relationships to generate points on the parabola are obtained by substituting
𝑢𝑛 + ∆𝑢 for points 𝑛 + 1. This gives
𝑥𝑛+1 = 𝑥𝑛 + (𝑦𝑛 − 𝑦𝑣 )∆𝑢 + 𝐴(∆𝑢)2
𝑦𝑛+1 = 𝑦𝑛 + 2𝐴∆𝑢
𝑧𝑛+1 = 𝑧𝑛
2.3.5 Hyperbolas
A hyperbola is described mathematically as a curve generated by a point moving such that at any
position the difference of its distances from the fixed points (foci) F and F’ is a constant and equal
to the transverse axis of the hyperbola.
Fig.2.10 shows the geometry of a hyperbola.
𝑥 = 𝑥𝑣 + 𝐴 cosh 𝑢
𝑦 = 𝑦𝑣 + 𝐵 sinh 𝑢
𝑧 = 𝑧𝑣
This equation is based on the nonparametric implicit equation of the hyperbola which can be
written as
(𝑥 − 𝑥𝑣 )2 (𝑦 − 𝑦𝑣 )2
− =1
𝐴2 𝐵2
by utilizing the identity cosh2 𝑢 − sinh2 𝑢 = 1.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
2.14 Computer Aided Design (3161903) |
Unit-2 Curves and Surfaces
Fig.2.10 – Hyperbola Geometry
2.4 Conics
Conic curves or conic sections form the most general form of quadratic curves. Lines, circles,
ellipses, parabolas and hyperbolas are all special forms of conic curves. They all can be generated
when a right circular cone of revolution is cut by planes at different angles relative to the cone axis-
thus the derivation of the name conics.
Straight lines result from intersecting a cone with a plane parallel to its axis and passing through
its vertex. Circles results when the cone is sectioned by a plane perpendicular to its axis while
ellipses, parabolas and hyperbolas are generated when the plane is inclined to the axis by various
angles.
Various continuity requirements can be specified at the data points to impose various degrees of
smoothness of the resulting curve. The order of continuity becomes important when a complex
curve is modeled by several curve segments pieced together end to end.
Zero-order continuity (C0) yields a position continuous curve. First (C1)- and second (C2)-order
continuities imply slope and curvature continuous curves respectively.
A C1 curve is the minimum acceptable curve for engineering design. Fig.2.11 shows a geometrical
interpretation of these orders of continuity.
A cubic polynomial is the minimum order polynomial that can guarantee the generation of C 0, C1,
or C2 curves. In addition, the cubic polynomial is the lowest-degree polynomial that permits
inflection within a curve segment and that allows representation of nonplanar (twisted) three
dimensional curves in space.
Higher-order polynomials are not commonly used in CAD/CAM because they tend to oscillate
about control points, are computationally inconvenient and are uneconomical of storing curve and
surface representations in the computer.
The type of input data and its influence on the control of the resulting synthetic curve determine
the use and effectiveness of the curve in design.
For example, curve segments that require positions of control points and/or tangent vectors at
these points are easier to deal with and gather data for than those that might require curvature
information.
Also, the designer may prefer to control the shape of the curve locally instead of globally by
changing the control point(s). If changing a control point results in changing the curve locally in the
vicinity of that point, local control of the curve is achieved; otherwise global control results.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
2.16 Computer Aided Design (3161903) |
Unit-2 Curves and Surfaces
Major CAD/CAM systems provide three types of synthetic curves: Hermite cubic spline, Bezier and
B-spline curves. The cubic spline curve passes through the data points and therefore is an
interpolant.
Bezier and B-spline curves in general approximate the data points, that is, they do not pass through
them. Under certain conditions, the B-spline curve can be an interpolant. Both the cubic spline and
Bezier curves have a first-order continuity and the B-spline curve has a second-order continuity.
Four conditions are required to determine the coefficients of the equation – two end points and
the two tangent vectors at these two points.
It passes through the control points and therefore it is an Interpolant. It has only up to C 1 continuity.
The curve cannot be modified locally, i.e., when a data point is moved, the entire curve is affected,
resulting in a global control.
The order of the curve is always constant (cubic), regardless of the number of data points. Increase
in the number of data points increases shape flexibility, however, this requires more data points,
creating more splines that are joined together (only two data points and slopes are utilized for each
spline).
A cubic spline curve utilizes a cubic equation of the following form:
𝑃(𝑢) = 𝐶3 𝑢3 + 𝐶2 𝑢2 + 𝐶1 𝑢 + 𝐶0 Eq. (2.10)
𝑤ℎ𝑒𝑟𝑒, 0≤𝑢≤1
The cubic spline is defined by the two endpoints P 0, P1 and the tangent vectors at these points. The
tangent vector can be found by differentiating Eq. (2.10).
𝑃′(𝑢) = 3𝐶3 𝑢2 + 2𝐶2 𝑢 + 𝐶1 Eq. (2.11)
To determine the coefficients of the curve, consider the two endpoints P 0, P1 and the tangent
vectors as shown in Fig.2.12.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 2.17
Unit-2 Curves and Surfaces
Applying conditions at 𝑢 = 0, in Eq. (2.10) and Eq. (2.11).
𝑃0 = 𝐶0 Eq. (2.12)
𝑃′0 = 𝐶1 Eq. (2.13)
Similarly again by solving simultaneous Eq. (2.16) and Eq. (2.17), we get
Substituting Eq. (2.12), Eq. (2.13), Eq. (2.18) and Eq. (2.19) in Eq. (2.10), we get:
𝑃(𝑢) = (𝑃′1 − 2𝑃1 + 𝑃′ 0 + 2𝑃0 )𝑢3 + (3𝑃1 − 𝑃′1 − 2𝑃′ 0 − 3𝑃0 )𝑢2 + 𝑃′0 𝑢 + 𝑃0
𝑃(𝑢) = 𝑃′1 𝑢3 − 2𝑃1 𝑢3 + 𝑃′ 0 𝑢3 + 2𝑃0 𝑢3 + 3𝑃1 𝑢2 − 𝑃′1 𝑢2 − 2𝑃′ 0 𝑢2 − 3𝑃0 𝑢2 + 𝑃′0 𝑢 + 𝑃0
𝑃(𝑢) = 2𝑃0 𝑢3 − 3𝑃0 𝑢2 + 𝑃0 − 2𝑃1 𝑢3 + 3𝑃1 𝑢2 + 𝑃′ 0 𝑢3 − 2𝑃′ 0 𝑢2 + 𝑃′0 𝑢 + 𝑃′1 𝑢3 − 𝑃′1 𝑢2
𝑃(𝑢) = 𝑃0 (2𝑢3 − 3𝑢2 + 1) + 𝑃1 (−2𝑢3 + 3𝑢2 ) + 𝑃′ 0 (𝑢3 − 2𝑢2 + 𝑢) + 𝑃′1 (𝑢3 − 𝑢2 ) Eq. (2.20)
2𝑢3 − 3𝑢2 + 1
3
𝑃(𝑢) = [𝑃0 𝑃1 𝑃′ 0 𝑃′1 ] [ −2𝑢 + 3𝑢2 ]
𝑢 − 2𝑢2 + 𝑢
3
𝑢3 − 𝑢2
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃(𝑢) = [𝑃0 𝑃1 𝑃′ 0 𝑃′1 ] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
On similar lines, the tangent vector equation can be determined by differentiating Eq. (2.20).
Solution: P0 = [16 0]
P1 = [3 1]
P’0 = P2 – P0 = [14 8] – [16 0]
= [–2 8]
P’1 = P1 – P2 = [3 1] – [14 8]
= [–11 –7]
Parametric equation
For any point on curve
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃(𝑢) = [𝑃0 𝑃1 𝑃′ 0 ′
𝑃 1] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
X coordinate of a point on curve
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑥 (𝑢) = [𝑃0𝑥 𝑃1𝑥 𝑃′ 0𝑥 𝑃′1𝑥 ] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑥 (𝑢) = [16 3 − 2 − 11] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
𝑢3
2
𝑃𝑥 (𝑢) = [13 − 24 − 2 16] [𝑢 ]
𝑢
1
𝑃𝑥 (𝑢) = 13𝑢3 − 24𝑢2 − 2𝑢 + 16
Y coordinate of a point on curve
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑦 (𝑢) = [𝑃0𝑦 𝑃1𝑦 𝑃′ 0𝑦 ′
𝑃 1𝑦 ] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑦 (𝑢) = [0 1 8 − 7] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
Curve plot
The point on curve obtained by varying value of 𝑢 from 0 to 1 in steps of 0.1 in Eq. (2.21) are
shown in below table
Point 0 1 2 3 4 5 6 7 8 9 10
No.
x (u) 16 15.57 14.74 13.59 12.19 10.63 8.97 7.30 5.70 4.24 3.00
y (u) 0 0.74 1.35 1.83 2.18 2.38 2.42 2.32 2.05 1.61 1.00
The Hermite cubic curve plotted using the above coordinates is shown in Fig.2.13.
Fig.2.13
Solution: P0 = [1 2]
P1 = [7 1]
P’0 = P2 – P0 = [–2 1] – [1 2] = [–3 –1]
P’1 = P1 – P3 = [7 1] – [9 –2] = [–2 3]
Parametric equation of curve
For any point on curve
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃(𝑢) = [𝑃0 𝑃1 𝑃′ 0 ′
𝑃 1] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
X coordinate of a point on curve
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑥 (𝑢) = [𝑃0𝑥 𝑃1𝑥 𝑃′ 0𝑥 𝑃′1𝑥 ] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑥 (𝑢) = [1 7 − 3 − 2] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
𝑢3
2
𝑃𝑥 (𝑢) = [−17 26 − 3 1] [𝑢 ]
𝑢
1
𝑃𝑥 (𝑢) = −17𝑢3 + 26𝑢2 − 3𝑢 + 1
Y coordinate of a point on curve
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑦 (𝑢) = [𝑃0𝑦 𝑃1𝑦 𝑃′ 0𝑦 𝑃′1𝑦 ] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
2 −3 0 1 𝑢3
−2 3 0 0 𝑢2
𝑃𝑦 (𝑢) = [2 1 − 1 3] [ ][ ]
1 −2 1 0 𝑢
1 −1 0 0 1
𝑢3
2
𝑃𝑦 (𝑢) = [4 − 4 − 1 2] [𝑢 ]
𝑢
1
𝑃𝑦 (𝑢) = 4𝑢3 − 4𝑢2 − 𝑢 + 2
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 2.21
Unit-2 Curves and Surfaces
Thus, parametric equation of parametric curve is
𝑃𝑥 (𝑢) = −17𝑢3 + 26𝑢2 − 3𝑢 + 1
Eq. (2.22)
3 2
𝑃𝑦 (𝑢) = 4𝑢 − 4𝑢 − 𝑢 + 2
Curve plot
The point on curve obtained by varying the value of u from 0 to 1 in steps of 0.1 in Eq. (2.22)
are shown in below table
Point 0 1 2 3 4 5 6 7 8 9 10
No.
x (u) 1 0.94 1.30 1.98 2.87 3.88 4.89 5.81 6.54 6.97 7.00
y (u) 2 1.86 1.67 1.45 1.22 1.00 0.82 0.71 0.69 0.78 1.00
Fig.2.14
The Bezier curve is defined in terms of (n+1) points. This points are called as control points, where
n is the degree of the curve.
If n=3 control points are 4, as shown in the Fig.2.15.
These control points form the vertices of the control polygon or Bezier characteristic polygon.
Only the first and last control points or vertices of polygon actually lie on curve.
The other vertices define order & shape of the curve. (see Fig.2.16)
Fig.2.16 – Same data points but different orders for Bezier Curve
The curve is also always tangent to first and last segments of polygon.
The same Beizer curve would be generated, if the sequence of the points is changed from P 0 – P1
– P2 – P3 to P3 – P2 – P1 – P0.
The flexibility of the shape would increase with increase in number of vertices of the polygon.
Mathematically, for n + 1 control points, the Bezier curve is defined by the following polynomial of
degree n:
𝑛
Eq. (2.23)
𝑃(𝑢) = ∑ 𝑃𝑖 𝐵𝑖,𝑛 (𝑢), 0≤𝑢≤1
𝑖=0
where 𝑃(𝑢) is any point on the curve and 𝑃𝑖 is a control point. 𝐵𝑖,𝑛 are the Bernstein polynomials.
Thus, the Bezier curve has a Bernstein basis. The Bernstein polynomial serves as the blending or
basis function for the Bezier curve and is given by
𝐵𝑖,𝑛 = 𝐶(𝑛, 𝑖)𝑢𝑖 (1 − 𝑢)𝑛−𝑖 Eq. (2.24)
The points on curve obtained by varying the value of 𝑢 = 0, 0.2, 0.4, 0.6, 0.8 and 1 in Eq. (2.26)
are shown in below table
Point 0 2 4 6 8 10
No.
The Bezier curve plotted using the above coordinates is shown in Fig.2.18.
P𝑦 (𝑢) = 0 + (−5(0) + 5(3))𝑢 + (10(0) − 20(3) + 10(2))𝑢2 + (−10(0) + 30(3) − 30(2) + 10(−2))𝑢3
+ (5(0) − 20(3) + 30(2) − 20(−2) + 5(−3))𝑢4 + (−(0) + 5(3) − 10(2) + 10(2) − 5(−3) + (−2))𝑢5
P𝑦 (𝑢) = 15𝑢 − 40𝑢2 + 10𝑢3 + 25𝑢4 − 12𝑢5
The points on curve obtained by varying the value of u from 0 to 1 in steps of 0.1 in Eq. (2.27) are shown
in below table
Point No. 0 1 2 3 4 5 6 7 8 9 10
u 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Px (u) 2 2.89 3.56 4.01 4.29 4.47 4.62 4.82 5.12 5.52 6.00
Py (u) 0 1.11 1.52 1.34 0.76 -0.06 -0.93 -1.68 -2.17 -2.29 -2.00
Fig.2.19
They are very similar to Bezier curve and are also defined with the help of characteristic polygon.
The major advantage of B-Spline curve is due to its ability to control the curve shape locally, as
opposed to global control. (see Fig.2.20).
B-Spline curves allow a local control over the shape of the spline curve.
B-Spline curves allow us to vary the control points without changing the degree of the polynomial
(i.e. number of control points can be added or subtracted).
The degree of the curve is independent of the number of control points (i.e. four control points can
generate a linear, quadratic or cubic curve).
It gives better control over the shape of curve.
𝑁𝑖,𝑘 (𝑢) are the B-spline functions. Thus, the B-spline curves have a B-spline basis.
𝑅𝑖,𝑘 (𝑢) are the rational B-spline functions and are given by
ℎ𝑖 𝑁𝑖,𝑘 (𝑢)
𝑅𝑖,𝑘 (𝑢) = 𝑛
∑𝑖=0 ℎ𝑖 𝑁𝑖,𝑘 (𝑢)
The above equation shows that 𝑅𝑖,𝑘 (𝑢) are a generalization of the nonrational basis functions
𝑁𝑖,𝑘 (𝑢). If we substitute ℎ𝑖 = 1 in the equation, 𝑅𝑖,𝑘 (𝑢) = 𝑁𝑖,𝑘 (𝑢). The rational basis functions
𝑅𝑖,𝑘 (𝑢) have nearly all the analytic and geometric characteristics of their nonrational B-spline
counterparts.
The main difference between rational and nonrational B-spline curves is the ability to use hi at each
control point to control the behavior of the rational B-splines (or rational curves in general).
Thus, similarly to the knot vector, one can define a homogeneous coordinate vector H = [h 0 h1 h2 h3
. . . hn]T at the control points P0, P1, . . ., Pn of the rational B-spline curve. The choice of the H vector
controls the behavior of the curve.
A rational B-spline is considered a unified representation that can define a variety of curves and
surfaces. The premise is that it can represent all wireframe, surface and solid entities. This allows
unification and conversion from one modeling technique to another. Such an approach has some
drawbacks, including the loss of information on simple shapes.
For example, if a circular cylinder (hole) is represented by a B-spline, some data on the specific
curve type may be lost unless it is carried along. Data including the fact that the part feature was a
cylinder would be useful to manufacturing to identify it as a hole to be drilled or bored rather than
a surface to be milled.
To create a surface, data related to the desired shape is required. The choice of the surface is
dependent on the application. In order to visualize surfaces, a mesh of m x n in size is displayed.
The mesh size is controllable and is in the form of criss-cross on the surface. The mesh size plays
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 2.31
Unit-2 Curves and Surfaces
an important role in proper visualization as can be seen in the objects shown in Fig.2.21. However,
it should be noted that finer the mesh size of surface entities, longer is the time required by the
software to construct and modify the entities.
A system may need two boundaries to create a ruled surface or might require one entity to create
a surface of revolution. Surfaces provided by CAD / CAM software are either analytical or synthetic.
The following are descriptions of major surface entities provided by CAD/CAM systems:
1. Plane Surface: This is the simplest surface. It requires three noncoincident points to define an
infinite plane. The plane surface can be used to generate cross-sectional views by intersecting a
surface model with it, generate cross sections for mass property calculations, or other similar
applications where a plane is needed. Fig.2.22 shows a plane surface.
2. Ruled (lofted) Surface: This is a linear surface. It interpolates linearly between two boundary
curves that define the surface (rails). Rails can be any wireframe entity. This entity is ideal to
represent surfaces that do not have any twists or kinks. Fig.2.23 gives some examples.
4. Tabulated Cylinder: This is a surface generated by translating a planar curve a certain distance
along a specified direction (axis of the cylinder) as shown in Fig.2.25. The plane of the curve is
perpendicular to the axis of the cylinder. It is used to generate surfaces that have identical curved
cross sections. The word "tabulated" is borrowed from the APT language terminology.
5. Bezier surface: This is a surface that approximates given input data. It is different from the
previous surfaces in that it is a synthetic surface. Similarly to the Bezier curve, it does not pass
through all given data points. It is a general surface that permits twists and kinks ( Fig.2.26). The
Bezier surface allows only global control of the surface.
6. B-spline surface: This is a surface that can approximate or interpolate given input data ( Fig.2.27).
It is a synthetic surface. It is a general surface like the Bezier surface but with the advantage of
permitting local control of the surface.
7. Coons Patch: The above surfaces are used with either open boundaries or given data points. The
Coons patch is used to create a surface using curves that form closed boundaries ( Fig.2.28).
9. Offset surface: Existing surfaces can be offset to create new ones identical in shape but may have
different dimensions. It is a useful surface to use to speed up surface construction. For example,
to create a hollow cylinder, the outer or inner cylinder can be created using a cylinder command
and the other one can be created by an offset command. Offset surface command becomes very
efficient to use if the original surface is a composite one. Fig.2.30 shows an offset surface.
2.7 References
1) CAD/CAM Principles and Applications by P. N. Rao, Tata McGraw-Hill Publication.
2) Mastering CAD/CAM by Zeid,Ibrahim, Tata McGraw-Hill Publication.
3) CAD/CAM/CIM by Radhakrishnan,P;Subramanyan,S;Raju,V, New Age International (P) Limited.
4) CAD/CAM: Theory and Practice by Zeid,Ibrahim;Subramanian,R, Tata McGraw-Hill Publication.
It is simple to construct.
It requires less computer memory for storage compare to other types of geometric models.
The time required to retrieve, edit or update is less for wire-frame models compare to other types
of geometric models.
It is more ambiguous to interpret the wire-frame model (see Fig.3.1).
Calculation of the properties, such as mass, volume, moment of inertia etc., is not possible.
It is difficult and time consuming to generate wire-frame model for complicated objects.
It requires more input data compare to others as it requires co-ordinates of each node and their
connectivity.
Fig.3.3
The properties that a solid model or an abstract solid should capture mathematically can be stated
as follows:
1. Rigidity This implies that the shape of a solid model is invariant and does not depend on
the model location or orientation in space.
2. Homogeneous three-dimensionality Solid boundaries must be in contact with the interior.
No isolated or dangling boundaries (see Fig.3.3) should be permitted.
3. Finiteness and finite describability The former property means that the size of the solid is
not infinite while the latter ensures that a limited amount of information can describe the
Fig.3.4
2. Generalized Sweeps
A solid is defined in terms of volumes swept out by 2D or 3D lamina as they move along a
curve. Some of the typical objects generated by this method are shown in Fig.3.6.
4. Cellular Decomposition
An object is represented in this scheme by a list of cells it occupies, but the cells are not
necessarily cubes, nor are they necessarily identical (see Fig.3.8).
Structuring and combining the primitives of the solid model in the graphics database, is
achieved by the use of Boolean operations. Consider two solids A and B, sharing a common
volume of space as shown in Fig.3.10 (a). The Boolean operations that can be performed
on them and the resultant solid are shown in Fig.3.10 (b) to (d).
CSG method has a procedural advantage in the initial formulation of the model. It is
relatively easy to construct a precise solid model out of regular solid primitives by adding,
subtracting and intersecting the components. CSG uses the unevaluated representation
format which results in compact file of the model in the database. However, this results in
more computations to evaluate the model.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 3.9
Unit-3 Mathematical Representation of Solids
The data representation of CSG objects is represented by a binary tree. The binary tree gives
the complete information of how individual primitives are combined to represent the object.
The number of primitives thus decides the number of Boolean operations required to
construct the binary tree.
The balanced distribution of the tree is desired to achieve minimum computations while
modifying or interrogating a model. A balanced tree can be defined as a tree whose left and
right subtrees have almost an equal number of nodes.
The creation of balanced or an unbalanced tree is solely dependent on the user and is
related to how the primitives are combined. Ideally the model should be built from an almost
central position and branch out in two opposite directions.
For example, while doing a union operation, it is preferred to combine all the unions
together, rather than achieving unions of objects two at a time. A balanced and an
unbalanced method of building the same object is shown in Fig.3.11.
The CSG tree is organized upside down, with the root representing the composite object at
the top and primitives called as leaves at the bottom.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
3.10 Computer Aided Design (3161903) |
Unit-3 Mathematical Representation of Solids
6. Boundary Representation (B-rep)
The boundary representation approach or B-rep is a popular method of solid representation.
It can be considered as an extension of the wire frame model with additional face
information added.
In a B-rep, the solid is considered to be bounded by its surface and has its interior and
exterior. The surface consists of a set of well organized faces. The two important areas for
B-rep models are the topological and geometrical information.
Topological information provides the relationship about vertices, edges and faces similar
to that used in a wire frame model. In addition to connectivity, topological information also
includes orientation of edges and faces. Geometric information is usually in terms of
equations of the edges and the faces.
In a B-rep model, the information related to the orientation of the face is important.
Generally external vertices of the face are numbered in anti-clockwise fashion. The normal
vector of the face as determined by the right hand rule must point to the exterior of the
surface.
Consider the three faces as shown in Fig.3.12. One of the methods to describe the top face
would be 4-3-5-6. On similar lines the other two faces could be described as 1-2-3-4 and 1-
4-6-3.
However, not all surfaces can be oriented in this way. If the surface of the solid can be
oriented, it is called orientable; otherwise it is non-orientable.
The CSG and the B-rep information of the same solid are shown in Fig.3.13. The CSG model
is achieved by the union of the two primitives whereas the facial information for B-rep is as
shown.
It is seen that B-rep systems store only the bounding surfaces of the solid, however it is still
possible to compute geometrical and mass properties by virtue of numerical methods such
as Gauss Divergence Theorem, which relates volume integrals to surface ones. The speed
and accuracy of computations vary as per the kind of surfaces used.
Another advantage of B-rep is that, it is relatively simple to convert back and forth between
a boundary representation and a corresponding wire-frame model. The reason is that the
model’s boundary definition is similar to the wire-frame definition which facilitates
conversion of one form to another.
C-rep B-rep
It does not store only the bounding surfaces of the It stores only the bounding surfaces of the solid.
solid.
It is easy to create precise solid model using standard It does not use standard primitives.
primitives.
It is relatively difficult to convert back and forth It is relatively simple to convert back and forth
between a C-rep and a corresponding wire-frame between a boundary representation and a
model. corresponding wire-frame model.
Fig.3.14 – Skinning
Toroidal half-space: H = {(x, y, z): (x2 + y2 + z2 – R22 – R12)2 < 4 R22(R12– z2)}
Fig.3.16
4.1.1 Translation
Fig.4.1 – Translation
• When every entity of a geometric model remains parallel to its initial position, the transformation
is called as translation.
• Translating a model therefore implies that every point on it moves by an equal given distance in a
given direction. A translation involves moving of an element from one location to another.
𝑃⋆ = [𝑥 ⋆ + 𝑦 ⋆ ]
𝑥 ⋆ = 𝑥 + 𝑑𝑥
𝑦 ⋆ = 𝑦 + 𝑑𝑦
𝑥⋆
[𝑃⋆ ] = [ ]
𝑦⋆
𝑥 + 𝑑𝑥
=[ ]
𝑦 + 𝑑𝑦
𝑥 𝑑𝑥
= [𝑦] + [ ]
𝑑𝑦
Fig.4.2 – Scaling
𝑃 ⋆ = [𝑥 ⋆ , 𝑦 ⋆ ]
= [𝑆𝑥 × 𝑥, 𝑆𝑦 × 𝑦]
= [𝑇𝑆 ][𝑃]
𝑆𝑥 0
Where scalling transformation, [𝑇𝑆 ] = [ 0 𝑆𝑦 ]
4.1.4 Rotation
• Rotation is an important transformation and allows the user to view the objects from different
angles.
• It can also be used to create entities arranged in circular arrays, by creating the entity once and
then rotating / copying it to the desired positions on the circumference. This would allow the user
to create an array of objects.
• However, care should to be taken that the order of the matrix multiplication be done in the same
way as that of the transformations as follows.
[𝑃⋆ ] = [𝑇𝑛 ][𝑇𝑛−1 ][𝑇𝑛−2 ] … . . [𝑇3 ][𝑇2 ][𝑇1 ] Eq. (4.1)
1 0 0
[𝑇1 ] = [ 0 1 0]
𝑑𝑋 𝑑𝑌 1
cos 𝜃 sin 𝜃 0
[𝑇2 ] = [− sin 𝜃 cos 𝜃 0]
0 0 1
1 0 0
[𝑇3 ] = [ 0 1 0]
−𝑑𝑋 −𝑑𝑌 1
• The required transformation matrix is given by
[T] = [T3] [T2] [T1]
1 0 0 cos 𝜃 sin 𝜃 0 1 0 0
[𝑇] = [ 0 1 0] [− sin 𝜃 cos 𝜃 0] [ 0 1 0]
−𝑑𝑋 −𝑑𝑌 1 0 0 1 𝑑𝑋 𝑑𝑌 1
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
4.6 Computer Aided Design (3161903) |
Unit-4 Geometric Transformations
4.2.2 Reflection about an arbitrary line
• Similar to the above, there are times when the reflection is to be taken about an arbitrary line as
shown in Fig.4.6.
1. Translate the mirror line along Y axis such that line passes through the origin, O.
2. Rotate the mirror line such that it coincides with the X axis.
3. Mirror the object through the X axis.
4. Rotate the mirror line back to the original angle with X axis.
5. Translate the mirror line along the Y axis back to the original position.
Following are the transformation matrices for the above operations in the given sequence.
1 0 0
[𝑇1 ] = [0 1 0]
0 𝐶 1
cos 𝜃 −sin 𝜃 0
[𝑇2 ] = [ sin 𝜃 cos 𝜃 0]
0 0 1
1 0 0
[𝑇3 ] = [0 −1 0]
0 0 1
cos 𝜃 sin 𝜃 0
[𝑇4 ] = [− sin 𝜃 cos 𝜃 0]
0 0 1
1 0 0
[𝑇5 ] = [0 1 0]
0 −𝐶 1
• The required transformation matrix is given by
[T] = [T5] [T4] [T3] [T2] [T1]
1 0 0 cos 𝜃 sin 𝜃 0 1 0 0 cos 𝜃 −sin 𝜃 0 1 0 0
[𝑇] = [0 1 0] [− sin 𝜃 cos 𝜃 0] [0 −1 0] [ sin 𝜃 cos 𝜃 0] [0 1 0]
0 −𝐶 1 0 0 1 0 0 1 0 0 1 0 𝐶 1
4.3.1 2D Shearing
• Two common shearing transformations are those that shift coordinate x values and those that
shift y values.
• An x-direction shear relative to the x axis is produced with the transformation matrix
1 𝑆ℎ𝑥 0 Eq. (4.2)
[0 1 0]
0 0 1
• which transforms coordinate positions as
• Any real number can be assigned to the shear parameter shx. A coordinate position (x, y) is then
shifted horizontally by an amount proportional to its distance (y value) from the x axis (y = 0).
• Setting shx to 2, for example, changes the square in Fig.4.7 into a parallelogram. Negative values
for shx shift coordinate positions to the left.
Fig.4.7 – A unit square (a) is converted to a parallelogram (b) using the x direction shear matrix Eq.
(4.2) with shx = 2.
• An example of this shearing transformation is given in Fig.4.8 for a shear parameter value of 1/2
relative to the line yref = –1.
Fig.4.9 – A unit square (a) is turned into a shifted parallelogram (b) with parameter values shy = 1/2
and xref = –1 in the y direction using shearing transformation Eq. (4.6).
• This transformation shifts a coordinate position vertically by an amount proportional to its distance
from the reference line x = xref. Fig.4.9 illustrates the conversion of a square into a parallelogram
with shy = 1/2 and xref = –1.
• Shearing operations can be expressed as sequences of basic transformations. The x-direction
shear matrix Eq. (4.2), for example, can be written as a composite transformation involving a series
of rotation and scaling matrices that would scale the unit square of Fig.4.9 along its diagonal, while
maintaining the original lengths and orientations of edges parallel to the x axis.
• Shifts in the positions of objects relative to shearing reference lines are equivalent to translations.
Prof. Vimal G Limbasiya, Department of Mechanical Engineering
Computer Aided Design (3161903) | 4.9
Unit-4 Geometric Transformations
4.3.2 3D Shearing
• In two dimensions, transformations relative to the x or y axes to produce distortions in the shapes
of objects. In three dimensions, we can also generate shears relative to the z axis.
Fig.4.10
• The intersections of these projectors with the projection plane define the projected points which
are connected to produce the projected entity. There are two different types of projections based
on the location of the center of projection relative to the projection plane.
• If the center is at a finite distance from the plane, perspective projection results and all the
projectors meet at the center. If, on the other hand, the center is at an infinite distance, all the
projectors become parallel (meet at infinity) and parallel projection results. Perspective projection
is usually a part of perspective, or projective, geometry.
• Such geometry does not preserve parallelism, that is, no two lines are parallel. Parallel projection
is a part of affine geometry which is identical to Euclidean geometry. In affine geometry, parallelism
is an important concept and therefore is preserved.
• Obtaining the orthographic projections is relatively straight forward because of the parallel
projections involved. The top view can be obtained by setting z = 0. The transformation matrix will
then be
1 0 0 0
[𝑀𝑇𝑂𝑃 ] = [0 1 0 0
]
0 0 0 0
0 0 0 1
• For obtaining the front view, y = 0 and then the resulting coordinates (x, z) will be rotated by 90 0
such that the Z axis coincides with the Y axis. The transformation matrix will then be
1 0 0 0
[𝑀𝐹𝑅𝑂𝑁𝑇 ] = [0 0 −1 0
]
0 0 0 0
0 0 0 1
• Similarly for obtaining the right side view, x = 0 and then the coordinate system is rotated such that
Y axis coincides with the X axis and the Z axis coincides with the Y axis. The transformation matrix
will then be
0 0 −1 0
[𝑀𝑅𝐼𝐺𝐻𝑇 ] = [0 1 0 0
]
0 0 0 0
0 0 0 1
Fig.4.14 – A viewing transformation using standard rectangles for the window and viewport
Fig.4.15 – A point at position (xw, yw) in a designated window is mapped to viewport coordinates (xv,yv)
so that relative positions in the two areas are the same.
Fig.4.16 – Mapping selected parts of a scene in normalized coordinates to different video monitors with
workstation transformations.
𝐴′ 𝐵′ 𝐶 ′ 𝐷 ′ = 𝐴𝐵𝐶𝐷. 𝑇. 𝑅. 𝑀. 𝑅 −1 𝑇 −1
−2 0 1 1 0 0 𝐶𝑜𝑠 𝜃 𝑆𝑖𝑛 𝜃 0 1 0 0 𝐶𝑜𝑠 (−𝜃) 𝑆𝑖𝑛 (−𝜃) 0 1 0 0
0 −1 1 0 1 0] [−𝑆𝑖𝑛 𝜃
=[ ][ 𝐶𝑜𝑠 𝜃 0] [0 −1 0] [−𝑆𝑖𝑛 (−𝜃) 𝐶𝑜𝑠 (−𝜃) 0] [ 0 1 0]
2 0 1 𝑡 𝑡𝑦 1
𝑥 0 0 1 0 0 1 0 0 1 𝑡𝑥 𝑡𝑦 1
0 1 1
4.6 References
1) CAD/CAM Principles and Applications by P. N. Rao, Tata McGraw-Hill Publication.
2) Mastering CAD/CAM by Zeid,Ibrahim, Tata McGraw-Hill Publication.
3) CAD/CAM/CIM by Radhakrishnan,P;Subramanyan,S;Raju,V, New Age International (P) Limited.
4) CAD/CAM: Theory and Practice by Zeid,Ibrahim;Subramanian,R, Tata McGraw-Hill Publication.
Course Contents
5.1 Basic Concept
5.2 Historical Background
5.3 Definition
5.4 Engineering Applications of
the Finite Element Method
5.5 General procedure of Finite
Element Method
5.6 Stress analysis of stepped bar
5.7 Penalty Approach
5.8 Effect of Temperature on
Elements
5.9 Discretization of the Domain
5.10 Discretization Process
5.11 Automatic Mesh Generation
5.12 Analysis of Trusses
5.13 Principle of Minimum
Potential Energy
5.14 Natural OR Intrinsic
Coordinate System
5.15 Shape function in Natural
Coordinate System
Fig. 5.3 Lower and Upper Bounds to the Circumference of a Circle.
Eigenvalue
Area of Study Equilibrium Problems Propagation Problems
Problems
1.Civil Static analysis of Natural frequencies Propagation of stress
engineering trusses, frames, folded and modes of waves; response of
structures plates, shell roofs, shear structures; stability structures to a periodic
walls, bridges, and of structures loads
prestressed concrete
structures
2. Aircraft Static analysis of Natural frequencies, Response of aircraft
structures aircraft wings, flutter, and stability structures to random
fuselages, fins, rockets, of aircraft, rocket, loads; dynamic response
spacecraft, and missile spacecraft, and of aircraft and spacecraft
structures missile structures to a periodic loads
3. Heat Steady-state – Transient heat flow in
Step 1: Idealization.
The bar is idealized as an assemblage of two elements, one element for each step of the bar as
shown in Figure 5.4(b). Each element is assumed to have nodes at the ends so that the
stepped bar will have a total of three nodes.
Since the load is applied in the axial direction, the axial displacements of the three nodes are
considered as the nodal unknown degrees of freedom of the system, and are denoted as
Φ1,Φ2, and Φ3 as shown in Figure 5.4(b).
Step 2: Develop interpolation or displacement model.
Since the two end displacements of element e, Φ1(e), and Φ2(e), are considered the degrees of
freedom, the axial displacement, ϕ(x), within the element e is assumed to vary linearly as
(Figure 5.4(c)): ϕ(x) = a+bx (E.1)
P1
If the bar as a whole is in equilibrium under the loads, P P2 the principle of minimum
P
3
potential energy gives
e1
1
2 = vector ofglobal displacements.
3
Example 5.1:A1 = 200 mm2, E1 = E2 = E = 2 x 106 N/mm2
A2 = 100 mm2, l1 = l2 = 100 mm
P3 = 1000 N. Find: Displacement and stress & strain.
In the present case, external loads act only at the node points; as such, there is no need to
assemblethe element load vectors. The overall or global load vector can be written as
Example 5.2: A thin plate as shown in Fig. 5.5(a) has uniform thickness of 2 cm and its
modulus of elasticity is 200 x 103 N/mm2 and density 7800 kg/m3. In addition to its self
weight the plate is subjected to a point load P of500 N is applied at its midpoint.
Solve the following:
(i) Finite element model with two finite elements.
(ii) Global stiffness matrix.
(iii) Global load matrix.
(iv) Displacement at nodal point.
(i) The tapered plate can be idealized as two element model with the tapered area
converted to the rectangular equivalent area Refer Fig. (b). The areas A1 and A2
are equivalent areas calculated as
15 11.25
A1 2 26.25 cm 2
2
11.25 7.5
A2 2 18.75 cm 2
2
(ii) Global stiffness matrix can be obtained as
(iv) The displacement at nodal point can be obtained by writing the equation in global
form as
At node l, the stiffness term is ‘C’ is introduced to reflect the boundary condition
related to a rigid support. To compensate this change, the force term will also be
modified as:
The reaction force as per penalty approach would be found by multiplying the added
stiffness with the net deflection of the node.
R = - C(Q-a)
The penalty approach is an approximate method and the accuracy of the forces
depends on the value of C.
Example 5.3: Consider the bar shown in Fig. 5.7. An axial load P = 200 x 103 N is applied as
shown. Using the penalty approach for handling boundary conditions, do the following:
(a) Determine the nodal displacements
(b) Determine the stress in each material.
(c) Determine the reaction forces.
Fig. 5.7
(a) The element stiffness matrices are
Example 5.4: In Fig. 5.8(a), a load P = 60 x 103 N is applied as shown. Determine the
displacement field, stress and support reactions in the body. Take E = 20 x 103N/mm2.
Fig. 5.8
The boundary conditions are Q1= 0 and Q3= 1.2 mm. The structural stiffness matrix K is
The solution is
Q = [7.49985 x 10-5, 1.500045, 1.200015]T mm
The element stresses are
Fig. 5.9
Consider the horizontal step bar supported at two ends is subjected to a thermal stress and
load P at node 2 as shown in Fig. 5.9.
Thermal load in element 1
Example 5.5 : An axial load P = 300 x 103 N is applied at 20C to the rod as shown in Fig.
5.10.The temperature is then raised to 60C.
(a) Assemble the K and F matrices.
(b) Determine the nodal displacements and element stresses.
Fig. 5.10
Prepared By: A. J. Makadia Department of Mechanical Engineering
Page 5.18 Darshan Institute of Engineering & Technology, Rajkot
Computer Aided Design (3161903) 5. Finite Element Analysis
Now, in assembling F, both temperature and point load effects have to be considered.
The element temperature forces due to ΔT = 40C are obtained as
In some cases the hexahedron element, which can be obtained by assembling five
tetrahedrons as indicated in Fig. 5.14.
5.10Discretization Process
Step - 1: Type of Elements
If the problem involves the analysis of a truss structure under a given set of load
conditions (Fig. 5.17(a)), the type of elements to be used for idealization is obviously
the “bar or line elements” as shown in Fig. 5.17(b).
In the case of stress analysis of the short beam shown in Fig.5.18(a), the finite element
idealization can be done using three-dimensional solid elements as shown in Fig.
5.18(b).
In some cases, we may have to use two or more types of elements for idealization. An
example of this would be the analysis of an aircraft wing.
Since the wing consists of top and bottom covers, stiffening webs, and flanges, three
types of elements—namely, triangular plate elements (for covers), rectangular shear
panels (for webs), and frame elements (for flanges)—have been used in the
idealization shown in Fig. 5.20.
If the body has no abrupt changes in geometry, material properties, and external
conditions (e.g., load and temperature), the body can be divided into equal
subdivisions and hence the spacing of the nodes can be uniform.
On the other hand, if there are any discontinuities in the problem, nodes have to be
introduced at these discontinuities, as shown in Fig. 5.23.
Step - 4: Number of Elements
The number of elements to be chosen for idealization is related to the accuracy
desired, size of elements, and the number of dof involved.
Although an increase in the number of elements generally means more accurate
results, for any given problem, there will be a certain number of elements beyond
which the accuracy cannot be significantly improved. This behavior is shown
graphically in Fig. 5.24.
Moreover, since the use of a large number of elements involves a large number of dof,
we may not be able to store the resulting matrices in the available computer memory.
(a) Plate with hole (b) Only half of plate can be considered for analysis
Fig. 5.25A Plate with a Hole with Symmetric Geometry and Loading.
Step - 6: Finite Representation of Infinite Bodies
In most of the problems, like in the analysis of beams, plates, and shells, the
boundaries of the body or continuum are clearly defined. Hence, the entire body can
be considered for element idealization.
However, in some cases, as in the analysis of dams, foundations, and semi-infinite
bodies, the boundaries are not clearly defined. In the case of dams (Figure 5.26), since
the geometry is uniform and the loading does not change in the length direction, a unit
slice of the dam can be considered for idealization and analyzed as a plane strain
problem.
However, in the case of the foundation problem shown in Fig. 5.27(a), we cannot
idealize the complete semi-infinite soil by finite elements. Fortunately, it is not really
necessary to idealize the infinite body.
Since the effect of loading decreases gradually with increasing distance from the point
of loading, we can consider only that much of the continuum in which the loading is
expected to have a significant effect as shown in Fig. 5.27(b). Once the significant
extent of the infinite body is identified as shown in Fig. 5.27(b), the boundary
conditions for this finite body have to be incorporated in the solution.
Automatic mesh generation involves the subdivision of a given domain, which may
be in the form of a curve, surface, or solid (described by a CAD or solid modeling
package) into a set of nodes (or vertices) and elements (subdomains) to represent the
domain as closely as possible subject to the specified element shape and size
restrictions.
Many automatic mesh generation schemes use a “bottom-up” approach in that nodes
(or vertices or corners of the domain) are meshed first, followed by curves
(boundaries), then surfaces, and finally solids.
Thus, for a given geometric domain of the problem, nodes are first placed at the
corner points of the domain, and then nodes are distributed along the geometric curves
that define the boundaries.
Next, the boundary nodes are used to develop nodes in the surface(s), and finally the
nodes on the various surfaces are used to develop nodes within the given volume (or
domain).
The nodes or mesh points are used to define line elements if the domain is one-
dimensional, triangular, or quadrilateral elements if the domain is two-dimensional,
and tetrahedral or hexahedral elements if the domain is three-dimensional.
The automatic mesh generation schemes are usually tied to solid modeling and
computer aided design schemes. When the user supplies information on the surfaces
and volumes of the material domains that make up the object or system, an automatic
mesh generator generates the nodes and elements in the object.
The user can also specify minimum permissible element sizes for different regions of
the object. Many mesh generation schemes first create all the nodes and then produce
a mesh of triangles by connecting the nodes to form triangles (in a plane region).
In a particular scheme, known as Delaunay triangulation, the triangular elements are
generated by maximizing the sum of the smallest angles of the triangles; thus the
procedure avoids generation of thin elements.
5.12Analysis of Trusses
The links of a truss are two-force members, where the direction of loading is along the
axis of the member. Every truss element is in direct tension or compression.
All loads and reactions are applied only at the joints and all members are connected
together at their ends by frictionless pin joints. This makes the truss members very
similar to a 1D spar element.
le ( x2 x1 ) 2 ( y2 y1 ) 2
q1’ =qll + q2 m
q2’ = q3 l + q4 m
Fig. 5.29 Direction Cosines
l2 lm l 2lm
A E lm m2 lm m 2
[K ] e e 2
Le l lm l2 lm
lm m
2
lm m2
Ee
l m l m q
le
Thermal Effect In Truss Member
l
m
(1) Thermal Load , P = Ae Ee e
l
m
Ee
(2) Stress for an element, l m l m q Ee t
le
(3) Remaining steps will be same as earlier.
Example 5.6: A two member truss is as shown in Fig. 5.30. The cross-sectional area of each
member is 200 mm2 and the modulus of elasticity is 200 GPa. Determine the deflections,
reactions and stresses in each of the members.
Fig. 5.30
In global terms, each node would have 2 dof. These dof are marked as shown in Fig.5.31. The
position of the nodes, with respect to origin (considered at node l) are as tabulated below:
Node Xi Yi
1 0 0
2 4000 0
3 0 3000
Fig.5.31
For all elements, A=200 mm2
and E= 200 x 103 N/mm2
The element connectivity table with the relevant terms are:
Ae Ee x j xi y j yi
Element Ni Nj le ( x j xi ) 2 ( y j yi ) 2 l m l2 m2 lm
le le le
4000 0
(4000 0) 2 (0 0) 2 00
(1) 1 2 10000 4000 0 1 0 0
4000 1
4000
4000
(0 4000) 2 (3000 0) 2 3000
(2) 2 3 8000 5000 0.6 0.64 0.36 -0.48
5000 0.8
5000
As each node has two dof in global form, for every element, the element stiffness matrix
would be in a 4 x 4 form. For element 1 defined by nodes l-2,the dof are Q1, Q2, Q3 andQ4
and that for element 2 defined by nodes 2-3, would be Q3, Q4, Q5 andQ6. For a truss element
l2 lm l 2lm
A E lm m2 lm m 2
[ K ]e e e 2
Le l lm l2 lm
lm m
2
lm m2
In this case, node 1 and node 3 are completely fixed and hence,
Q1=Q2=Q5 = Q6 = 0
Hence, rows and columns 1,2,5 and 6 can be eliminated
Also the external nodal forces,
F1 = F2 = F3 = F5 = F6 = 0
F4 = -10 x 103 N
- 3.84 Q3 + 2.88 Q4 = - l0
- 3.84 (0.254 Q4) + 2.88 Q4 = -10
Q4 = -5.25mm
Q3 = -1.334mm
The reactions can be found by using the equation:
R = KQ –F
Element 2:
Example 5.7: Consider the four-bar truss shown in Fig. 5.32(a). It is given that E = 29.5 x
106 psi and Ae = lin.2 for all elements. Complete the following:
(a) Determine the element stiffness matrix for each element.
(b) Assemble the structural stiffness matrix K for the entire truss
(c) Using the elimination approach, solve for the nodal displacement.
(d) Recover the stresses in each element.
(e) Calculate the reaction forces.
(a)
(b)
Fig. 5.32
(a) It is recommended that a tabular form be used for representing nodal coordinate data
and element information. The nodal coordinate data are as follows:
Node x y
1 0 0
2 40 0
3 40 30
4 0 30
The global dofs associated with element 1, which is connected between nodes 1 and2, are
indicated in k1 earlier. These global dofs are shown in Fig. 5.32(a) and assist in assembling
the various element stiffness matrices. The element stiffness matrices of elements 2,3and 4
are as follows:
(b) The structural stiffness matrix K is now assembled from the element stiffness
matrices. By adding the element stiffness contributions, noting the element
connectivity, we get
(c) The structural stiffness matrix K given above needs to be modified to account for the
boundary conditions. The elimination approach will be used here. The rows and
columns corresponding to dofs 1, 2, 4, 7, and 8, which correspond to fixed supports,
are deleted from the K matrix. The reduced finite element equations are given as
The nodal displacement vector for the entire structure can therefore be written as
Q =[0, 0,27.12x 10-3, 0,5.65 x 10-3, -22.25 x 10-3,0, 0]T in.
(d) The stress in each element can now be determined as shown below.
The connectivity of element 1 is 1 - 2. Consequently, the nodal displacement vector
for element l is given by q = [0,0, 27.72 x 10-3,0]T
Which results in
The application of this principle can be made in a spring or elastic system subjected to
the loading conditions.
Consider a system of four springs as shown in Fig. 5.33subjected to the deflections
under the application of force. This system has three nodal points.
Fig. 5.33
Consider,a system of four spring having the nodes at point 1, 2, 3.
The potential energy P of the system is
1 1 1 1
P k112 k2 2 2 k3 32 k4 4 2 F1 x1 F3 x3
2 2 2 2
Where,
δ1, δ2, δ3, δ4 = deflections of the four springs
x1, x2, x3 = displacement at nodal points 1, 2, 3
F1, F3 = forces at nodal points 1 and 3
k1, k2, k3, k4 = stiffnesses of four springs
δ1 = x1– x2
δ2 = x2
δ3 = x3– x2
δ4 = – x3
Potential energy of the system (P) is given by
1 1 1 1
P k1 ( x1 x2 ) 2 k 2 x2 2 k3 ( x3 x2 ) 2 k 4 x32 F1 x1 F3 x3
2 2 2 2
For equilibrium of this three degrees of freedom system, we need to minimize (P) with
respect to x1, x2 and x3.
According to principle of minimum potential energy, the potential energy is differentiated
with respect to each displacement and equated to zero for minimum condition of potential
energy.
…….(4)
The x1, x2, x3deflectionscanbeobtainedbyusing numerical methods.
On the other hand, we proceed to write the equilibrium equations of the system by
considering the equilibrium of each separate node as shown in Fig. 5.34.
k1δ1 = F1
k2δ2 – k1δ1 – k3δ3 = 0
k3δ3 – k4δ4 = F3
which is precisely the set of equations represented in Eq. (4).
Fig. 5.34.
We see clearly that the set of equations (4) is obtained in a routine manner using the potential
energy approach, without any reference to the free-body diagrams. This makes the potential
energy approach attractive for large and complex problems.
Example 5.8: Calculate the deflections of the points at node 1, 2 and 3 for the spring system
shown in Fig. 5.33. The stiffnesses are k1 = 80 N/mm, k2= 50 N/mm, k3=60 N/mm, k4 = 40
N/mm, the loads are F1= 40 N, F3 = 60 N.
Find the deflections x1, x2 and x3.
The model of the above system is used and stiffness, deflection and load matrix can be
written as
Solving the above matrices, the value of x1= 0.4 mm, x2= 0.1 mm, x3= 0.66 mm.
Example 5.9: Fig. 5.35 shows a cluster of four springs. One end of the assembly is fixed and
a force of 1000 N is applied at the end. Using the finite element method, determine:
(a) The deflection of each spring.
(b) The reaction forces at support.
Fig. 5.35
The system of springs can be represented by a finite element model as shown in Fig. 5.36
Fig. 5.36
The element connectivity table is as shown:
In global terms,
By elimination approach:
22 Q2 – 10 Q3 = 0
Q2 = 0.4545 Q3
– 10 Q2 + 30 Q3 = 1000
– 10 (0.4545 Q3) + 30 Q3 = 1000
Q3 = 39.286 mm
Q2 = 0.4545 x 39.286 = 17.857 mm
To determine the reaction forces,
R = KQ – F
Fig.5.37
Consider a element (e), having node numbers 1 & 2 shown in Fig. 5.37 (a). The first node
1 would be at a distance x1 and second node would be at a distance x2 from the reference.
A convenient coordinate system called as the natural coordinate system is defined, as it
helps in formulating individual element matrix which can than be used to combine and
form a global stiffness matrix.
In natural coordinate system, the centre of the element is considered as 0 and the node 1
and node 2 are placed at a distance - 1 and + 1 respectively Fig. 5.37(b). The variable of
measurement of the distance in this case is represented as ξ. Thus node 1 is at coordinate
position ξ = - 1 and node 2 is at ξ = + 1. Total length of the element would thus be 2 units
and this length of the element is covered in the range ξ = - 1 to +1.
To establish relationship between two coordinate system consider any point P situated at a
distance x, in the Global coordinate system Fig.5.37 (a) and correspondingly at a distance
ξ from the origin as shown in Fig.5.37 (b).
Now
Length of element in Natural system Dist. of Po int P from Node 1 in Natural system
Length of element in Global system Dist. of Po int P from Node 1 in Global system
2 1
x 2 x1 x x1
2 x x1
1 _______(a)
x 2 x1
Confirm the validity of equation (a)
2 x1 x1
At x = x1 ξ = 1 = 0 1 = 1
x 2 x1
2 x 2 x1
At x x 2 1 2 1 1
x 2 x1
This confirm the relation of the two coordinate system.
5.15 Shape function in Natural Coordinate System:
The natural coordinate can be used to define shape functions. This makes it convenient to
isolate the element from the continuum and develop the necessary element stiffness
matrix. The shape function as defined earlier is used to interpolate the deflections or
degree of freedom within the element. The accuracy of calculations would increase with
increase in number of elements. Consider linear distribution as represented by Fig.5.38.
Fig.5.38
The shape function N1 and N2 in natural coordinate term can be developed by considering
Fig.5.39 (a) and Fig.5.39 (b).
Fig.5.39
1
m slope
y mx C 2
For N1 1 , 1
1
N1 C
2
1 1
1 (1) C C
2 2
1 1
N1
2 2
1
N1
2
1
m slope
y mx C 2
For N2 0 , 1
1
N2 C
2
1
0 (1) C
2
1
C
2
1 1
N2
2 2
1
N2
2
Once the shape functions are defined, the linear displacement field within the element can
be written in terms of nodal displacements q1 and q2 as….
u N1 q1 N 2 q 2 ........ (b)
Fig.5.40
u Nq
where N N1 , N 2
q1
q q1 , q 2 T
q 2
The term q is referred to as element displacement vector, and the verification of equation
(b) can be done by considering the equation of shape functions.
At Node 1: 1
1 1 (1)
N1 1
2 2
1 1 (1)
N2 0
2 2
u N1 q1 N 2 q 2
1 (q1 ) 0 (q 2 )
q1
At Node 2: 1
1 11
N1 0
2 2
1 11
N2 1
2 2
So displacement at Node 2 will be
u N 2 q 2 N1 q1
1 (q 2 ) 0 (q1 )
q2
Thus it is seen that as per equation, the displacement at Node 1 and 2 are q1 and q2 which
are the expected results.
2 x x1
We know equation 1
x 2 x1
1 x x1
2 x 2 x1
1
x x 2 x1 x1
2
1 1
x2 x1 x1
2 2
1 1
x x2 1 x1
2 2
1 1 1 1
x2 x1 N2 , N1
2 2 2 2
x N1 x1 N 2 x 2
x N1 x1 N 2 x 2
u N1 q1 N 2 q 2
Comparing equation, it is seen that both, the displacement u and the coordinate x can be
interpolated within the element using the same shape function N1 and N2. This is referred
to as the “Isoparametric Formulation”.
Example – 5.10: Temp. at Node 1 is 100° C and Node 2 is 40° C. The length of the element
is 200 mm. Evaluate the shape function associated with Node 1 and Node 2. Calculate the
temp. at point P situated at 150 mm from Node 1. Assume a linear shape function.
Fig. 5.41
Solution:
At Node 1:
x1 0
x 2 200 mm
x 0
2 x x1
1 1
x 2 x1
1
N1 1
2
1
N2 0
2
At Node 2:
x1 0
x 2 200 mm
x 200 mm
2 x x1 2 200 0
1 1 1
x 2 x1 200 0
1
N1 0
2
1
N2 1
2
At Point P:
x1 0 t1 100 C
x 2 200 mm t 2 40 C
x 150 mm
2 x x1 2 150 0
1 1 0.5
x 2 x1 200 0
1 1 0.5
N1 0.25
2 2
1 1 0.5
N2 0.75
2 2
t N1 t1 N 2 t 2
0.25 100 0.75 40
t 55 C
Example – 5.11 : A 1D spar element having a linear shape function as shown in fig. If the
temp.at Node 1 is 50° C and Node 2 is -20°C. Find the temp. at point P.
Fig. 5.42
Solution:
At Point P:
x1 25 t1 50 C
x 2 50 t 2 20 C
x 30
Let
2 x x1 2 30 25
1 1 0.6
x 2 x1 50 25
Now
1 1 0.6
N1 0.8
2 2
1 1 0.6
N2 0.2
2 2
t N1 t1 N 2 t 2
0.8 50 0.2 20
t 30 C
Example – 5.12: Consider an element having a linear shape function shown in fig. Evaluate
the natural coordinate and shape functions for point P. If the displacement at Node 1 and
Node 2 are 2 mm and -1 mm respectively, determine the value of displacement at point P.
Also determine in global terms the point where the displacement would be zero. Also
determine the shape function at zero displacement point.
Fig. 5.43
Solution:
At point P:
x1 180 mm q1 2 mm
x 2 360 mm q 2 1 mm
x 220 mm
Let
2 x x1 2 220 180
1 1 0.556
x 2 x1 360 180
1 1 0.556
N1 0.778
2 2
1 1 0.556
N2 0.222
2 2
Let
u N1 q1 N 2 q 2
0.778 2 0.222 1
u 1.334 mm
Let
u N1 q1 N 2 q 2
0 N1 2 N 2 1
2 N1 N 2
1 1
2
2 2
2 2 1
1
0.333
3
Let
2 x x1
1
x 2 x1
2 x 180
0.333 1
360 180
x 300 mm
1 1 0.333
N1 0.333
2 2
N 2 2 N1 2 (0.333) 0.667
Fig. 5.44
Solution:
x i 10
x j 60
1
x 40
2
i 120 C
j 80 C
Let
2 x x1
1
x 2 x1
2 40 10
1
60 10
0.2
1 1 0.2
N1 0.4
2 2
1 1 0.2
N2 0.6
2 2
Let
N1 i N 2 j
0.4 120 0.6 80
96 C
References:
Finite Element Method – S.S. Rao
Introduction to Finite Elements in Engineering - Tirupathi R. Chandrupatla
CAD/CAM & Automation – Farazdak Haideri
CAD/CAM – Khandare
Course Contents
6.1 Definition
6.2 Conventional versus
Optimum Design Process
6.3 Engineering Applications
of Optimization
6.4 Statement of an
Optimization Problem
6.5 Terms used in
Optimization
6.6 Classification of
Optimization Problem
6.7 Optimum Design with
Lagrange Multipliers
6.8 Johnson’s Method of
Optimum Design
6.1 Definition
− Optimization is the act of obtaining the best result under given circumstances.
− In design, construction, and maintenance of any engineering system, engineers have
to take many technological and managerial decisions at several stages. The ultimate
goal of all such decisions is either to minimize the effort required or to maximize the
desired benefit.
− Optimization can be defined as the process of finding the conditions that give the
maximum or minimum value of a function.
1. The optimum design method has block 0, where the problem is formulated as one of
optimization. An objective function is defined that measures the merits of different
designs.
2. Both methods require data to describe the system in block 1.
3. Both methods require an initial design estimate in block 2.
4. Both methods require analysis of the system in block 3.
5. In block 4, the conventional design method checks to ensure that the performance
criteria are met, whereas the optimum design method checks for satisfaction of all of
the constraints for the problem formulated in block 0.
6. In block 5, stopping criteria for the two methods are checked, and the iteration is
stopped if the specified stopping criteria are met.
7. In block 6, the conventional design method updates the design based on the designer’s
experience and intuition and other information gathered from one or more trial
designs; the optimum design method uses optimization concepts and procedures to
update the current design.
Fig. 6.2 Comparison of (a) conventional design method and (b) optimum design method.
− The foregoing distinction between the two design approaches indicates that the
conventional design process is less formal. An objective function that measures a
design’s merit is not identified. Trend information is usually not calculated; nor is it
used in block 6 to make design decisions for system improvement. In contrast, the
optimization process is more formal, using trend information to make design changes.
x1
x
Find X = 2 which minimizes f(X)
:
xn
Subject to the constraints
gj (X) ≤ 0, j = 1, 2,….., m
lj (X) ≤ 0, j = 1, 2,….., p (6.1)
where X is an n-dimensional vector called the design vector,
f (X) is termed the objective function, and
gj (X) and lj (X) are known as inequality and equality constraints, respectively.
The problem stated in Eq. (6.1) is called a constrained optimization problem.
Some optimization problems do not involve any constraints and can be stated as
x1
x
Find X = 2 which minimizes f(X)
:
xn
Such problems are called unconstrained optimization problems.
and N2. Since these constraints depend on the performance of the gear pair, they are
called behavior constraints.
− The values of T1 and T2 cannot be any real numbers but can only be integers. Further,
there can be upper and lower bounds on T1 and T2 due to manufacturing limitations.
Since these constraints depend on the physical limitations, they are called side
constraints.
IV. Constraint Surface
− For illustration, consider an optimization problem with only inequality constraints gj
(X) ≤ 0. The set of values of X that satisfy the equation gj (X) = 0 forms a
hypersurface in the design space and is called a constraint surface.
− The constraint surface divides the design space into two regions:
− one in which gj (X) < 0 and the other in which gj(X)>0.
− Thus the points lying on the hypersurface will satisfy the constraint gj (X) critically,
whereas the points lying in the region where gj (X)>0 are infeasible or unacceptable,
and the points lying in the region where gj (X) < 0 are feasible or acceptable. The
collection of all the constraint surfaces gj (X) = 0, j = 1, 2, . . . ,m, which separates the
acceptable region is called the composite constraint surface.
− Here the design variables are functions of the length parameter t. This type of
problem, where each design variable is a function of one or more parameters, is
known as a trajectory or dynamic optimization problem.
n
Subject to g j ( X ) = ∑ g ij ( xi ) ≤ b j , j = 1, 2,……., m
i =1
Where bj is a constant
(h) Classification Based on the Number of Objective Functions
Depending on the number of objective functions to be minimized, optimization problems can
be classified as single and multiobjective programming problems.
Multiobjective Programming Problem. A multiobjective programming problem can be stated
as follows:
Find X which minimizes f1(X), f2(X), . . . ,fk(X)
subject to
gj (X) ≤ 0, j = 1, 2, . . . ,m
wheref1, f2, . . . , fk denote the objective functions to be minimized simultaneously.
Example 6.1:
Design a uniform column of tubular section, with hinge joints at both ends, (Fig. 6.4) to carry
a compressive load P = 2500 kgf for minimum cost. The column is made up of a material that
has a yield stress (σy) of 500 kgf/cm2, modulus of elasticity (E) of 0.85 × 106kgf/cm2, and
weight density (ρ) of 0.0025 kgf/cm3.The length of the column is 250 cm. The stress induced
in the column should be less than the buckling stress as well as the yield stress. The mean
diameter of the column is restricted to lie between 2 and 14 cm, and columns with
thicknesses outside the range 0.2 to 0.8 cm are not available in the market. The cost of the
column includes material and construction costs and can be taken as 5W + 2d, where W is the
weight in kilograms force and d is the mean diameter of the column in centimeters.
The design variables are the mean diameter (d) and tube thickness (t):
x d
X = 1=
x2 t
The objective function to be minimized is given by
f (X) = 5W + 2d
= 5 (ρv) +2d
= 5 (ρAl) + 2d
= 5 (ρlπdt) + 2d
= 9.82x1x2 + 2x1
The behavior constraints can be expressed as
stress induced ≤ yield stress
stress induced ≤ buckling stress
The induced stress is given by
Since there are only two design variables, the problem can be solved graphically as shown
below.
First, the constraint surfaces are to be plotted in a two-dimensional design space where the
two axes represent the two design variables x1 and x2. To plot the first constraint surface, we
have
These points are plotted and a curve P1Q1 passing through all these points is drawn as shown
in Fig. 6.7, and the infeasible region, represented by g1(X)>0 or x1x2< 1.593,is shown by
hatched lines. Similarly, the second constraint g2(X) ≤ 0 can be expressed as x1x2(x12+ x22 ) ≥
47.3 and the points lying on the constraint surface g2(X) = 0 can be obtained as follows for
x1x2(x12+ x22 ) = 47.3:
These points are plotted as curve P2Q2, the feasible region is identified, and the infeasible
region is shown by hatched lines as in Fig. 6.7. The plotting of side constraints is very simple
since they represent straight lines. After plotting all the six constraints, the feasible region can
be seen to be given by the bounded area ABCDEA.
For 9.82 x1 x2 + 2 x1 = 50
x2 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
x1 16.77 12.62 10.10 8.44 7.24 6.33 5.64 5.07
For 9.82 x1 x2 + 2 x1 = 40
x2 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
x1 13.40 10.10 8.08 6.75 5.79 5.06 4.51 4.05
For 9.82 x1 x2 + 2 x1 = 20
x2 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
x1 6.70 5.05 4.04 3.38 2.90 2.53 2.26 2.02
These contours are shown in Fig. 6.7 and it can be seen that the objective function cannot be
reduced below a value of 26.53 (corresponding to point B) without violating some of the
constraints.
Thus the optimum solution is given by point B with
d* = x1* = 5.44 cm
t* = x2* = 0.293 cm
fmin = 26.53.
Example 6.2:It is required to design an oil can, shown in Figure 6.8, to hold at least 400 ml
of oil (1 ml = 1 cm3), as well as to meet other design requirements. The cans will be produced
in the billions, so it is desirable to minimize their manufacturing costs. Since cost can be
directly related to the surface area of the sheet metal used, it is reasonable to minimize the
amount of sheet metal required. Fabrication, handling, aesthetics, and shipping considerations
impose the following restrictions on the size of the can: The diameter should be no more than
8 cm and no less than3.5 cm, whereas the height should be no more than 18 cm and no less
than 8 cm.
The two design variables are defined as
D = diameter of the can, cm
H = height of the can, cm
x D
Design vector X = 1 =
x2 H
The objective function is minimization of cost of manufacturing of can
π
f ( x) = π DH + 2 D2
4
f ( x) = 3.14( x1 x2 + 0.5 x12 ) …………………….. (1)
Fig. 6.8 Can
Side constraints
8 ≥ D ≥ 3.5 cm
18 ≥ H ≥ 8 cm ……………………………….. (2)
Behavior constraints
V ≥ 400 ml (or cm3)
π
D 2 H ≥ 400 cm3
4
x12 x2 ≥ 509.3 …………………………………(3)
g(x) = x12 x2 ≥ 509.3
Get the solution from (2), (1) and (a)
x1 3.5 4.5 6 7 8
x2 41.57 25.15 14.14 10.39 8
f(x) 476.08 387.16 323.05 305.37 301.44
At x1 = 8 and x2 = 8 objective function is minimize and also satisfy the side constraints so,
D = 8 cm, H = 8 cm.
To plot the graph and to find feasible region with optimum solution, find x2 for various f(x)
by varying x1.
Let f ( x) = 3.14( x1 x2 + 0.5 x12 ) = 200
x1 1 2 3 4 5 6 7 8
x2 63.19 30.84 19.73 14 10.24 7.61 5.6 3.96
x1 1 2 3 4 5 6 7 8
x2 95.04 46.71 30.39 21.88 16.6 12.92 10.15 7.94
From the graph BCE is Feasible Region. Point B shows optimum solution which gives
minimum surface area and minimum cost.
D = x1 = 8 cm
H = x2 = 8 cm
f(x) = 301.44
Example 6.3: A company manufactures two machines, A and B. Using available resources;
either 28 A or 14 B can be manufactured daily. The sales department can sell up to 14 A
machines or 24 B machines. The shipping facility can handle no more than 16 machines per
day. The company makes a profit of $400 on each A machine and $600 on each B machine.
How many A and B machines should the company manufacture every day to maximize its
profit?
Design variable
The following two design variables are identified in the problem statement:
xl = number of A machines manufactured each day
x2 = number of B machines manufactured each day
Objective function
The objective is to maximize daily profit, which can be expressed in terms of design variables
as f(x) = 400x1+ 600x2
Identification of constraints:
Design constraints are placed on manufacturing capacity, on sales personnel, and on the
shipping and handling facility.
The constraint on the shipping and handling facility is quite straightforward:
x1+ x2 ≤ 16 (shipping and handling constraint) – Behaviour constraint.
x1 x2
+ ≤ 1 (Manufacturing constraint) – Behaviour constraint.
28 14
x1 x2
+ ≤ 1(Sales Dept. limitations) – Behaviour constraint.
14 24
Finally, the design variables must be non-negative asx1, x2 ≥ 0 – Side constraint.
[Here the formulation remains valid even when a design variable has zero value. The problem
has two design variables and five inequality constraints. All functions of the problem are
linear in variables xl and x2. Therefore, it is a linear programming problem.]
Graphical Solution:
x1+ x2 ≤ 16 → g1
x1 0 16
x2 16 0
Fig. 6.10 Constraint boundary and Feasible/infeasible sidefor the inequality x1+ x2 ≤ 16 in the
profit maximization problem.
x1 x2
+ ≤ 1 → g2
28 14
x1 0 28 2 14
x2 14 0 13 7
Fig. 6.11Feasible region and Graphical solution tothe profit maximization problem
x1 x2
+ ≤1 → g3
14 24
x1 0 14
x2 24 0
x1 ≥ 0 → g4
x2 ≥ 0 → g5
Get the optimum function solution (To locate the optimum point)
f(x) = 400x1+ 600x2 Let at (6,4)
= 400 x 6+ 600 x 4
= 4800
f(x) = 400x1+ 600x2= 2400
f(x) = 400x1+ 600x2= 7200
As the contours move up toward point D, feasible designs can be found with larger values for
f(x). It is clear from observation that point D has the largest value for f(x) in the feasible
region. Now simply read the coordinates of point D (4, 12) to obtain the optimum design,
having a maximum value for the profit function as
f(x) = 400x1+ 600x2= 8800.
Example 6.4: A manufacturing firm produces two machine parts using lathes, milling
machines and grinding machines. The different machining times required for each part, the
machining time available on different machines and the profit on each machine part are given
in the following table.
Machining Time required ( in min) Maximum time
Type of Machine available per week
I (x) II (y)
(minutes)
Lathe 10 5 2500
Milling machine 4 10 2000
Grinding machine 1 1.5 450
Profit per unit Rs. 50 Rs. 100
Determine the number of parts I and II to be manufactured per week to maximize the profit.
Coordinates of point M :
Point M can be obtained as intersection of lines,
A B A B
+ =1 + =1
250 500 500 200
500 A + 250 B = 125000 and 200 A + 500 B = 100000
5 A + 2.5 B 1250 and 2 A + 5 B = 1000
10 A + 5 B = 2500
+ 2 A + 5B = + 1000
8 A = 1500
A =187.5
B = 125
Objective function curve through M :
For objective function curve through M (187.5, 125),
f(X) = P = 50A+ 1008
= 50 x 187.5 + 100 x 125
= 21875
Equation of objective function curve (line) through M is,
50 A + 100 B = 21875
50 A + 100 B
=1
21875
A B
+ =1
437.5 218.75
Optimum solution:
As P = f(X) is maximum at point M, the optimum solution is given by point M with,
A = 187.5 ≈ 187 (As A has to be an integer)
and B = I25
P = f(X) = 50 A + 100 B
= 50 x 187 + 100 x 125
= 21850
Number of parts I, A = 187
Number of parts II, B = 125
Profit, P = Rs.21850
Example 6.5: A heat exchanger is to be designed for minimum cost. The design
requirement indicated that 300 m of tube length in all be installed for achieving necessary
heat transfer surface.
The total cost of installation has been approximated as:
1) Total cost of tubes = Rs.24500
2) Cost of shell = Rs.875D2.5L
where D = shell diameter and
L = length of each tube ≈ Length of heat exchanger
3) Cost of floor space occupied by the heat exchanger = 700 D L.
The spacing of the tubes is such that 20 tubes can be accommodated in cross sectional area of
l m2insidetheshell.Determine the diameter D and length L of the heat exchanger to minimize
costs.
Example 6.6: Find the solution using the Lagrange multiplier method:
Minimize f (x, y) = kx−1y−2
(x, y) = x2 + y2 − a2 = 0
Subject to g(x,
Example 6.7: Find the dimensions of a cylindrical tin (with top and bottom) made up of
sheet metal to maximize its volume such that the total surface area is equal toA0 = 24π.
If x1 and x2 denote the radius of the base and length of the tin, respectively, the problem can
be stated as
Maximize f (x1, x2) = πx12x2
equation for an airplane shaft may be the one which expresses its weight, which is an
undesirable effect and needs to be minimized.
(b) Subsidiary Design Equations (SDE)
In a mechanical element, design equations other than PDE are called Subsidiary Design
Equations (SDE). SDE express either functional requirements or significant undesirable
effects, whether they are directly specified or indirectly implied. The most important SDE are
the stress equations, which are generally implied.
(c) Limit Equations or Constraints (LE)
As mentioned previously, various parameters have certain ranges which are expressed in
mathematically simple limit equations. For example, the limitations in stress are imposed by
the strength of the material. Limitations on geometry are imposed by certain functional
requirement or space constraints.
Example 6.8: Design a tensile bar of length L = 200 mm to carry a tensile load of 5 kN
forminimum cost, out of the following materials:
cρ
Material MSF =
Sy
16 × 7500
Steel = 923.077
130
32 × 3000
AL-alloy = 1920
50
480 × 4800
Titanium Alloy = 25600
90
32 × 2100
Magnesium Alloy = 3360
20
It is seen that steel has the lowest MSF and hence should be used to cost for achieve
optimization in cost for given conditions
Assuming F.S. = 2, the free variable A (area) can be calculated by using SDE i.e.
Example 6.9: In a light weight equipment, a shaft is transmitting a torque of 900 Nm and is
to have a rigidity of 90 Nm/degree. Assume a factor of safety of 1.5 based on yield stress.
Design the shaft with minimum weight. What will be the change in design for minimum cost?
Assume maximum shear stress theory of failure. Use the following data for the materials:-
(1) PDE:
W = ρ x L x g x d2 x π/4
MT, F.S. and K aree specified functional requirements. Hence, the minimum
imum MSF will mean
minimum weight.
Calculating from the data given
8500 × 80 ×109
Steel = 0.04024 0.6438
(130 ×106 )2
4800 × 40 ×109
Titanium Alloy = 0.02370 11.3760
(90 ×106 )2
Minimum MSF (0.02370) is for Titanium Alloy and hence it should be used to achieve,
minimum weight for given conditions.
From the table, it is seen that the minimum MSF (0.6438) is tor steel alloy which will result,
in minimum cost.
Example 6.10 : A simple tensile bar is subjected to the specified constant tensile force ‘F’.
Design the bar with the objective of minimizing the material cost using factor of safety ‘Nf’.
The following limitation is specified in the optimum design.
Lmin ≤ L ≤ Lmax
Fig. 6.14
Cm = material cost of the tensile bar, Rs.
c = cost per unit mass for the bar material, Rs /kg
ρ = mass density of the bar material, kg / m3
A = cross-sectional area of the bar, m2
……………(f)
• This is final P.D.E. In order to minimize ' Cm ', the material selection factor [c ρ / Syt ]
should be minimum.
7. Selection of material :
• The material selection factor [c ρ / Syt] is calculated for all the available material and
the material with the lowest value of [c ρ / Syt] is selected.
8. Determination of eliminated parameter :
• The eliminated parameter 'A' can be determined by using S.D.E. [Equation (b)].
Therefore, substituting the limiting value of σt Equation (b),
Example 6.11: A tensile bar of circular cross-section is subjected to the cyclic tensile force
which varies from zero to maximum. Design the bar with the objective of maximizing the
energy absorption capacity using the factor of safety 'Nf'. The following limitations are to be
used in the design due to space and assembly restrictions.
d ≤ dmax
Lmin ≤ L ≤ Lmax
Fig. 6.15
……………………(c)
The maximum tensile stress induced in the bar is given by,
…………………(d)
For the repeated stress, as shown in Fig. 6.16, the mean stress and the stress amplitude are
given by,
The Equations (h), (i) and (j) are the limit equations.
4. Classification of parameters :
Specified Limited Unspecified and
Unlimited
Functional Requirement Parameters Nf U, Fmax, δmax
Undesirable Effect Parameters σmax
Geometrical Parameters L,d A
Material Parameters c, ρ, Syt
………..(k)
Again S.D.E. (d) is combined with P.D.E. [Equation (k)] by eliminating the unspecified and
unlimited parameter Fmax Hence,
………..(l)
This is developed P.D.E. From Equation (l) it is seen that, the effects of all limit equations i.e.
Equations (h), (i) and (r) can be included in the developed P.D.E.
Therefore, this is the case of normal specifications.
6. Combining limit equations with P.D.E. :
The next step is to include the effects of all limit equations in the developed P.D.E.
U α σ2max, hence for maximizing 'U', the parameter σmax, should be placed at its upper limit
2 K .Sut .S yt
i.e.
N f K .Sut + S yt
U α d2, hence for maximizing 'U', the parameter d, should be placed at its upper limit i.e. dmax.
Again U α L, hence for maximizing 'U', the L, should be placed at its upper limit i.e. Lmax.
Substituting these limiting values, Equation (l) can be written as,
…………..(m)
This is final P.D.E. In order to maximize ‘U’, the material selection factor
1 K .S .S 2
ut yt
should be maximum.
E K .S + S yt
ut
7. Selection of material:
1 K .S .S
2
The material selection factor is calculated for all the available materials
ut yt
E K .Sut + S yt
1 K .S .S 2
and the material with the largest value of is selected.
ut yt
E K .Sut + S yt
8. Determination of eliminated parameters :
The eliminated parameters Fmax and δmax are determined by using S.D.E.’s i.e. Equations (c)
and (d).
Substituting limiting values of σmax and ‘d’ in Equation (d),
References :
− Engineering Optimization – S. S. Rao
− Introduction to Optimum Design – J. S. Arora
− Machine & CAD – Farzak Haideri