Professional Documents
Culture Documents
2
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
A mathematical model is represented as a functional relationship
of the form
3
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
What is the velocity of a falling object (for example a parachutist) ?
F FD FU
FU : Force due to air resistance
FD : Force due to gravity
FU cv c: drag coefficient
FD mg g: acceleration due to gravity
dv F mg cv c
g v 1st order differential
dt m m m equation
4
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
This formulation has several characteristics that are
typical of mathematical models of the physical world:
5
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Analytical solution
Independent variable
Dependent variable
v(t )
gm
c
1 e ( c / m )t
Exact solution
6
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
• g=9.8m/s2, m=68.1kg, c=12.5 kg/s
t (sec.) V (m/s)
0 0
2 16.40
4 27.77
8 41.10
10 44.87
12 47.49
∞ 53.39
7
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
What if we can’t find an analytical solution?
8
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Numerical solution
dv v
lim
dt t 0 t
dv v v(ti 1 ) v(ti )
dt t ti 1 ti
v(ti 1 ) v(ti ) c
g v(ti )
ti 1 ti m
If we rearrange
c
v(ti 1 ) v(ti ) [ g v(ti )](ti 1 ti ) Approximate solution
m
9
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Assume Δt=2s
t (sec.) V (m/s)
0 0
2 19.60
4 32.00
8 44.82
10 47.97
12 49.96
∞ 53.39
10
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Analytical vs. Numerical solution
m=68.1 kg c=12.5 kg/s
g=9.8 m/s ∆t = 2 sec ∆t = 0.5 sec ∆t = 0.01 sec
t (sec.) V (m/s) t (sec.) V (m/s) t (sec.) V (m/s) t (sec.) V (m/s)
0 0 0 0 0 0 0 0
v(t )
gm
c
1 e ( c / m )t c
v(ti 1) v(ti ) [ g v(ti )]t
m
CONCLUSION: If you want to minimize the error, use a smaller step size, ∆t 11
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Numerical methods
12
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Numerical Methods
•Capable of handling large systems of equations, nonlinearities and
complicated geometries which are often impossible to be solved with
analytical methods.
•Many problems can not be solved via packaged programs and you need to
develop your own computer code for these problems. Also you can provide
solutions without buying these expensive commercial programs.
•Numerical methods are efficient for learning to use computer for developing
programs.
14
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
15
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.