Computer Aided Design (CAD) : DR Janardhan V
Computer Aided Design (CAD) : DR Janardhan V
Computer Aided Design (CAD) : DR Janardhan V
(CAD)
Dr Janardhan V
CAD FUNDAMENTALS
BEFORE CAD
INTRODUCTION
• CAE tool users become inefficient in using them unless, fundamental concepts on
which these systems are built, are understood properly.
• All the critical shapes can not be modeled in these tools. Customized shapes require
more knowledge on programming an object.
WHAT ARE WE GOING TO STUDY
UNIT I 11
CAD FUNDAMENTALS: Introduction, Reasons for implementing a CAD system, Computer aided
process application, benefits, CAD software’s, Elements of programming, CAD programming ,Need
and scope of computer aided design.
COMPUTER GRAPHICS: Scan conversion; Bresenham’s Algorithm for line, circle and ellipse.
Standards for graphics programming, features of GKS, other graphics standards, PHIGS, IGES,
PDES. Standards in CAD.
UNIT II 13
GEOMETRIC TRANSFORMATIONS: Geometric transformations- 2D and 3D translation, scaling,
rotation, shear and reflection, homogeneous transformations.
UNIT III 18
PLANE & SPACE CURVES: Types of mathematical representation of curves, parametric
representation of line, circle, ellipse, parabola, hyperbola. Wire frame models, wire frame entities,
parametric representation of synthetic curves: Hermit cubic splines, Bezier curves, B-splines,
constructive solid geometry.
UNIT IV 18
FINITE ELEMENT METHOD: Introduction, FEM procedure, Discretization of the Domain,
Interpolation Models, Higher Order and Isoparametric Elements, Derivation of Element Matrices and
Vectors, Assembly of Element Matrices and Vectors and Derivation of System Equations, Numerical
Solution of Finite Element Equations, Basic Equations and Solution Procedure, Analysis of Trusses, Beams.
Computer Programming: Use of computer programming in design of machine elements, development of
computer program using Matlab for machine components like shaft, spring, gears, bearing etc., plotting
graphs using programming language, generalized programming, optimization in design.
Self-study: The self- study contents will be declared at the commencement of semester.
Applications of FEM
Text book(s):
1. Mathematical elements for computer graphics by David F Rogers and J. Adams, 2nd Edition, Tata
McGraw-Hill, New Delhi
2. Computer Aided Engineering & Design by Jim Browne, New Age International Publications,
3. CAD/CAM: Computer Aided design and Manufacturing by Mikell Groover and Zimmer, Pearson
Education
4. CAD/CAM Theory & Practice by Ibrahim Zeid, 2nd Edition, Tata Mc Graw Hill, New Delhi
5. Computer Graphics & design by P. Radhakrishnan, C.P. Kothanadaraman, New Age publication
6. Finite Element Analysis by Chendraupatla, EEE Publication.
7. The Finite Element Method in Engineering by S. S. Rao, 5th Edition, Butterworth–Heinemann
Publications
8. Computer Graphics by Donald Hearn, 2nd Edition, Pearson
Reference book(s):
1. Finite Element Procedures by K. J. Bathe 2nd Edition, Prentice Hall Publications
2. An Introduction to Finite Element Methods, MC Graw Hill Publishers, 3rd Edition
3. Curves and Surfaces for Computer Graphics, David Salomon, Springer
AUTOMOBILE DESIGN
APPLICATIONS
ARCHITEXTURE DESIGN
AUTOMATION PLANTS AND ROBOTICS DESIGN
DAY TO DAY OBJECTS AND LOGOS DESIGN
ORNAMENTS AND WEPONS DESIGN
ANIMATION AND GAMES DESIGN
COMPUTER GENERATED IMAGERY
FASHION DESIGN
TEXTILE DESIGNS
3D PRINTERS
CHIP DESIGN
Medical implant design and analysis
• Please attend the classes regularly, no attendance will be given if anyone less
attendance than the institute norms.
• Please take a prior appointment over mail for any queries or for meeting the faculty.
• Please do not use mobiles in the classroom, if found serious action will be taken.
• Attention to the lectures and proper conduct is mandatory.
• Slides for the class will not be shared, you can write the notes during the class.
• Everybody has to keep a separate notebook for the subject.
• Send a prior mail in case of missing a class, due to unavoidable reasons.
• Mass bunks are strictly prohibited and 1 mass bunk will be considered as two
absents.
REASONS FOR CHOOSING CAD
Computers can store and handle large amount of engineering data; that
can be utilized for design and analysis.
CAD tools make design, simulation, analysis and optimization an easy task.
Conventional design cycle and CAD
Problem identification
and recognition of need
Problem definition
and conceptualisation
Geometric modelling
and spatial analysis
Engineering analysis
and optimization
Prototype development
Manufacturing process
development
Manufacturing
Implementation
HOW CAN CAD BE FIT IN CONVENTIONAL
DESIGN CYCLE?
CAD in
Conventional
design cycle
Conventional
design cycle
HOW CAN CAD BE FIT IN CONVENTIONAL
DESIGN CYCLE?
Customer CAM
Marketing
feedback cycle
SCOPE OF CAD
• CAD is a subset of the design process (As shown earlier in design cycle)
• Activities of CAD systems: mass properties, FEA, dimensioning,
tolerance, assembly modeling, generating shaded images, documentation
and drafting.
Geometric C Computer
modeling A graphics
D
Design
CAD PROGRAMMING
• CAD systems are powerful software tools, they require
• complex geometric modeling concepts
• computer graphics algorithms
• software techniques
• Design and analysis theories
• Manufacturing techniques
• Database and management concepts
• CAD systems evolved over the years; coding itself is very long and complex.
OOP:
In this a large application is divided into
independent components known as
objects. Objects have to be integrated
to get complete programe.
CRT display
VECTOR SCAN SYSTEM
General Requirements:
• The line should appear as a straight line, with accurate starting and end points.
• The line should be displayed with constant brightness along its length independent of its
orientation.
• The line should drawn rapidly.
Two techniques:
Digital Differential analyzer (DDA) algorithm
Bresenham’s algorithm
Aliasing or Jaggies
6
6
5
5
4
4
3
3
2
2
1
1
0
0
0 1 2 3 4 5 6
0 1 2 3 4 5 6
DIGITAL DIFFERENTIAL ALGORITHM
Given points
X(i)=x(i-1)+X-increment
P0 (x0, y0) and P1(x1,y1) all are integers
Y(i)=Y(i-1)+Y-increment
Find dX= x1-x0;
i=1,2,…
dY= y1-y0;
Plot_pixel(X(i),Y(i))
If (dX>dY)
Repeat till
No of steps=dX;
X(i)<=x1
Else
Y(i)<=Y1
No of steps=dY;
End
X-Increment= dX/no of steps;
Y-increment= dY/no of steps;
DIGITAL DIFFERENTIAL ALGORITHM
6 6
5 5
4 4
3 3
2 2
1 1
0 0
0 1 2 3 4 5 6 0 1 2 3 4 5 6
6 12
5 11
4 10
3 9
2 8
1 7
0 6
0 1 2 3 4 5 6 4 5 6 7 8 9 10
Brsenham’s algorithm for line for points (5,8) and (9,11)
12
M
E
݈݁݊݅ ݄݁ݐ ݓ݈ܾ݁ ݏ݅ ݐ݊݅ ݀݅݉ ⇒ 0ݐ݊݅݀݅݉ ݂ ݂݅
NE
E
௦ ௦
f(midpoint) < 0
NE ௦ NE
M ௦ f(midpoint) > 0
M
E E
௦
௦ ௦
୭୪ୢ
f(midpoint) < 0
NE
௦
M ௦
௦
௦
NE
M f(midpoint) > 0
E
ௗ௫
In first iteration ୭୪ୢ
ଶ
If dx is even there will not be any fractions otherwise we get fractional values.
Since ሺݔ , ݕ ሻ ݔ ݂ ݈݁݊݅ ݄݁ݐ ݊ ݐ݊݅ ݃݊݅ݐݎܽݐݏ ݄݁ݐ ݏ݅ ݄݄ܿ݅ݓ , ݕ ൌ 2݀ݔ ݕ െ 2݀ݕ ݔ 2ܿ௦ ݀ ݔൌ 0
11
10
NE
9
8
E
4 5 6 7 8 9 10
݂ ݉݅݀ ݐ݊݅in second iteration
݀௪ ൌ ݂ሺݔ 2, ݕ 0.5ሻ
ൌ 2݀ݔ ݕ െ 2݀ݕ ݔ 2ܿ௦ ݀ ݔ 4݀ ݕെ ݀ ݔൌ 4݀ ݕെ ݀ݔ
൏0
E
݂ ݉݅݀ ݐ݊݅in first iterationൌ 2݀ ݕെ ݀ ݔൌ ݀ௗ ݀௪ ൌ ݂ሺݔ 2, ݕ 1.5ሻ
NE
0 ݀௪ ൌ 2݀ݔ ݕ 2 െ 2݀ݕ ݔ 1.5 2ܿ௦ ݀ݔ
ൌ 2݀ݔ ݕ െ 2݀ݕ ݔ 2ܿ௦ ݀ ݔ 4݀ ݕെ 3݀ ݔൌ 4݀ ݕെ 3݀ݔ
∆݀ ൌ ݀௪ െ ݀ௗ
NE
4݀ ݕെ 3݀ ݔെ 2݀ ݕെ ݀ ݔൌ 2ሺ݀ ݕെ ݀ݔሻ
݀௪ ൌ ݀ௗ ∆݀ ൌ ݀ௗ ݀௪ െ ݀ௗ
Algorithm
ݔൌ ݔ ; ݕൌ ݕ ;
݀ ݔൌ ݔଵ െ ݔ ; ݀ ݕൌ ݕଵ െ ݕ ;
݀ ൌ 2݀ ݕെ ݀ݔ
∆݀ா ൌ 2݀;ݕ
∆݀ோ ൌ 2ሺ݀ ݕെ ݀ݔሻ;
ݔ ݈݄݁݅ݓ ݔଵ
݂݅ሺ݀ 0ሻ
݀ ൌ ݀ ∆݀ா
݈݁݁ݏ
݀ ൌ ݀ ∆݀ோ
ݕൌ ݕ 1;
݁݊݀
ݔൌ ݔ 1; ݐ݈ሺݔ, ݕሻ
݁݊݀
12
11
10
4 5 6 7 8 9 10
Brsenham’s algorithm for Circle
6
4 N c
3 S
R
2
0 1 2 3 4 5 6
6
4 N NN NNN
3 NNS
S NS
NSN
SS NSS
2 SSN
1 SSS
0 1 2 3 4 5 6
N
1
݂ ݔ 3, ݕെ ൌ ݀ேே ൌ ݀ே ∆݀ேே
N 2
ே௪
∆݀ேே ൌ ݀ேே െ ݀ே ൌ 2 ݔ 5 ൌ ∆݀ே ே
S ே௪
ሺ∆ଶ ݀ሻ_ܰܰ ൌ ∆݀ே ே െ ∆݀ே ൌ 2
1
݂ ݔ 2, ݕെ ൌ ݀ே ൌ ݀ ∆݀ே
2
N 3
∆݀ே ൌ ݀ே െ ݀ ൌ 2 ݔ 3 N ݂ ݔ 3, ݕെ ൌ ݀ேௌ ൌ ݀ே ∆݀ேௌ
2
∆݀ேௌ ൌ ݀ேௌ െ ݀ே ൌ 2 ݔെ 2 ݕ 7 ൌ ∆݀ௌே௪ ே
S
1 ሺ∆ଶ ݀ሻ_ܰܵ ൌ ∆݀ௌே௪ ே െ ∆݀ௌ ൌ 2
(x , y) ݂ ݔ 1, ݕെ ൌ ݀
2 S
N 3
݂ ݔ 3, ݕെ ൌ ݀ௌே ൌ ݀ௌ ∆݀ௌே
2
ே௪
N ∆݀ௌே ൌ ݀ௌே െ ݀ௌ ൌ 2 ݔ 5 ൌ ∆݀ே ௌ
ே௪
S 3 ሺ∆ଶ ݀ሻ_ܵܰ ൌ ∆݀ே ௌ െ ∆݀ே ൌ 2
݂ ݔ 2, ݕെ ൌ ݀ௌ ൌ ݀ ∆݀ௌ S
2
∆݀ௌ ൌ ݀ௌ െ ݀ ൌ 2 ݔെ 2 ݕ 5 N 5
݂ ݔ 3, ݕെ ൌ ݀ௌௌ ൌ ݀ௌ ∆݀ௌௌ
2
∆݀ௌௌ ൌ ݀ௌௌ െ ݀ௌ ൌ 2 ݔെ 2 ݕ 9 ൌ ∆݀ௌே௪ ௌ
S
ሺ∆ଶ ݀ሻ_ܵܵ ൌ ∆݀ௌே௪ ௌ െ ∆݀ௌ ൌ 4
S
STANDARDS FOR COMPUTER GRAPHICS-NEED
FOR
GRAPHIC STANDARDS
• Need for portability of the geometric model among different
hardware platforms.
• Exchange drawing database among software packages.
• Need for exchanging graphic data between different
computer system.
• Need for the requirement of graphic data exchange formats
and their details.
DATA USED IN PRODUT
DESCRIPTION
• Shape data
• Design data
• Manufacturing data
Shape data: both geometric and topological information, part or form features. Fonts, color,
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, tolerance, process planning, tool
design, and bill of materials (BOM).
Direct Translators
Perspective Projection:
If Center Projection on the plane is at finite distance then the resultant projections are not parallel,
the projection is called perspective projection.
ORTHOGRAPHIC PROJECTION
The Simplest of parallel projection
Top View
ܺ ܲ௫ ൌ ܺ ∗
ܺ ܲ௭ ൌ ܺ ∗
ܺ ܶ௭ ܲ௭ ൌ ሾܺ ∗ ሿ
ܺ ܶ௫ ܲ௫ ൌ ሾܺ ∗ ሿ
ܺ ܶ௬ ܲ௬ ൌ ሾܺ ∗ ሿ
Develop the auxiliary view showing the true shape of the triangular corner
shown in the figure. The coordinates of the object are
Procedure:
4. Rotate it such that normal coincides with Z-axis for this the rotation
about x-axis
ܶ ൌ ܶ௫ ܶ௬ ൌ
AXONOMETRIC PROJECTIONS
Obtained by two arbitrary rotations about x and y-axis and projecting on to any one of the planes
(usually on Z=0 plane).
There are cases
1. Trimetric Projection
2. Dimetric Projection
3. Isometric Projection
After an axonometric projection a vector of unit length along each principle axis scales down by some
amount called foreshortening factor.
Trimetric: If projection is such that foreshortening factors along three principle axes are different
Dimetric: Foreshortening factors along any two principle axes are same.
Isometric: Foreshortening factors along three principle axes are same.
TRIMETRIC PROJECTION
The position vectors of the cube with one corner removed are given
below, find the foreshortening ratios of the trimetric projection
formed by a rotation of 30 degrees about y-axis, and 45 degrees
about x-axis followed by projection on to the z=0 plane.
Foreshortening ratios:
DIMETRIC PROJECTION
ISOMETRIC PROJECTION
UNIT-III
PLANE & SPACE CURVES
curve (also called a curved line in older texts) is, an object similar to a line but that need not
be straight.
(OR)
A curve is a generalization of a line, in that its curvature need not be zero.
Easy to differentiate.
Non parametric
Parametric
Non parametric curves
Plane curve:
A plane curve is a two dimensional curve which lies in a single plane.
A non parametric curve can be represented in both explicit and implicit forms
Computationally expensive
For a step
length of
Requirements:
• Be versatile and capable of modeling a generic solid.
• Generate valid solids (consists of a complete set of spatial points occupied by the
solid)
• Be complete such that every valid representation (solid) produced is unambiguous.
• Generate unique solids in that no two different representations should generate the
same object.
• Permitted transformation operations on valid solids would always yield valid solids.
• Be compact and efficient in matters of data storage and retrieval
SOLID REPRESENTATION SCHEMES
Suppose
• Given two end points P1 and P2, and two unit tangent vectors T1 and T2, and third point P3, find
scaling factors ߙ ܽ݊݀ ߚ such that the Hermite segment P(t) defined by points P1 and P2 and tangents
αT1 and βT2, respectively, will pass through P3. Also find the value t0 for which P(t0) = P3.
SPLINE CURVE
• A spline is a set of polynomials of degree k that are smoothly connected at certain data points.
• At each data point, two polynomials connect, such that all their derivatives from 1st up to the (k − 1)st
be the same at the point.
• For the segments to meet at the interior points, their tangent vectors (first derivatives) and second
derivatives (up to order of k-1 for a kth degree spline) must be the same at each interior point.
• For cubic spline the second derivatives of the curves getting joined should also same at the interior
points.
For k= 1 to n-2
2. Solve these system of equations for
Relaxed Cubic
spline
Cyclic cubic
spline
(For 2D spline)
Periodic cubic
spline
Quadratic segments can be connected with C1 continuity only as the second derivative is constant.
A quadratic spline may not be as tight as cubic spline that passes through the knot points.
Quadratic curve
For a Hermite curve when two end points and the tangent at the starting point only is given we can
generate a quadratic curve only since we have 3 conditions.
At the joint point of the two curves
For C1 continuity
BE´ZIER CURVE
The curve is named after the scientist Be´zier.
Each point influences the direction of the curve by The points can be moved, to vary the curve. Thus it is
easy to edit the curve. It is also possible to add and
pulling it towards itself.
delete points to edit the curve. (This is the major
advantage)
Control polygon : It is the polygon obtained when the control points are connected, in their natural
order, with straight segments.
The general representation of Bezier curve with points P0, P1, ……….Pn (n is 1 less than given points)
Is given as
The functions ܤ ݐ, ܤଵ ݐ, ܤଶ ܤ ݀݊ܽ ݐ ݐare
barycentric.
Bernstein polynomials
RECURSIVE REPRESENTATION OF BEZIER CURVE
can be represented as
For n=1,
For n=2,
PROPERTIES OF BEZIER CURVE
The functions should be such that the curve passes through the first and last control
points.
The tangent to the curve at the start point should be P1 − P0, and for the end point
should be P n-1 - Pn
i.e., the curve should start at point P0 moving toward P1. A similar property should
hold at the last point.
The same requirement is generalized for higher derivatives of the curve at the two
extreme endpoints.
Ptt(0) should depend only on the first point P0 and its two neighbors P1 and P2.
P(k)(0) should only depend on P0 and its k neighbors P1 through Pk.
The weight functions should be symmetric with respect to t and (1 − t). This
means that a reversal of the sequence of control points would not affect the shape of
the curve.
The weights should be barycentric, to guarantee that the shape of the curve is
independent of the coordinate system.
The entire curve lies within the convex hull of the set of control points.
CONNECTING BEZIER CURVES
In B- spline curves, the curve does not pass through the end points also. Thus all are control points.
In B-spline curves, in addition to control points, one has to define additional variables called ‘knots’.
Knot’s are real numbers which offer additional control
Types of B-splines
Uniform B-splines
Non- uniform B-splines
Open uniform B-splines
Rational B-splines
Non Uniform Rational B- Splines (NURBS)
The start and end points of segment Pi(t) are denoted by Ki and Ki+1, respectively, they are called joints
For the curves to be independent of the coordinate system the weights of the functions should satisfy
barycentric property
It is possible to have several identical control points and a set of identical points is referred to as a multiple point.
Find four control points Q0, Q1, Q2, and Q3 such that the Bezier curve Q(t) defined by
them will have the same shape as P(t).
FINITE ELEMENT METHODS
Fundamental Concept of FEM
A continuous field of a certain domain having infinite degrees of freedom is
approximated by a set of piecewise continuous models with a number of finite
regions called elements. The number of unknowns defined as nodes are
determined using a given relationship i.e.{F}=[K]*{d}.
Domain x
x
Subdomain e
x
x
The dots in the model are called
nodes. The unknowns in Finite
Element Analysis (FEA) are field
variable values at the nodes.
The coefficients of the nodal values for variables in the interpolating function are
called shape functions.
GENERAL STEPS
• Discretize the domain
Divide domain into finite elements using appropriate element types (1-D, 2-D, 3-D, or
Axisymmetric)
• Select a Displacement Function
Define a function within each element using the nodal values
[k] = EA 1 -1
L
-1 1
NOTE ON THE DISPLACEMENT FUNCTION
x1 = 0, x2 and x3 are the distances to the nodes and u1, u2, and u3 are the displacements.
a A b A P
L L
Element a Element b
f1 f3 = P
1 2 3
u1 u2 u3
f1 2 f21 f22 2 3 f3 = P
1
u1 u2 u2 u3
EXAMPLE CON’T.
1 2 3
u1 u2 u3
f1 EA 1 -1 0 u1 Global Equation
f21+f22 =
L u2
f3 -1 3 -2 u3
0 -2 2
B.C.: (x =0) u1 = 0
Known variables: f3 = P and f2 = f21+f22 = 0
EXAMPLE CON’T.
f1 EA 1 -1 0 0
0 =
L -1 3 -2 u2
P u3
0 -2 2
u2 = PL u3 = 3PL
EA f1 = -P
2EA
EXAMPLE CON’T.
As a first step, discretization, irregular domain broken into smaller and regular subdomains (finite
elements).
It is replacing the domain having an infinite number of degrees of freedom (dof) by a system having
a finite number of dof.
Choosing the shapes, sizes, number, and configurations of the elements is important.
• If the geometry, material properties, and the field variable of the problem can be described in
terms of a single spatial coordinate, 1D or line elements are chosen.
• T distribution in a rod (or fin), the pressure distribution in a pipe flow, and the deformation of a
bar under axial load etc., 1D element are chosen.
• Analysis of beams, the values of the field variable (transverse
displacement) and its derivative (slope) are chosen as the
unknowns (dof) at each node, the following 1D element is chosen.
177
• If the geometry,
material properties,
and other
parameters of the
body can be
described by three
independent spatial
coordinates, we can
idealize the body by
using the three-
dimensional
elements..
178
• For the discretization of problems involving curved geometries,
finite elements with curved sides are useful.
• Typical elements having curved boundaries are shown.
• The ability to model curved boundaries has been made possible
by the addition of mid-side nodes.
• Finite elements with straight sides are known as linear elements,
whereas those with curved sides are called higher-order
elements.
179
180
Discretization process
1. Type of Elements:
181
Aircraft wing using
different types of
elements.
182
183
The more suitable element that suits the
problem.
2. Size of Elements: If the size of the elements is small, the final
solution is expected to be more accurate. Use of smaller-sized
elements will also mean more computation time. Sometimes,
elements of different sizes in the same body may to be used.
184
3. Location of Nodes:
185
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.
186
5. Simplifications afforded
by the physical
configuration of the
body: If the configuration
of the body as well as the
external conditions are
symmetric, we may
consider only half of the
body for finite element
idealization.
187
FEM PROCEDURE
1. Descretize the given continuum.
2. Select a proper interpolation or displacement model.
3. Derive element stiffness matrices and load vectors.
4. Assemble element equations to obtain the overall
equilibrium equations.
5. Solve for the unknown nodal displacements.
6. Compute element strains and stresses.
188
INTERPOLATION MODELS
• In FEM, the solution of a complicated problem is obtained by dividing the region of
interest into small regions (finite elements) and approximating the solution over each
sub region by a simple function.
• It is an important step to choose a simple function for the solution in each element.
• The functions used to represent the behavior of the solution within an element are
called interpolation functions or approximating functions or interpolation models.
• Polynomial-type interpolation functions have been most widely used due to the following
reasons:
189
• Easier to formulate and computerize the finite element equations with polynomial
type interpolation functions.
• To improve the accuracy of the results increase the order of the polynomial.
Theoretically, a polynomial of infinite order corresponds to the exact solution. But in
practice we use polynomials of finite order only as an approximation.
190
POLYNOMIAL APPROXIMATION
191
• For a fixed order of the interpolation polynomial, the discretization of the region (or domain) can
be improved by two methods.
• 1. r-method, the locations of the nodes are altered without changing the total number of
elements.
• 2. h-method, the number of elements is increased.
• If improvement in accuracy is sought by increasing the order of the interpolation of polynomial
(p-method).
• Curved boundaries cannot be modeled satisfactorily using straight sided elements,
isoparametric elements are developed.
192
• In isoparametric elements use the interpolation functions to define the
shape or geometry and the variation of the field variable within the
element.
Linear interpolation polynomials in terms of global coordinates
• 1D Simplex Element:
• Consider a 1D element (line segment) of length l with two nodes, one
at each end. Let the nodes be denoted as i and j and the nodal values
of the field variable φ as φi and φj. The variation of φ inside the
element is assumed to be linear as
• φ(x)= α1 + α2x, where α1 and α2 are unknown coefficients.
193
194
• By using the nodal conditions, we can write φ(x)= α1 + α2x as φ(x) = φi at x=xi,
φ(x) = φj at x=xj,
• Substituting the above equations, we can write as
φi= α1 + α2xi
φj= α1 + α2xj
• Solving for α1 and α2 we get, i x j j xi j i
1 , 2
l l
i x j j xi j i
• Substituting,
( x)
l
x
195
l
• This equation can be written after rearrangement as
197
2D Simplex Element:
• The two-dimensional simplex element is a straight-sided triangle with three nodes,
one at each corner.
• Let the nodes be labeled as i, j, and k by proceeding counterclockwise from node i,
which is arbitrarily specified. Let the global coordinates of the nodes i, j, and k be
given by (xi, yi), (xj, yj), and (xk, yk) and the nodal values of the field variable ϕ (x, y)
by ϕi, ϕj, and ϕk, respectively.
• The variation of ϕ inside the element is assumed to be linear as ϕ(x, y) = α1 + α2x+
α3y
198
2D SIMPLEX ELEMENT
199
• The nodal conditions can be written as
ϕ(x, y) = ϕi at (x = xi, y = yi),
ϕ(x, y) = ϕj at (x = xj, y = yj),
ϕ(x, y) = ϕk at (x = xk, y = yk)
• This leads to the equations:
ϕi = α1 + α2xi + α3yi,
ϕj = α1 + α2xj + α3yj,
ϕk = α1 + α2xk + α3yk.
• Solving the above equations,
α1 = 1/2A (aiϕi +ajϕj + akϕk)
α2 = 1/2A(biϕi +bjϕj + bkϕk)
200
α3 = 1/2A (ciϕi +cjϕj + ckϕk)
• Where A is the area of the triangle ijk, and the other values are as given by
201
• Substituting the values in the first equation,
k
• Q. The temperatures at the nodes of a triangle element are given by Ti=210oC, Tj=270oC
and Tk=250oC. If the nodal coordinates are (xi,yi)=(50,30), (xj,yj)=(70,50) and
(xk,yk)=(55,60) mm, determine the shape functions of the element and temperature at the
point (60, 40) inside the element.
• Sol:
• Obtain area A and the other constants needed
• From the constants, obtain the shape functions
• Obtain the T distribution
• From the above T distribution, obtain the T at (60, 40).
203
HIGHER ORDER 1D ELEMENTS
205
• We are not discussing:
• Higher order 2D, 3D elements
• Quadratic Elements
• Cubic Elements
206