16.810 (16.682)
Engineering Design and Rapid Prototyping
Instructor(s)
Lecture 3
Computer Aided Design (CAD)
January 9, 2004
Prof. Olivier de Weck Dr. Il Yong Kim
16.810 (16.682) 2
Plan for Today
? CAD Lecture (ca. 50 min)
? CAD History, Background
? Some theory of geometrical representation
? SolidWorks Introduction (ca. 40 min)
? Follow along step-by-step
? Create CAD model of your part (ca. 90 min)
? Work in teams of two
? Use hand sketch as starting point
16.810 (16.682) 3
Course Concept
today
16.810 (16.682) 4
Course Flow Diagram
CAD/CAM/CAE Intro
FEM/Solid Mechanics
Overview
Manufacturing
Training
Structural Test
“Training”
Design Optimization
Hand sketching
CAD design
FEM analysis
Produce Part 1
Test
Produce Part 2
Optimization
Problem statement
Final Review
Test
Learning/Review Deliverables
Design Sketch v1
Analysis output v1
Part v1
Experiment data v1
Design/Analysis
output v2
Part v2
Experiment data v2
Drawing v1
due today
today
Monday
Design Intro
16.810 (16.682) 5
What is CAD?
? Computer Aided Design (CAD)
? A set of methods and tools to assist product
designers in
? Creating a geometrical representation of the artifacts they
are designing
? Dimensioning, Tolerancing
? Configuration Management (Changes)
? Archiving
? Exchanging part and assembly information between teams,
organizations
? Feeding subsequent design steps
? Analysis (CAE)
? Manufacturing (CAM)
? …by means of a computer system.
16.810 (16.682) 7
Brief History of CAD
? 1957 PRONTO (Dr. Hanratty) – first commercial numerical-
control programming system
? 1960 SKETCHPAD (MIT Lincoln Labs)
? Early 1960’s industrial developments
? General Motors – DAC (Design Automated by Computer)
? McDonnell Douglas – CADD
? Early technological developments
? Vector-display technology
? Light-pens for input
? Patterns of lines rendering (first 2D only)
? 1967 Dr. Jason R Lemon founds SDRC in Cincinnati
? 1979 Boeing, General Electric and NIST develop IGES
(Initial Graphic Exchange Standards), e.g. for transfer of
NURBS curves
? Since 1981: numerous commercial programs
? Source: http://mbinfo.mbdesign.net/CAD-History.htm
16.810 (16.682) 8
Major Benefits of CAD
? Productivity (=Speed) Increase
? Automation of repeated tasks
? Doesn’t necessarily increase creativity!
? Insert standard parts (e.g. fasteners) from database
? Supports Changeability
? Don’t have to redo entire drawing with each change
? EO – “Engineering Orders”
? Keep track of previous design iterations
? Communication
? With other teams/engineers, e.g. manufacturing, suppliers
? With other applications (CAE/FEM, CAM)
? Marketing, realistic product rendering
? Accurate, high quality drawings
? Caution: CAD Systems produce errors with hidden lines etc…
? Some limited Analysis
? Mass Properties (Mass, Inertia)
? Collisions between parts, clearances
16.810 (16.682) 9
Generic CAD Process
Start
Settings
Engineering Sketch
Units, Grid (snap), …
Construct Basic
Solids
dim
3D
2D
Boolean Operations
(add, subtract, …)
Annotations
Dimensioning
Verification
Create lines, radii, part
contours, chamfers
-
Add cutouts & holes
extrude, rotate
=
CAD file
Output
Drawing (dxf)
x.x
IGES file
16.810 (16.682) 10
Example CAD A/C Assembly
? Boeing (sample) parts
? A/C structural assembly
? 2 decks
? 3 frames
? Keel
? Loft included to show
interface/stayout zone to
A/C
? All Boeing parts in Catia
file format
? Files imported into
SolidWorks by
converting to IGES
format
16.810 (16.682) 12
Vector versus Raster Graphics
Raster Graphics
.bmp -raw data format
? Grid of pixels
? No relationships between
pixels
? Resolution, e.g. 72 dpi
(dots per inch)
? Each pixel has color, e.g.
8-bit image has 256
colors
16.810 (16.682) 13
Vector Graphics
.emf format
CAD Systems use
vector graphics
Most common interface file:
IGES
? Object Oriented
? relationship between
pixels captured
? describes both
(anchor/control) points
and lines between them
? Easier scaling & editing
16.810 (16.682) 14
Major CAD Software Products
? AutoCAD (Autodesk) ? mainly for PC
? Pro Engineer (PTC)
? SolidWorks (Dassault Systems)
? CATIA (IBM/Dassault Systems)
? Unigraphics (UGS)
? I-DEAS (SDRC)
16.810 (16.682) 15
Some CAD-Theory
Geometrical representation
(1) Parametric Curve Equation vs.
Nonparametric Curve Equation
(2) Various curves (some mathematics !)
-HermiteCurve
-Bezier Curve
- B-Spline Curve
- NURBS (Nonuniform Rational B-Spline) Curves
Applications: CAD, FEM, Design Optimization
16.810 (16.682) 16
Curve Equations
Two types of equations for curve representation
(1) Parametric equation
x, y, z coordinates are related by a parametric variable
(2) Nonparametric equation
x, y, z coordinates are related by a function
( or )u T
Parametric equation
cos , sin (0 2 )xR yR T T T S d d
Example: Circle (2-D)
Nonparametric equation
22 2
0xyR
22
yRx r
(Implicit nonparametric form)
(Explicit nonparametric form)
16.810 (16.682) 17
Curve Equations
Two types of curve equations
(1) Parametric equation
Point on 2-D curve: [() ()]xu y u p
Point on 3-D surface: [() () ()]xu y uzu p
: parametric variable and independent variableu
():2-D, (, ):3-Dyfx zfxy (2) Nonparametric equation
Which is better for CAD/CAE?
: Parametric equation
cos , sin (0 2 )xR yR T T T S d d
22 2
0xyR
22
yRx r
T '
It also is good for
calculating the
points at a certain
interval along a
curve
16.810 (16.682) 18
Parametric Equations –
Advantages over nonparametric forms
1. Parametric equations usually offer more degrees of freedom for
controlling the shape of curves and surfaces than do nonparametric forms.
e.g. Cubic curve
32
Nonparametric curve: yax bx cxd
32
32
Parametric curve: xau bu cud
yeu fu gxh
/
/
dy dy du
dx dx du
?
2. Parametric forms readily handle infinite slopes
/ 0 indicates /dx du dy dx f
3. Transformation can be performed directly on parametric equations
e.g. Translation in x-dir.
32
000
Nonparametric curve: ( ) ( ) ( )yaxx bxx cxx d
32
0
32
Parametric curve: xau bu cudx
yeu fu gxh
16.810 (16.682) 19
Hermite Curves
* Most of the equations for curves used in CAD software are of degree 3, because
two curves of degree 3 guarantees 2nd derivative continuity at the connection point
? The two curves appear to one.
* Use of a higher degree causes small oscillations in curve and requires heavy
computation.
23
01 2 3
() [() () ()]
(0 1)
uxuyuzu
uu u u
d d
P
aa a a
* Simplest parametric equation of degree 3
0123
,,, :aaaa Algebraic vector coefficients
The curve’s shape change cannot be intuitively anticipated
from changes in these values
u
(0)u
START
(1)u
END
16.810 (16.682) 20
Hermite Curves
23
01 2 3
() (0 1)uuuuu d dPaaaa
Instead of algebraic coefficients, let’s use the position vectors and the
tangent vectors at the two end points!
0
P
1
P
(0)u
START
(1)u
END
0
c
P
1
c
P
u
00
10123
01
112
Position vector at starting point: (0)
Position vector at end point: (1)
Tangent vector at starting point: (0)
Tangent vector at end point: (1) 2 3
c
c
c
c
PP a
PP aaaa
PP a
PP a a
3
a
No algebraic coefficients
00 11
,,,:
c c
PP PP Geometric coefficients
The curve’s shape change can be intuitively anticipated from
changes in these values
0
1
2 3 2 3 23 23
0
1
() [1 3 2 3 2 2 ]u u u u uuuu uu
a o
? ?
? ?
? ?
c
? ?
? ?
c
? ?
P
P
P
P
P
Blending functions
: Hermit curve
16.810 (16.682) 21
Effect of tangent vectors on the
curve’s shape
u
(1, 1)
(0)u
START
(5,1)
(1)u
END
0
1
0
1
(0)
(1)
: Geometric coefficient matrix
(0)
(1)
a o
a o
? ?
? ?
? ?
? ?
? ?
? ?
c
c
? ?
? ?
? ?
? ?
c c
? ?
? ?
P
P
P
P
P P
P
P
a o
? ?
? ?
? ?
? ?
? ?
11
51
11
1-1
a o
? ?
? ?
? ?
? ?
? ?
11
51
55
5-5
a o
? ?
? ?
? ?
11
51
13 13
13 -13
Is this what you really wanted?
a o
? ?
? ?
? ?
? ?
? ?
11
51
22
2-2
Geometric coefficient matrix
controls the shape of the curve
a o
? ?
? ?
? ?
? ?
? ?
11
51
40
40
/0
0
/4
dy dy du
dx dx du
16.810 (16.682) 22
Bezier Curve
* In case of Hermite curve, it is not easy to predict curve shape according to
changes in magnitude of the tangent vectors,
01
and
c c
PP
0
!
() (1 ) , where
!( )!
n
ini
i
i
nn
n
uuu
iiini
§