Chapter 1
Mathematical Modeling,
Numerical Methods,
and Problem Solving
Chapter Objectives
Learning how mathematical models can be formulated on
the basis of scientific principles to simulate the behavior of a
simple physical system.
Understanding how numerical methods afford a means to
generalize solutions in a manner that can be implemented
on a digital computer.
Understanding the different types of conservation laws that
is used in the various engineering fields and knowing the
difference between steady-state and dynamic solutions of
these models.
Learning about the different types of numerical methods we
will cover in this book.
Model Function
independent
Dependent
forcing
= f
, parameters,
variable
functions
variables
Dependent variable - a characteristic that usually reflects the
behavior or state of the system, such as displacement, velocity, and
acceleration.
Independent variables - dimensions, such as time(t) and space(x),
along which the systems behavior is being determined
Parameters - constants reflecting the systems properties or
composition, such as mass(m), stiffness(k), and damping
coefficient(b).
Forcing functions - external influences acting upon the system
Model Function
Lets think about Newtons second law of motion
F = ma
F
a=
m
dv F
=
dt m
=
F FD + FU
Therefore,
Unlikely,
Net force: F
Downward pull of gravity: FD=mg
Upward pull of air resistance: FU=-Cdv2 (Cd: lumped drag coeff.)
=> Expression in terms of measurable variable and parameters
Cd 2
dv
= g
v
1st order ODE of time
dt
m
F Exact solution for velocity can not be obtained
a=
m using simple algebraic calculation
v(t) =
gc
gm
d
tanh
t
cd
m
e x e x
tanh = x x
e +e
cd 2
dv(t )
= g v (t )
dt
m
dv(t )
c
d
m
2
gm
v
(
t
)
cd
= dt
Here,
v 2 (t )
where, k1 =
m
cd
1
2 gm / c d
k1
v + gm / c d
k2 =
cd
m
2
gm
v
t
(
)
cd
2 gc d / m
v + gm / c d
k2
v gm / c d
1
2 gm / c d
1
1
1
2 gc d / m
v gm / c d
1
1
2 gc / m
2 gcd / m
d
v + gm / cd v gm / cd
Separation of variables
dv =
dt
ln
2 gc d / m
v + gm / c d
v gm / c d
v + gm / c d
or
v gm / c d
= t + C1
= C3 e
or
ln
v + gm / c d
v gm / c d
= 2 gc d / mt + C 2
2 gcd / mt
v(t ) = gm / c d
1+ e
1+ e
2 gcd / mt
2 gcd / mt
= gm / c d
gcd / mt
gcd / mt
gcd / mt
+e
gcd / mt
gc d
gm
tanh
t
m
cd
Model Results
Ex. 1
Using a computer (or a calculator), the model can be used to generate a
graphical representation of the system. For example, the graph below
represents the velocity of a 68.1 kg jumper, assuming a drag coefficient of
0.25 kg/m
Convergence line
Terminal velocity:
51.6983 m/s
Numerical Modeling
Some system models will be given as implicit functions or as
differential equations - these can be solved either using
analytical methods or numerical methods.
Unfortunately, there are many mathematical models that
cannot be solved exactly=> the only alternative is to develop
a numerical solution that approximates the exact solution.
Numerical methods: to reformulate the mathematical
problem so it can be solved by arithmetic operations.
Numerical Methods
Example - the bungee jumper velocity equation from before
is the analytical solution to the differential equation
c
dv
= g d v 2
m
dt
the change in velocity is determined by the gravitational forces acting on the
jumper versus the drag force.
dv v v ( ti +1 ) v ( ti )
=
dt t
ti +1 ti
Differential Fn.
Difference Fn.
dv
: Infinite( Exact ), Continous
dt
v v ( ti +1 ) v ( ti )
=
: Finite( Approximation)
t
ti +1 ti
Discrete
Numerical Methods
Finite difference approximation
Euler's Method
Substituting the finite difference into the differential
equation gives dv
cd 2
dt
=g
Differential Eq.
v(ti+1) v(ti)
cd
2
=
g
v
ti+1 ti
m
Difference Eq.
Solve for
v(ti+1) = v(ti) + g
new
= old +
dvi
t
vi +1 =vi +
dt
cd
m
slope
step
Numerical Results
Ex. 1.2 Applying Euler's method in 2 s intervals (t=2) yields:
cd 2
dv(t )
= g v (t )
dt
m
v(t ) =
gm
tanh
cd
gc d
m
c
dv(t )
= 0 = g d v 2 (t )
dt
m
mg = c d v 2
v=
gm
cd
Terminal velocity
Conservation of mass
Conservation of momentum
Conservation of charge
Conservation of energy