Unit 2
Unit 2
MEC302
Unit 2
P. Dinesh babu
Associate Professor
School of Mechanical Engineering
[email protected]
1
Unit - II
Geometric modelling – wire frame entities, wire frame modelling, parametric representation of Bezier,
cubic spline and B-spline curves, surface entities, surface modelling, solid modelling – geometry and
topology, solid entities, boundary representation (B-Rep), constructive solid geometry (CSG).
CAD/CAM data exchange -types of translators, IGES, PDES, DXF, virtual reality modelling language
(VRML). Introduction to finite element modelling – finite element procedure, types and techniques of
simulation in manufacturing.
2
GEOMETRIC MODELING
✓ Computer representation of the geometry of a component using software is called a geometric model.
✓ Geometric modeling is done in three principal ways. They are:
❑ Wire frame modeling
❑ Surface modeling
❑ Solid modeling
✓ The user construct geometric model by inputting the object data via
the user interface provided by the software.
✓ CAD/CAM systems have adequate geometric and visualization
attributes.
✓ Based on these attributes, they are utilized in applications such as
mass property calculations mechanical analysis, finite element
modeling, NC.
3
GEOMETRIC MODELING
4
WIRE FRAME MODELING
✓ The word wireframe is related to the fact that one may imagine a wire that is bent to follow the
✓ A wire frame model consists of points, lines, arcs and circles, conics and curves.
✓ Early wireframe modeling techniques developed in the 1960s were two dimensional and were
5
WIRE FRAME MODELING
6
WIREFRAME ENTITIES
Wire frame entities can be divided into analytic and synthetic entities
Analytic entities are :
Points, Lines, Arcs, Circles, fillets, and chamfers, and conics.
Synthetic entities are:
Splines (cubic spline, B-spline), Bezier curves.
Method of defining points:
7
WIREFRAME ENTITIES
8
WIREFRAME ENTITIES
9
ADVANTAGES AND DISADVANTAGES
Advantages
✓ Simple to construct.
✓ Does not require as much computer time and memory as does surface and solid modeling.
✓ Surface algorithms require wireframe entities to generate surfaces.
Disadvantages
✓ Unambiguous representation of real objects.
✓ Complex design having many edges become very confusing.
✓ Lack of information to determine the object profile.
✓ Both topological and geometrical data are needed to construct wireframe models while solids
require only geometrical data.
✓ Volume, mass properties, NC tool path generation, cross sectioning are not possible.
10
REPRESENTATION OF CURVES
11
SYNTHETIC CURVES
As the name implies these are artificial curves
❑ Bezier
❑ B-Spline
❑ NURBS etc.
✓ Analytic curves are usually not sufficient to meet geometric design requirements of mechanical parts.
12
REPRESENTATION OF CURVES
Generic form
✓ The generic form in which any generic point (x, y, z) satisfies a relationship in implicit form in x,
y, and z i.e.
f (x, y, z) = 0
g (x, y, z) = 0
✓ For a given value of x, these equations when solved will give the other coordinates on the curve.
✓ The implicit form is convenient for two-dimensional curves of first and second order.
✓ For higher orders, the solution is lengthy and inconvenient.
✓ It is difficult to handle during computer programming because of its lengthy nature, and requires
a lot of computational time for display purpose.
✓ Typical curves that can be covered are lines, arcs and circles.
13
REPRESENTATION OF CURVES
Parametric form
✓ A parametric curve is one whose defining equations are in terms of a simple, common independent
variable known as parametric variable.
✓ In the parametric form, the representation is done by a set of functions.
✓ A curve may be represented by
x = x (u)
y = y (u)
z = z (u)
✓ where x, y, z are co-ordinates of the points on the curve which are functions of some parameter u
and the parametric variable is constrained in the interval.
14
REPRESENTATION OF CURVES
Parametric design is very popular in computer aided design for a variety of reasons, which are
listed below:
❑ Separation of variables
❑ Each variable is treated alike
❑ More degrees of freedom/control
❑ Parametric equations can be transformed directly
❑ Infinite slopes can be handled without computational breakdown
❑ Easy to express as vectors
❑ Amenable to plotting and digitizing
❑ Inherently bounded
15
DESIGN OF CURVED SHAPES
✓ A component can be designed using the curves and shapes which can be mathematically
described e.g. arc, circle, conics, ellipsoid, hyperbolic paraboloid, sphere, and cone, cylinder,
linear, conical - and circular swept surfaces etc.
✓ However very often the designer starts with specifying a few points which roughly describe the
shape.
16
Interpolation and Approximation of Synthetic Curves
✓ Two approaches are available to designers to model curves and surfaces in such cases:
Interpolation and approximation.
✓ The interpolation essentially tries to pass a curve on a surface called interpolant through all these
points.
✓ Approximation tries to fit a smoother curve on surface which may be close to these points but may
not actually pass through each of them.
17
Properties of Curves
I. Control Points
V. Versatility
18
Properties of Curves
➢ Control Points:
Locate points through which the curve must pass or points that control the curve shape.
➢ Axis independence:
The shape of an object must not change when the control points are measured in a
different coordinate system.
19
Properties of Curves
20
Properties of Curves
❖ The number of intersections of a line/plane with the curve is less or equal to the number
of intersections with its control polygon.
21
Properties of Curves
➢ Versatility:
❖ A curve representation that allows a limited variety of shapes may frustrate a
designer.
❖ The control of a curve representation, often by adding or removing control
points.
22
Properties of Curves
➢ Order of continuity:
❖A complex shape is usually not modeled by a single curve, but by several curves
pieced together end to end.
❖When creating joints, the designer often wants to control the order of continuity at
the joint.
23
Order of Continuity – C0 continuity
➢ Zero order continuity (C0) yields a position continuous curve (same end point).
2
1
3
24
Order of Continuity – C1 continuity
Continuous
tangent
Curvature Continuity
Both curves have the same second derivative value at the connection point.
1
2
Continuous
curvature
✓ Cubic splines are the more general form of curves that can be
✓ Splines are functions that are used for fitting a curve through a
27
CUBIC SPLINES
28
CUBIC SPLINES
29
Parametric representation of CUBIC SPLINE
C=coefficient of vector
30
Parametric representation of CUBIC SPLINE
31
Parametric representation of CUBIC SPLINE
P0, P1, P’0 and P’1 are called geometric coefficients. Tangent Vector becomes
32
Parametric representation of CUBIC SPLINE
The same equation can be written in the compact form as follows: p(u) = {U} [M] [P]
33
CUBIC SPLINE
➢ The use of the cubic splines in design applications is not popular compared to Bezier or B-spline curves.
➢ The control of the curve is not very obvious from the input data due to its global control characteristics.
➢ The curve’s shape can be controlled by changing its endpoints or its tangent vectors.
➢ If the two end points are fixed in space, the designer can control the shape of the spline by changing either
the magnitudes or the direction of the tangent vectors.
34
CUBIC SPLINE
P0’
P1
P0
P1’
Hermite curve set with same end points (P0 ve P1),
Tangent vectors P0’ and P1’ have the same directions but
P0’ have different magnitude P1’ is constant
35
CUBIC SPLINE
All tangent vector magnitudes are equal but the direction of left tangent vector changes.
36
CUBIC SPLINE Example
Example: Find the midpoint of a Hermite cubic spline with the two points as [1, 1], and [6, 5] and the
tangent vectors as [0, 4] and [4, 0].
Px (u=0.5) = 3
37
CUBIC SPLINE Example
Py (u=0.5) = 3.5
Mid point coordinates are = (3, 3.5)
38
BEZIER CURVES
✓ Bezier curves and surfaces are credited to P. Bezier of the French car firm Regie Renault who
developed (1962).
✓ The data points are used to control the shape of the resulting curves.
✓ Only the first and the last control points or vertices of the polygon actually lie on the curve.
✓ The other vertices define the order and shape of the curve.
39
BEZIER CURVES
Control polygon
40
BEZIER CURVES
41
BEZIER CURVES FOR VARIOUS CONTROL POINTS
42
BEZIER CURVES – Parametric Representation
Mathematically for n+1 control points, the Bezier curve is defined by the following polynomial of degree n:
✓ This polynomial, whose basis is called the power basis, is only one of an infinite number of bases
for the space of polynomials.
✓ The Bernstein basis, called Bernestein polynomials, has many useful properties.
✓ They are written as
43
BEZIER CURVES – Parametric Representation
44
BEZIER CURVES – Parametric Representation
Bézier chose Bernestein polynomials as the basis functions for the curves.
Based on these basis functions, the equation for the Bézier curve is given by
For n = 3, substituting
45
BEZIER CURVES – Parametric Representation
46
CHARACTERISTICS OF THE BEZIER CURVE
✓ The curve interpolates the first and last control points; that is, it passes through P0 and Pn.
✓ The curve is tangent to the first and last segments of the polygon.
✓ The curve is symmetric: the sequence of control points defining the curve can be reversed
✓ The curve shape can be modified by either changing one or more vertices of its polygon.
✓ A closed Bezier curve can simply be generated by closing its characteristics polygon.
✓ The curve lies entirely within the convex hull formed by four control points.
47
MODIFICATION IN CUBIC BEZIER CURVE
48
BEZIER CURVE - Order of Continuity
49
Convex Hull Property- CUBIC BEZIER CURVE
✓ A curve is said to have convex hull property if it is lies entirely within the
polyhedron.
polygon.
Some important properties of Bézier curves that are relevant for CAD applications are as follows:
❑ The Bézier curve passes through the first and last control points while it maintains proximity
❑ As such, the entire Bézier curve lies in the interior of the convex hull of the control points.
❑ Being polynomial functions, Bézier curves are easily computed, and infinitely differentiable.
❑ If the control points of the Bézier curve are transformed, the curve moves to the
51
BEZIER CURVES – Example Problem
Example: A cubic Bézier curve is defined by the control points as (20, 20), (60, 80), (120, 100), and
(150, 30). Find the equation of the curve and its midpoint.
52
BEZIER CURVES – Example Problem
Practice Problem : Fit a cubic Bézier curve for the following control points: (1, 3), (4, 5), (5, 7) and
(8,4). Calculate the points at u = 0.4 and 0.6.
53
BEZIER CURVES – Example Problem
Example: Construct the Bezier curve of order 3 and with 4 polygon vertices A (1,1), B (2,3), C (4,3) and D (6,4)
54
BEZIER CURVES – Example Problem
55
BEZIER CURVES – Example Problem
56
BEZIER CURVES- DISADVANTAGES
Bezier curve seems superior to a cubic spline curve, it still has some
disadvantages.
✓ The curve does not pass through the control points which may be
inconvenient to some designers.
✓ The curve lacks local control. It only has the global control nature.
✓ If one control point is changed, the whole curve changes. Therefore, the
designer cannot selectively change parts of the curve.
57
B – SPLINE CURVE
✓ B-splines are a powerful tool for generating curves with many control points and provide many
advantages over Bezier curves.
✓ Curve is defined by n+1 control points and the order (k) of the curve.
✓ A long, complicated curve can be specified in B-spline.
✓ The designer has much flexibility in adjusting the curvature of a B-spline curve.
✓ It can be designed with sharp bends and even corners.
✓ It can interpolate or approximate a set of given data points.
✓ B-splines have two advantages over Bézier splines:
(1) the degree of a B-spline polynomial can be set independently of the number of control
points (with certain limitations), and
(2) B-splines allow local control over the shape of a spline.
58
B – SPLINE CURVE
✓ One of the problems associated with the Bézier curves is with an increase in the number of
control points, the order of the polynomial representing the curve increases.
✓ To reduce this complexity, the curve is broken down into more segments with better control
exercised with individual segments, while maintaining a simple continuity between the segments.
✓ An alternative is to use a B-spline to generate a single piecewise parametric polynomial curve
through any number of control points with the degree of the polynomial selected by the designer.
✓ B-spline curves have the flexibility of choosing the degree of the curve irrespective of the number
of control points.
✓ With four control points, it is possible to get a cubic Bézier curve, while with a B-spline curve one
can get a linear, quadratic or cubic curve.
59
B – SPLINE CURVE
Similar to a Bézier curve, a B-spline also uses the basis (blending) functions and the equation is of
the form
60
Non Uniform B – SPLINE CURVE
61
THE CHARACTERISTICS OF B- SPLINE CURVE
✓ The local control of the curve can be achieved by changing the position of a control points, using
multiple control points by placing several points at the same location, or by choosing a different
degree.
✓ B-spline curve passes through the first and last control points P0 and Pn+1 and is tangent to the first
and last segments of the control polygon.
62
THE CHARACTERISTICS OF B- SPLINE CURVE
63
THE CHARACTERISTICS OF B- SPLINE CURVE
64
IDENTICAL B-SPLINE AND BEZIER CURVES
65
THE CHARACTERISTICS OF B- SPLINE CURVE
66
Matrix Formulation of B- SPLINE CURVE
A matrix formulation for a cubic periodic B-spline with four control points can then be written as
This matrix can be obtained by solving for the coefficients in a general cubic polynomial expression,
using the specified four boundary conditions.
67
Surface modelling
✓ A component is represented by its surfaces which in turn are represented by their vertices and edges or
boundaries.
✓ Surface modeling has been very popular in aerospace product design and automotive design.
✓ The boundary of a solid object may consist of surfaces which are bounded by straight lines and curves, either
single or in combination.
✓ Apart from standard surface types available for surface modeling (box, pyramid, wedge, dome, sphere, cone,
torus, dish and mesh) techniques are available for interactive modeling and editing of curved surface
geometry.
✓ Surfaces can be created through an assembly of polygonal meshes or using advanced curve and surface
modeling techniques
68
Classification of Surfaces
69
Surface modelling
70
Several ways to create a surface
✓ Revolving a straight line about an axis. Cylindrical, conical surfaces etc. can be generated by this technique.
✓ Analytic surfaces: Planes, cylinders, cones, ellipsoid, parabolic hyperboloid etc can be defined by
✓ Sculptured surfaces: These are also called free form surfaces. These are created by spline curves in one or
71
Modelling of Surface
72
Applications of surfaces
✓ Modeling of curves and surfaces is essential to describe objects that are encountered in several areas of
mechanical engineering design.
✓ Curves and surfaces are the basic building blocks in the following designs:
73
SURFACE ENTITIES
Plane Surface
✓ This is the simplest surface.
✓ The plane surface can be used to generate cross sectional views by intersecting a surface model
with it.
74
SURFACE ENTITIES
75
SURFACE ENTITIES
Surface of revolution
✓ This is an axisymmetric surface that can model axisymmetric objects.
✓ It is generated by rotating a planar wireframe entity in space about the axis of symmetry a certain
angle.
76
SURFACE ENTITIES
Tabulated Cylinder
✓ This is a surface generated by translating a planar curve a
certain distance along a specified direction (axis of the
cylinder)
✓ It is used to generate surfaces that have identical curved
cross sections.
77
SURFACE ENTITIES
Bezier Surface
✓ This is a surface that approximates given input data.
✓ Similar to Bezier curve, it does not pass through all given data
points.
✓ It is a synthetic surface that permits, twists and kinks.
✓ It allows only the global control of the surface.
78
SURFACE ENTITIES
B-spline surface
✓ It is a synthetic surface, can approximate or interpolate given input data.
79
SURFACE ENTITIES
Coons Patch
Coons patch is used to create surface using curves that form
closed boundaries.
Fillet surface
Surface that blends two surfaces together.
80
SURFACE ENTITIES
Offset surface
✓ Existing surface can be offset to create new ones identical in shape but may have different
dimensions.
81
REPRESENTATION OF SURFACES
82
REPRESENTATION OF SURFACES
✓ Surface can be defined as the locus of points which satisfy a constraint equation in the form of
F(X, Y, Z) = 0.
✓ In parametric form a surface may be represented as
x = X (u, v)
y = Y (u, v)
z = Z (u, v)
where X, Y and Z are suitable functions of two parameters u and v.
✓ For example, the parametric representation of the surface of a sphere whose centre is at the
origin of coordinates and of radius R is
x = X (θ, φ) = R sin φ cos θ
y = Y (θ, φ) = R sin φ sin θ
z = Z (θ, φ) = R cos φ
83
SURFACES OF KNOWN FORM
❖ Plane Surface
❖ Cylindrical Surface
❖ Conical Surface
❖ Spherical Surface
❖ Toroidal Surface
84
SURFACES OF KNOWN FORM
❖ Cylindrical surface (line swept along circle or circle swept along line)
85
SOLID MODELING
Solid Modeling (Volumetric modeling) techniques begun to develop in the late 1960s and early 1970s.
✓ The completeness of the information contained in a solid model allows the automatic production
✓ The model can serve as a means of geometric input for finite element analysis or numerically
controlled machining.
✓ It provides complete three dimensional definition. It improves the quality of the design
86
SOLID MODELING
❑ Metric information
❑ Location Coordinate
❑ Connectivity
❑ Associativity
❑ Neighborhood information
87
SOLID MODELING
✓ Software improvements
88
GEOMETRY AND TOPOLOGY
89
GEOMETRY AND TOPOLOGY
✓ The length of lines L1, L2, L3 and the angles between the
lines, and the radius R and the center P1 of the half circle.
and cylinders.
91
SOLID MODELING - Primitives
✓ Primitives (building blocks) are simple basic shapes and are considered the solid modeling
entities which can be combined by a mathematical set of Boolean operations to create the
solid.
✓ Primitives are usually translated or rotated to position and oriented properly before applying
Boolean operations.
92
VARIOUS SOLID MODELING PRIMITIVES
93
MOST COMMON PRIMITIVES
94
SOLID MODELING- Boolean operations
❑ Union
❑ Intersection
❑ Difference
95
SOLID MODELING- Boolean operations
96
SOLID MODELING- Boolean operations
97
SOLID MODELING- Boolean operations
98
SOLID MODELING- PROPERTIES
Rigidity- Shape of model is invariant and does not depend on the model location or orientation in space.
Size of the solid is not infinite and a limited amount of information can describe the solid.
99
THE PROPERTIES OF REPRESENTATION SCHEMES
➢ Domain
➢ Class of objects that the scheme can represent or it is the geometric coverage of the
scheme.
➢ Validity
➢ Validity of a representation scheme is determined by its range, i.e., the set of valid
representations or models it can produce.
➢ Completeness or Unambiguousness
➢ This properties determines the ability of the scheme to support analysis and other
engineering applications.
➢ Uniqueness
➢ Used to determine object equality.
100
OTHER PROPERTIES OF REPRESENTATION SCHEMES
➢ Conciseness
➢ Measure of the size of data a scheme requires to describe an object.
➢ The scheme generates compact databases, convenient to store and efficient to transmit
from one system to another.
➢ Ease of operation
➢ Determines the user-friendliness of a scheme.
➢ Efficacy
➢ Measures how accessible a representation is by downstream applications.
➢ Good representation schemes should permit the use of a wide variety of application
algorithms for evaluating various functions.
101
SOLID REPRESENTATION
102
SOLID MODELING
103
VARIOUS REPRESENTATION SCHEMES
❑ Half-spaces
❑ Sweeping
❑ Cell decomposition
❑ Spatial enumeration
❑ Primitive instancing
104
SOLID MODELING
105
BOUNDARY REPRESENTATION (B-rep)
106
BOUNDARY REPRESENTATION (B-rep)
107
BOUNDARY REPRESENTATION (B-rep)
108
BOUNDARY REPRESENTATION (B-rep)
❑ The total information present in a b-rep model is classified into topological and geometric
data.
❑ The topological part of the data provides the relationships among its objects such as
vertices, edges and faces similar to that used in a wireframe model, along with the
orientation of edges and faces.
❑ It is based on the topological notion that a physical object is bound by a set of faces.
❑ The database of a B-rep model consists of both the geometry as well as the topology of
the object.
109
BOUNDARY REPRESENTATION (B-rep)
110
BASIC ELEMENTS OF B-rep
111
TYPES OF POLYHEDRAL OBJECTS
112
BOUNDARY REPRESENTATION (B-rep)
❑ Euler (1752) a Swiss mathematician proved that polyhedra that are homomorphic to a
sphere are topologically valid if they satisfy the equation:
F–E+V–L=2(B–G) General
F–E+V=2 Simple Solids
F–E+V–L=B–G Open objects
Where
F = No of Faces E = No of Edges
V = No of Vertices B = No of Bodies
L = No of Loop G = No of Genus or handles
113
BOUNDARY REPRESENTATION (B-rep)
❑ A connected structure of vertices, edges and faces that always satisfies Euler’s formula is
known as Euler object.
✓ The process that adds and deletes these boundary components is called an Euler
operation.
114
VALIDITY CHECKING FOR SIMPLE SOLIDS
115
BOUNDARY REPRESENTATION (B-rep)
116
BOUNDARY REPRESENTATION (B-rep)
117
BOUNDARY REPRESENTATION (B-rep)
Handles/through hole
118
CURVED SURFACES
❑ Curved objects such as cylinders and spheres are modelled similar to the polyhedral objects.
❑ The major difference to be noted between these two types of objects is the existence of closed
curved edges or faces.
❑ A closed cylindrical face has one vertex and no edges.
❑ The boundary model of a cylinder has three faces (top, bottom and cylindrical face, itself), two
vertices, and three edges connecting the two vertices.
❑ The other ‘edges’ are for visualisation purposes, and are called limbs or virtual edges
❑ These models satisfy Euler law: F – E + V = 2 for simple polyhedra.
❑ In exact b-rep scheme, the curved objects are represented by storing the equations of the
underlying curves and surfaces of the object edges and faces respectively.
119
CURVED SURFACES
120
Approximate B-rep or Faceted B-rep
121
GENERAL DATA STRUCTURE FOR B-rep
122
DATA STRUCTURE FOR B-rep
123
DATA STRUCTURE FOR B-rep - Example
124
BUILDING OPERATIONS B-rep
125
BUILDING OPERATIONS
126
EULER OPERATIONS
127
Create the boundary model of solid S
128
Create the boundary model of solid S
129
Boundary model of solid S
130
ADVANTAGES OF BOUNDARY REPRESENTATION
❑ Complex engineering objects can be modelled very easily compared with CSG.
❑ Some examples are aircraft fuselage and automobile body styling.
❑ Since the topology and geometry are treated separately, incorporating new geometries in the existing
model is easy.
❑ It is particularly suitable for modelling parts having internal symmetry.
❑ Computational effort and time required to display the model are less compared with CSG.
❑ Combining wireframe and surface models are possible.
❑ This format gives efficient picture generation and easy access to other geometric information.
❑ The b-rep model is more widely used because in CSG, the number of basic primitives available is
limited.
❑ It is easy to create objects by ‘sweeping’, i.e., a complex two-dimensional profile may be translated or
rotated about an axis to give a shape in three dimensions.
131
PROBLEMS WITH BOUNDARY REPRESENTATION
❑ The data to be stored is more and hence it requires more memory. It is also a verbose
scheme.
❑ In addition, faceted b-rep is not suitable for many applications such as tool-path generation.
❑ There is no guarantee that the object created is valid (i.e., complete, unambiguous, and
uniquely defined).
❑ Additional checks for validity, such as Euler’s rule, will be needed to ensure this.
❑ It is usually less robust than the half-space method.
❑ Each object is defined independently, without reference to other objects in the system.
❑ It is not easy to define ‘generic’ or ‘parametric’ models for families of parts.
❑ Conversion of CSG to b-rep is possible, but conversion from b-rep to CSG is not possible.
132
CONSTRUCTIVE SOLID GEOMETRY (CSG)
❑ This is one of the most widely researched and understood methodology because
of the applications.
❑ For example, the intersection operation is useful in understanding the
interference problem in assemblies while the difference operator is useful for the
material removal processes in CNC toolpath planning.
❑ A CSG model is held as a tree structure whose terminal nodes are primitive
objects together with an appropriate transformation and whose other nodes are
Boolean set operations with block and cylinder as primitives.
133
CSG - BUILDING OPERATIONS
❑ The main building operations are regularised set operations like union (U*), intersection
(∩*) and difference (-*).
❑ Hence the CSG models are known as set-theoretic, Boolean or combinatorial models.
134
BUILDING OPERATIONS
135
CSG – Solid Primitives
136
CSG SCHEMES
137
CSG - Bounded and un bounded primitives
The solid model is represented by three bounded primitives and seven half spaces
138
DATA STRUCTURE OF CSG
139
CSG DATA STRUCTURE
Path: Each node in a tree belongs to a path E.g. Path A to G is given by (A,B,G) or (A,C,B,G) (in digraph)
Cycle: If starting and ending nodes are the same the path is called a cycle E.g. Path (A,C,B,A) or (B,E,C,B)
Graph Digraph
140
DIRECTED GRAPH OR DIGRAPH
❑ These pairs are unordered, that is, no relation exist between the elements of each pair.
❑ Pair {A B} can also be {B A}.
❑ Pairs of nodes that make up the branches are ordered pairs
141
CSG DATA STRUCTURE
142
TREE AND BINARY TREE
Tree:
❑ A tree is an acyclic digraph in which a single node
called root node has a zero indegree and every other
nodes has an indegree of one.
Binary Tree:
❑ In a tree if the descendent of each node are in order
(from left to right) and each node except the leaf node
has two decedents (left and right), then the tree is
called a binary tree.
143
BINARY TREE AND SUBTREE
Subtree:
❑ Any binary tree can be thought of as joining together of 2 subtrees at any given node.
❑ A left subtree and a right subtree rooted at two successor nodes.
❑ A perfect binary tree is one which has (nL-nR)=0.
144
INVERTED BINARY TREE
Inverted Binary Tree: If the direction of each connector (arrow) is reversed then we get an
inverted binary tree wherein each node has one outdegree except the root node.
Root node: A node with outdegree = 0. Any node that does not have descendent.
Leaf node: Any node that does not have a predecessor or indegree = 0.
Interior node: Any node with outdegree > 0 is an interior node.
145
CSG – Data structure of a Primitive solid
146
CSG – Typical Solid and its Primitives
A block and a cylinder primitive are enough to create CSG model of the solid.
147
CSG - Steps
A user can construct the CSG model using the following steps:
B3= block
148
CSG Tree Structure
S1 = B1 *B3
S 2 = S1 *C1
S3 = S 2 *C3
S 4 = B2 *B4
S 5 = C2 *S 4
S 6 = C4 *S5
S = S3 *S6
CSG graph
149
CSG Example
150
Some CSG Solid Modelers in Practice
151
Comparison – Wire frame and Solid Modeling
152
EXCHANGE OF MODELLING DATA
❑ Since the CAD/CAM software is available from a number of vendors, it becomes necessary that
there should be a means by which different systems are able to interchange information to avoid
the duplication of effort involved in the geometric model creation, which often happens to be the
highest.
❑ This means that the data format used by all the software should be the same.
❑ The database formats are identified on the basis of the modelling requirements and is therefore
❑ However, it is possible to identify a certain format for drawing exchange and make it a standard so
that the various systems can convert their internal format to this standard format or vice versa.
153
NEED OF DATA EXCHANGE
❑ Data is stored in different ways e.g. 1.0, 2.0,3.0 or X1.0, Y 2.0, Z3.0, etc.
154
EXCHANGE OF MODELLING DATA
155
EXCHANGE OF MODELLING DATA
156
Different Data needs to be EXCHANGE
❖ Shape data:
❑ Both geometric and topological information, part or form features.
❑ Fonts, colour, annotation are considered part of the geometric information.
❖ Non-shape data:
❑ Graphics data such as shaded images, and model global data as measuring units of the
database and the resolution of storing the database numerical values.
❖ Design data:
❑ Information that designers generate from geometric models for analysis purposes.
❑ Mass property and finite element mesh data belong to this type of data.
❖ Manufacturing data:
❑ Information as tooling, NC tool paths, tolerancing, process planning, tool design, and bill
of materials (BOM).
157
TYPES OF TRANSLATORS
158
NEED OF NEUTRAL FILE FORMAT
❑ In order to make this model transfer possible, a method named neutral file is used.
❑ Although by theory only one neutral file is required, there are several neutral files available in
market.
❑ They have been developed by various countries and organizations. By general, these neutral files
can be in categories as follows:
❑ This standard, established by the initiative of National Bureau of Standards ( NBS), USA is termed
as Initial Graphics Exchange Specification (IGES).
❑ Some other formats which have been used because of the popularity of the corresponding systems
are, Drawing Exchange Format ( DXF) of AutoCAD software on IBM PC compatibles.
❑ Neutral files developed by specific applications e.g. lithography, VRML, VDAFS and graphics.
159
DATA EXCHANGE USING NEUTRAL FILES
160
DATA EXCHANGE FORMATS
VDA - Verband der Automobil industrie, the German Automotive Industry Association
STL - Stereolithography
161
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
❑ The IGES is the most comprehensive standard and is designed to transmit the entire
product definition including that of manufacturing and any other associated information.
❑ Developed by Boeing, GE, and National Institute of Standards and Technology in 1980.
❑ CAD-to-CAD exchange: for both shape and non shape data (no design and manuf. Data)
❑ In IGES, the records are present with 80 column fields, with columns 1 to 72 providing the
data and columns 73 to 80 providing a sequence number for the record with identification
162
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
163
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
2. Start section -S
3. Global section -G
6. Terminate Section -T
164
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
Flag Section
❑ This is optional and is used to indicate the form in which the data is specified.
❑ Originally, the initial versions contained the data in ASCII format with a very detailed structure.
Start Section
❑ This section contains a man-readable prologue to the file.
❑ The information contained in this section is essentially for the person who would be
postprocessing this for any other application.
❑ Any number of lines can be contained in this section.
❑ Comment, filename, data name, etc.
165
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
166
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
Global Section
❑ This contains information about details of the product, the person originating the product, name of
the company originating it, date, the details of the system which generated it, drafting standard used
and some information required for its postprocessing on the host computer.
Directory Entry Section
❑ For each entity present in the drawing is fixed in size and contains 20 fields of 8 characters each.
❑ The purpose of this section is to provide an index for the file and to contain attribute information.
❑ Some of the attribute information such as colour, line type, transformation matrix, etc., may be
present directly or through a pointer (to a record in the same file) where the necessary information is
stored.
❑ It also contains the pointer to the parameter data section entry which actually contains the requisite
parameter data.
167
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
168
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
169
IGES – INITIAL GRAPHICS EXCHANGE SPECIFICATION
Terminate Section
❑ This contains the sub-totals of the records present in each of the earlier sections.
❑ This always contains a single record.
❑ Though all the geometric entities such as line, arc, circle are defined in a number of ways
depending upon the construction facilities provided by the geometric modeler, the IGES
provides for a single type of geometric transformation.
❑ Thus, it is possible that some design technique used would be lost in the process of IGES
conversion which is inevitable, so is the accuracy of internal representation.
170
IGES – File Structure
171
DRAWING EXCHANGE FORMAT (DXF)
❑ The DXF format has been developed and supported by Autodesk for use with
view of the widespread use of AutoCAD made it a default standard for use of a
❑ A Drawing Interchange File is simply an ASCII text file with a file extension of
172
DXF- File Structure
TABLES Section
❑ This contains definitions for the following symbol tables which directly relates to the object
types available in AutoCAD.
✓ Linetype table
✓ Viewport configuration table
✓ Layer table
✓ Dimension style table
✓ Text style table
✓ Application identification table
✓ View table
✓ Block reference table
✓ User coordinate system table
174
DXF- File Structure
BLOCKS Section
❑ This contains block (symbol) definition and drawing entities that make up each block reference
in the drawing.
ENTITIES Section
❑ This contains the graphical objects (entities) in the drawing, including block references (insert
entities).
OBJECTS Section
❑ This contains the non-graphical objects in the drawing.
❑ All objects that are not entities or symbol table records or symbol tables are stored in this
section.
❑ Examples of entries in the OBJECTS section are dictionaries that contain mline (multiple lines)
styles and groups.
175
Limitations of IGES and DXF
➢ IGES and DXF files were developed to exchange product definition data instead
of product data.
➢ By product data we mean the data relevant to entire life cycle of a product (eg:
176
PDES (Product Data Exchange Specification)
then Product Data Exchange using STEP)
177
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA
(STEP)
Product Product
Data Data
Archival
product
Data
178
STEP- ARCHITEXTURE
Mechanical Electrical
Products Products
AEC Products Application Application layer
Physical layer
File Format and Data structure
179
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA
(STEP)
Overview
❑ It gives the general introduction and overview of the standard and forms part one of the ISO
standard 10303.
Description Methods
❑ The application protocols planned in STEP are far reaching compared to any other existing
standard or models.
❑ Hence, a new descriptive formal information modelling language called EXPRESS is developed
such that the protocols be properly defined. These are given in parts 11 to 13.
Implementation Methods
❑ This provides specifications as to how the STEP information be physically represented for
the exchange environment.
❑ This, therefore, refers to the actual implementation levels. Details can be found in parts 21 to 26.
180
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA
(STEP)
Conformance and Tools
❑ This part provides the specifications for conformance testing of the processors used for
STEP information.
❑ They provide information on methods for testing of software-product conformance to the STEP
standard, guidance for creating abstract-test suites and the responsibilities of testing
laboratories. These are given in parts 31 to 35.
Integrated-generic Resources
❑ These contain the specifications of the information models that support various
application areas that form part of STEP.
❑ The topics that form part of this specification are: geometric and topological representation,
product structure organisation, materials, visual presentation, tolerances, form features
and process structure and properties. These are given in parts 41 to 46.
181
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA
(STEP)
Application Protocols
❑ These are the main protocols to be used as subsets of STEP information model for
exchange of data between specific application systems (such as between two
finite element systems or between a CAD and Process Planning system).
❑ These are given in part numbers 201 upwards.
182
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA
(STEP)
183
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA
(STEP)
Application Protocols
❑ These define the context for the use of product data for a specific industrial need.
❑ These are more complex data models used to describe specific product-data
applications.
❑ These parts are known as application protocols and describe not only what data is to be
used in describing a product, but how the data is to be used in the model.
❑ The application protocols use the integrated information resources in well defined
combinations and configurations to represent a particular data model of some phase
of product life.
184
STANDARD FOR THE EXCHANGE OF PRODUCT MODEL DATA (STEP)
185
VRML - VIRTUAL REALITY MODELLING LANGUAGE
❑ VRML is used to illustrate 3-D objects, buildings, landscapes or other items requiring 3-D structure
❑ VRML also uses textual representation to define 3-D illusion presentation methods.
❑ VRML language permits the description of 3D objects and their combination in virtual scenes and
worlds.
❑ It can be used to create interactive worlds which contain: images, animations, audio or video clips.
186
VRML - VIRTUAL REALITY MODELLING LANGUAGE
❑ In a VRML world it is the user, not the computer, which has the control.
❑ Objects in a scene may interact with one another via events or they may interact with user events.
❑ In order to visualise a VRML world, the Internet browser (Internet Explorer, Netscape Navigator, HotJava,
Opera etc.) needs a VRML browser (under the form a plugin) that allows the user (called visitor in VRML)
to surf the virtual world, to obtain different views of the scene according to the chosen point of view, to
❑ The facilities that are offered differ from one browser to another.
❑ Among the best known VRML browsers we mention Cortona, CosmoPlayer, CC3D, OpenWorlds and
FreeWRL
187
VRML - VIRTUAL REALITY MODELLING LANGUAGE
188
FINITE ELEMENT MODELLING
❑ The finite-element-modelling process allows for discretising the intricate geometries into
❑ It is then possible to write the governing equations and material properties for these
elements.
❑ These equations are then assembled by taking proper care of the constraints and loading,
❑ These equations when solved give the results that describe the behaviour of the original
189
APPLICATION OF FINITE ELEMENT MODELLING
❑ Stress analysis
❑ Dynamic analysis
❑ Deformation studies
❑ Fluid-flow analysis
❑ Heat-flow analysis
❑ Seepage analysis
❑ Magnetic-flux studies
❑ Acoustic analysis
190
FINITE ELEMENT MODELLING
191
STEPS INVOLVED IN THE USE OF FINITE ELEMENT METHOD
192
PREPROCESSOR
❑ Generating the finite element mesh by making a suitable approximation to the geometry.
❑ Allowing for the specification of the support condition and loading conditions for the
193
ELEMENT TYPES
194
FINITE ELEMENT MODELLING
195
MESH GENERATION
196
MESH GENERATION
197
MESHING
198
FINITE ELEMENT ANALYSIS
❑ In the analysis part, computer solves the unknowns in the finite element problem,
❑ i.e., it solves the linear or non-linear system of equations based on the variational or the projective
formulation.
❑ Input to analysis module is the finite element model, the physical characteristics and the
boundary conditions (pre-processor file).
❑ Its output is the value of the unknown quantity at each of the nodes of the grid.
❑ Two large classes of methods are used to solve these sets of equations: point or block methods of
relaxation or global matrix methods. The latter, more popular today, requires several steps:
(i) Creation of sub-matrices and sub-vectors corresponding to each individual finite element;
(ii) Assembly of these elementary matrices and vectors to build the system matrix and right hand
vector;
(iii) Solution of the linear system of equations.
199
FINITE ELEMENT ANALYSIS
200
POSTPROCESSOR
✓ Postprocessing involves the ability to go through a large amount of data generated during the
solving process and convert it into an easily understood form for the design purpose.
✓ The post processor presents the output of the problem in a manner which is easily understood
and interpreted by the user.
The postprocessor performs two tasks:
(i) Extraction of significant information: The information may be related to local quantities
(magnetic flux density, stress distribution) or global quantities (heat flux, electromagnetic forces).
(ii) Synthetic presentation of the numerical data via graphics facilities: This makes the data more
understandable and easier to interpret (stress plots, displacement plots, isothermal plots,
temperature Vs time curves, magnetic field along a line, etc.).
201
FINITE ELEMENT MODELLING
202
SIMULATION IN MANUFACTURING
❑ Simulation is intended to study the model of this real world system by numerical evaluation using
software.
❑ Simulation technology holds tremendous promise for reducing costs, improving quality, and
203
TYPES OF SIMULATION
204
SIMULATION PROCESS FOR MANUFACTURING SYSTEMS
ANALYSIS
Model design: In this step the issues to be addressed are identified based on which the project
is planned. Next step is to develop a conceptual model.
Model development: The simulation engineer chooses a modeling approach suitable for the
problem. After building the model it is tested to verify and validate the model.
Model deployment: The model is used to carry out experiments like ‘What if” analysis. The
results are then studied and used for making decisions.
205
MANUFACTURING SYSTEMS
Supporting Components
❑ Handling systems
❑ Warehousing
206
MODELING MATERIAL HANDLING SYSTEMS
Up to 85% of the time of an item on the manufacturing floor is spent in material handling.
❑ Subsystems
❑ Conveyors
❑ Transporters
❑ Storage Systems
207
GOALS OF MANUFACTURING MODELING
Manufacturing Systems
❑ Identify problem areas
❑ Quantify system performance
Supporting Systems
❑ Effects of changes in order profiles
❑ Truck/trailer queueing
❑ Effectiveness of materials handling
❑ Recovery from surges
208
PERFORMANCE MEASURES IN MANUFACTURING MODELING
209
APPLICATION AREAS
210
CASTING SIMULATION
❑ Many defects occur in castings due to bad casting design or improper methoding.
❑ Usually these defects are observed after the casting is made.
❑ Considerable time and money would have already been invested in the design, methoding
and pattern manufacture.
❑ At this stage correction may entail redesign of the castings, patterns, runners or risers.
❑ These problems can be solved by simulating the solidification of castings.
❑ Using the simulation software, the design of castings, runners and risers can be tested for
castability even before the first casting is made.
❑ The simulation will bring out hot spots and other defects pertaining to solidification and
necessary corrections could be made at the design stage itself.
211
CASTING SIMULATION
212
CASTING DESIGN SOFTWARE
213
WELDING SIMULATION
❑ Welding involves very high temperatures to melt the metal in the weld zone whereas the metal at a
short distance from the weld pool will be at room temperature.
❑ As the weld cools, the residual stresses are produced in the weld zone.
❑ These residual stresses induce distortion of the welded structure, which is a major problem the
fabricating engineers would like to avoid.
❑ The prediction of residual stresses will yield a quantitative understanding of the thermal distortion.
❑ The simulation uses a sequentially coupled approach in which a thermal analysis is followed by a
stress analysis.
❑ The most important phenomenon in welding is heat conduction, which determines the thermal
history of the work piece.
❑ The thermal history has a significant influence on the microstructure and work piece distortion.
❑ The convective flow of the molten metal in the weld pool is also important in this respect.
214
WELDING SOFTWARE PACKAGES
❖ SORPAS
❑ The procedure involves modeling the configuration of
❖ Virtual Fabrication Technology (VFT) the weld joint, creation of a global model consisting of
the component to be joined by welding, definition of
❖ WELD PRO
welding sequence and fixturing and finally the
❖ CRADA
calculation of distortion.
215
METAL FORMING
❑ Metal forming comprises many processes like sheet metal forming (blanking, bending, drawing,
stamping, deep drawing, coining, forming etc), extrusion, rolling, forging etc.
❑ Forming a sheet metal part usually involves the deformation of the material by either one or a
combination of various sheet metal forming processes.
❑ Metal forming is a near net shape manufacturing process and has very wide application in many
industries.
❑ In particular, sheet metal work involving stamping, drawing and forming is very important activity
in automotive manufacturing.
❑ Approach to metal forming earlier was more empirical resulting in considerable trial and error,
rework of part design and tooling, wastage and long cycle time in product realization, not to
mention about the resultant increase in cost.
216
METAL FORMING SIMULATION SOFTWARES
❖ FemForm ❖ LS-DYNA for metal forming eliminate the trial and error
approach by allowing rapid modeling of the process
❖ AutoForm ❖ OPTRIS
at the blue print stage itself, resulting in the
❖ Fastform ❖ Dynaform reduction of development time and quick turn
217
SIMULATION OF HEAT TRATMENT
❑ Important issue in heat treatment is the prediction of residual stresses and distortion.
❑ The heat treatment simulation requires simultaneous modeling of complex physical
phenomena: heat transfer, phase transformations, changes in microstructure and mechanics.
❑ The simulation of heat treatment is very essential because of the complex nature of the
constitutive behavior of the thermo-mechanical properties of the material.
❑ Considerable research is being carried out to simulate numerous heat treatment processes -
case hardening, through hardening, tempering and annealing.
❑ Some software products are already available in the market.
❑ However, there is still considerable scope for development work in this domain.
218