Professional Documents
Culture Documents
ComputerMethodsforMechanicalEngineering
By S. Tachasomboonsuk
Chapter 1
Mathematical Modeling, Numerical
Methods, and Problem Solving
1
2
1.1 A SIMPLE MATHEMATICAL MODEL
4
Forcesactingonafreefallingbungeejumper.
Figure1.1 Mathematical Model
dv cd 2
g v
dt m
where v = vertical velocity (m/s)
t = time (s)
g = the acceleration due to gravity
9.81 m/s2
cd = a second order drag coefficient (kg/m)
m = the jumpers mass (kg)
F ma (1.2)
Can be rewritten as
F (1.3)
a
m
Where F is the forcing function
m is a parameter
a is the dependent variable reflecting the systems
6
behavior
Because the acceleration as the time rate of change of the
velocity dv / dt ,so
dv F (1.4)
dt m
Where v is velocity (m/s)
7
FU c d v 2 air resistance (1.7)
Note Eq. (1.9) is cast in the general form of Eq. (1.1) where
v(t) is the dependent variable, t is the independent variable,
cd and m are parameters, and g is the forcing function.
9
EXAMPLE 1.1 Analytical (close- form) Solution to the
Bungee Jumper Problem
10
Which can be used to compute
t, s v, m/s
0 0
2 18.7292
4 33.1118
6 42.0762
8 46.9575
10 49.4214
12 50.6175
51.6938
11
TheanalyticalsolutionforthebungeejumperproblemascomputedinExample1.1.Velocityincreaseswith
timeandasymptoticallyapproachesaterminalvelocity.
Figure1.2
13
Theuseofafinitedifferencetoapproximatethefirstderivativeof withrespecttot.
Figure1.3
1-3 14
dv v
From calculus that lim
dt t 0 t
t i 1 t i m
And can be rearranged to yield
cd 2
v t i 1 v t i g v t i t i 1 t i (1.12)
m
dv / dt
15
Thus, the equation can be rewritten as
dvi
vi 1 vi t (1.13)
dt
Where vi designates velocity at time ti
t t i 1 t i
Thus, we can see that can be used to determine the velocity
algebraically at ti+1 using the slope and previous values of v
and t. This new value of velocity at ti+1 can in turn be
employed to extend the computation to velocity to velocity at
ti+2 and so on.
16
New value old value slope step size
17
EXAMPLE 1.2 Numerical Solution to the Bungee Jumper
Problem
18
For the next interval (from t = 2 to 4 s), the computation is
repeated, with the result
v 19.62 9.81
0.25
19.62 2 2 36.4137 m/s
68.1
The calculation is continued in a similar fashion to obtain
additional values:
19
t, s v, m/s
0 0
2 19.6200
4 36.4137
6 46.2983
8 50.1802
10 51.3123
12 51.6008
51.6938
20
Comparisonofthenumericalandanalyticalsolutionsforthebungeejumperproblem.
Figure1.4
50
40
v (m/s)
30
20
10
0
0 2 4 6 8 10 12
t (s)
23
1.2 CONSERVATION LAWS IN ENGINEERING AND
SCIENCE
24
Aflowbalanceforsteadyincompressiblefluidflowatthejunctionofpipes.
Figure1.5
25
For the bungee jumper, the steady-state condition would
correspond to the case where the net force was zero or dv 0
dt
mg c d v 2 (1.16)
gm
v
cd
26
Devicesandtypesofbalancesthatarecommonlyusedinthefourmajorareasofengineering.Foreachcase,
theconservationlawonwhichthebalanceisbasedisspecified.
Table1.1
1-6 27
1.3 NUMERICAL METHOD COVERED IN THIS BOOK
Summaryofthenumerical
methodscoveredinthisbook.
Figure1.6
28