Professional Documents
Culture Documents
SKMM3023
Engineering Problem Solving
Introduction
Numerical Method vs Numerical Analysis?
There are many kinds of Numerical Method but have one common
characteristic : involve large numbers of tedious arithmetic calculations
Non Computer Method
Analytical Method
Limited to specific cases (linear models, simple geometry etc.)
Graphical
Not very precise
Tedious and awkward to implement
Limited to specific cases (3D or fewer dimensions)
Calculator (manual numerical method)
Slow and tedious
Introduction
Objective is how to use the computer as a tool to obtain numerical
solutions to a given engineering model. Engineering Problem Solving
There are two ways in using computers:
Use available software, or
write computer programs to extend the capabilities of available
software, such as Excel and Matlab
Engineers should not be tool-limited, it is important that they
should be able to do both!
The important thing when dealing with numerical
method/software:
To know how to acknowledge and control the
errors of approximation
Optimization
Verification
and
Validation
Engineering Problem
Picturing the Problem
i.e. Composite crashworthiness - Is it possible to determine localized
crushing stress of one ply at front extremity?
Equilibrium Equation
Newtons Law of Motion
Conservation Laws: Mass,
Equation of State
In the majority of engineering problems, the engineer might have to derive the
mathematical model from the first principles.
8
(a) Pure 0
(b) Pure 90
0 and 90 are
measured separately
Pure 0
= +
Solution:
Laminate 0/ 90
= [0 0 + 90 90 ] +
10
12
13
14
15
16
17
18
Good Correlation
o
o
19
Mathematical Model:
(E0)
20
() =
(1
()
(E1)
21
v = g*m/cd * (1-EXP((-c/m)*t)))
22
True slope
dv/dt
approximate slope
v/t
23
P= 100 N/mm
24
25
Maximum
Displacement (mm)
Accuracy
Time Taken
Mono
19.156179
98.74%
Fastest
Mono + 2D
18.863180
97.23%
Fast
2D
18.777710
96.79%
Slow
3D
19.043072
98.16%
Slowest
1
100
1100
4600
2400
8400
2100
Maximum
Displacement (mm)
19.156179
19.156179
18.86318
18.863607
18.77771
18.780661
19.043072
13000
19.072542
No. Of elements
Accuracy
98.74%
98.74%
97.23%
97.24%
96.79%
96.81%
98.16%
98.31%
Effectiveness
0.00%
0.01%
0.02%
0.15%
Error
Error is the collective term to represent both inaccuracy and imprecision of
predictions by numerical methods. If is an approximation of true value, x, then
true or absolute error is defined as
28
Error
Problem Statement:
Suppose that you are asked to measure the lengths of a bridge and a rivet, and
came up with 9,999 cm and 9 cm, respectively. If the true values are 10,000 cm
and 10 cm, respectively, compute the absolute error and the relative error (in %)
for each case.
29
Error
In Absence of True Value
How do we determine error estimates in the absence of knowledge
regarding the true value?
Example: Many numerical methods use an iterative approach to compute
answers. In such approach, a present approximation is made on the basis
of a previous approximation i.e. process is performed repeatedly, or
iteratively, to successfully compute better and better approximations.
In this case, error is estimated as the difference between previous and
current approximations, thus
=
30
Error
In Absence of True Value
For example, the exponential function can be computed using
Note that the true value is e0.5 = 1.648721
Add terms until the absolute value of the approximate error estimate a falls
below a prespecified error criterion s conforming to one significant digits
Solution:
Work through the example.
31
Error
Sources
1. Errors in mathematical modeling:
simplifying approximation,
assumption made in representing physical system by mathematical
equations
2. Blunders:
undetected programming errors,
silly mistakes
3. Errors in input:
due to unavoidable reasons e.g. errors in data transfer,
uncertainties associated with measurements
4. Machine errors:
rounding,
chopping,
overflow,
underflow
32
Error
Sources: Due to Floating-Point Representation
Number is expressed as fractional part, called a mantissa or significant and an
integer part, called an exponent or characteristic
m.be
where m is mantissa, b is the base of the number system being used and e the
exponent. If the number has leading zeros digits, the mantissa is usually
normalized.
Example: If 1/34 = 0.029411765. . . is to be stored in a floating-point
base-10 system that allows only four decimal places to be stored, then 1/34 would
be stored as
1/34 = 0.0294 100 0.2941 101
33
Error
Sources: Due to Round-off
Computer can only store a finite number of digits, so actual numbers may
undergo chopping or rounding.
Let a decimal number x = 0.b1b2 . . . bibi+1bi+2 where 0 bi 9 for i 1. If the
maximum number of decimal digits used in the floating-point computation is i:
chopped floating-point representation of x is xchop = 0.b1b2 . . . bi where ith digit
of xchop is identical to the ith digit of x.
rounded floating-point representation of x is xround = 0.b1b2 . . . bi1di where
di(1 di 9) is obtained by rounding the number didi+1di+2 . . . to the nearest
integer.
Example: The value of e is given by e = 2.718281828459045. . .. Show the
seven-digit representations of e by chopping and rounding are
34
Error
Sources: Due to Truncation Error
35
Error
Local Computational Error
36
Error Propagation
How errors in numbers can propagate through mathematical functions
i.e error in the output of a procedure due to the error in the input data
Error:
37
Error Propagation
Neglecting higher order derivative terms and rearranging, the
error in the output can be expressed as
38
Error Propagation
39
Error Propagation
If f (x1, x2, . . . , xn) 0 and xi 0, the relative propagation error, f , is
40
Error Propagation
In Arithmetic Operations
When two numbers are used in an arithmetic operations, the numbers cannot
be stored exactly by the floating-point representation.
Let x and y be the exact number and and their approximate values. Then
x = + x
y = + y
x and y denote errors in x and y, respectively.
When arithmetic operation, say multiplication, is carried out on the numbers,
associated error, E, results
41
Bibliography
1 STEVEN C. CHAPRA & RAYMOND P. CANALE (2009): Numerical
Methods for Engineers, 6ed,ISBN 978-007-126759-5, McGraw-Hill
2 SINGIRESU S. RAO (2002): Applied Numerical Methods for Engineers
and Scientists, ISBN 0-13-089480-X, Prentice Hall
3 DAVID KINCAID & WARD CHENEY (1991): Numerical Analysis:
Mathematics of Scientific Computing, ISBN 0-534-13014-3, Brooks/Cole
Publishing Co.
4 STEVEN C. CHAPRA (2012): Applied Numerical Methods with MATLAB
for Engineers and Scientists, 3ed, ISBN 978-0-07-340110-2, McGraw-Hill
5 JOHN H. MATHEWS & KURTIS D. FINK (2004): Numerical Methods
Using Matlab, 4ed, ISBN 0-13-065248-2, Prentice Hall
6 WILLIAM J. PALM III (2011): A Concise Introduction to MATLAB, ISBN
978-007-126372-6, McGraw-Hill
42