Chapter 1
Chapter 1
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
lie beneath the models used in the various engineering
disciplines and appreciating 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.
1
2/16/2020
Problem Mathematical
definition model
2
2/16/2020
Model Function
Dependent independent forcing
= f , parameters,
variable variables functions
𝑔𝑚 𝑔𝑐𝑑
𝑣 𝑡 = tanh .𝑡
𝑐𝑑 𝑚
3
2/16/2020
Model Results
• 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
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.
• Example - the bungee jumper velocity equation
from before is the analytical solution to the
differential equation
dv c
= g− d v 2
dt m
where the change in velocity is determined by the
gravitational forces acting on the jumper versus the
drag force.
8
4
2/16/2020
Numerical Methods
• To solve the problem using a numerical
method, note that the time rate of change of
velocity can be approximated as:
dv v v(ti+1) − v(ti )
=
dt t ti+1 − ti
9
Euler's Method
• Substituting the finite difference into the
differential equation gives
dv c
= g − d v2
dt m
v(ti+1) − v(ti) cd
ti+1 − ti =g− v2
m
• Solve for
cd
v(ti+1) = v(ti) + g − v(ti)2 (ti+1 − ti)
m
new = old + slope step
10
5
2/16/2020
Numerical Results
• Applying Euler's method in 2 s intervals yields:
11
12
6
2/16/2020
13
14
7
2/16/2020
15
16
8
2/16/2020
Problem 1.5
• Rather than the nonlinear relationship of Eq. (1.7), you
might choose to model the upward force on the bungee
jumper as a linear relationship:
𝐹𝑈 = −𝑐 ′ 𝑣
• where 𝑐 ′ = a first-order drag coefficient (kg/s).
• (a) Using calculus, obtain the closed-form solution for the
case where the jumper is initially at rest (𝑣 = 0 at 𝑡 = 0).
• (b) Repeat the numerical calculation in Example 1.2 with the
same initial condition and parameter values (𝑚=68.1 kg).
Use a value of 11.5 kg/s for 𝑐 ′ .
17
Problem 1.5
• The force balance can be written as:
𝐹 = 𝑚𝑎
• The total force is given as:
𝐹 = 𝐹𝐷 + 𝐹𝑈
• The downward force is the weight of the body:
𝐹𝐷 = 𝑚𝑔
• The upward force is the drag force:
𝐹𝑈 = −𝑐 ′ 𝑣
• From Newton’s 2nd Law of Motion:
𝐹 = 𝑚𝑎
𝑑𝑣
𝐹=𝑚
𝑑𝑡
18
9
2/16/2020
Problem 1.5
• Hence we can write:
𝑑𝑣
𝑚𝑔 − 𝑐 ′ 𝑣 = 𝑚
𝑑𝑡
• Dividing by m and rearranging the equation:
𝑑𝑣 𝑐′
=𝑔− 𝑣
𝑑𝑡 𝑚
19
Problem 1.5
• We can now integrate both sides:
1
න 𝑑𝑣 = න 𝑑𝑡
𝑐′
𝑔−𝑚𝑣
• This will give:
𝑐′
ln 𝑔 − 𝑚 𝑣
− =𝑡+𝐶
𝑐′
𝑚
• Using initial condition (𝑣 = 0 at 𝑡 = 0):
ln 𝑔
𝐶=−
𝑐′
𝑚
20
10
2/16/2020
Problem 1.5
• Hence the equation becomes:
𝑐′
ln 𝑔 − 𝑚 𝑣 ln 𝑔
− ′ =𝑡− ′
𝑐 𝑐
𝑚 𝑚
𝑐′
• Multiply both sides by 𝑚
𝑐′ 𝑐′
− ln 𝑔 − 𝑣 = 𝑡 − ln 𝑔
𝑚 𝑚
• Take ln 𝑔 term to the left hand side:
𝑔 𝑐′
ln ′ = 𝑡
𝑐 𝑚
𝑔−𝑚𝑣
21
Problem 1.5
• Take the exponent:
𝑔 𝑐′
= exp 𝑡
𝑐′ 𝑚
𝑔−𝑚𝑣
22
11
2/16/2020
Problem 1.5
• The solution can be determined as:
23
Problem 1.5
24
12
2/16/2020
25
• Assumptions:
• 1) non-viscous flow
• 2) follows a streamline
• 3) incompressible flow
26
13
2/16/2020
𝑃1 𝑣12 𝑃2 𝑣22
+ + 𝑧1 = + + 𝑧2
𝛾 2𝑔 𝛾 2𝑔
• Since both points are open to atmosphere,
P1 = P2
𝑣12 𝑣22
+ 𝑧1 = + 𝑧2
2𝑔 2𝑔
27
28
14
2/16/2020
15
2/16/2020
31
32
16
2/16/2020
33
34
17
2/16/2020
1.4
level (ft)
Analytical
1.2 Numerical
1
0 5 10 15 20
time (s)
35
18
2/16/2020
• We have 6 unknowns
37
4 5 6
38
19
2/16/2020
39
40
20