Chapter 1 Modeling, computers and error analysis_unlocked
Chapter 1 Modeling, computers and error analysis_unlocked
Analysis
Introduction
Numerical Methods
Solution Solution
Interpretation
Interpretation
Ease of calculation allows holistic
In-depth analysis limited by thoughts and intuition to develop;
time consuming solution system sensitivity and behavior
can be studied
Why study numerical methods?
Roots of equations
Mathematical Background
Roots of equations
Systems of Linear
Algebraic Equations
Mathematical Background
Roots of equations
Systems of Linear
Algebraic Equations
Optimization
Mathematical Background
Roots of equations
Systems of Linear
Algebraic Equations
Optimization
Curve fitting
Regression
Interpolation
Mathematical Background
Roots of equations
Systems of Linear
Algebraic Equations
Optimization
Curve fitting
Integration
Mathematical Background
Roots of equations
Systems of Linear
Algebraic Equations
Optimization
Curve fitting
Integration
Ordinary Differential
Equations
Mathematical Background
Roots of equations
Systems of Linear
Algebraic Equations
Optimization
Curve fitting
Integration
Ordinary Differential
Equations
Partial Differential
Equations
Chapter 1
𝑖𝑛𝑑𝑒𝑝𝑒𝑛𝑑𝑒𝑛𝑡 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒𝑠
𝐷𝑒𝑝𝑒𝑛𝑑𝑒𝑛𝑡 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒 = 𝑓 𝑝𝑎𝑟𝑎𝑚𝑒𝑡𝑒𝑟𝑠
𝑓𝑜𝑟𝑐𝑖𝑛𝑔 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛𝑠
𝐹 =𝑚∙𝑎 𝑑𝑣 𝑚𝑔 − 𝑐𝑣
=
𝑑𝑡 𝑚
𝐹
𝑎= 𝑑𝑣 𝑐
𝑚 =𝑔− 𝑣
𝑑𝑡 𝑚
𝑑𝑣 𝐹
= 𝑔𝑚 𝑐 Τ𝑚 𝑡
𝑑𝑡 𝑚 𝑣(𝑡) = 1 − 𝑒−
𝑐
𝐹 = 𝐹𝐷 + 𝐹𝑈 𝐹 = 𝑛𝑒𝑡 𝑓𝑜𝑟𝑐𝑒 (𝑁, 𝑜𝑟 𝑘𝑔
𝑚
)
𝑠2
𝐹𝐷 = 𝑚 ∙ 𝑔 𝑚 = 𝑚𝑎𝑠𝑠 (𝑘𝑔)
𝑎 = 𝑎𝑐𝑐𝑒𝑙𝑎𝑟𝑎𝑡𝑖𝑜𝑛 𝑚Τ𝑠 2
𝑐 = 𝑑𝑟𝑎𝑔 𝑐𝑜𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑡 𝑘𝑔Τ𝑠
𝐹𝑈 = −𝑐 ∙ 𝑣
𝑔 = 𝑔𝑟𝑎𝑣𝑖𝑡𝑎𝑡𝑖𝑜𝑛𝑎𝑙 𝑚Τ𝑠 2 = 9.8 𝑚Τ𝑠 2
Example 1.1
𝑔𝑚 𝑐 Τ𝑚 𝑡
𝑣(𝑡) = 1 − 𝑒−
𝑐
9.8(68.1) 12.5Τ68.1 𝑡
𝑣(𝑡) = 1 − 𝑒−
12.5
10 44.87
12 47.49 𝑣 0 = 53.39 1 − 𝑒 − 0.18355 0 =0
15 49.99
20 52.03
𝑣 2 = 53.39 1 − 𝑒 − 0.18355 2 = 16.40
30 53.17
50 53.38
100 53.39 𝑣 4 = 53.39 1 − 𝑒 − 0.18355 4 = 27.77
1000 53.39
10000 53.39
∞
Solution
t(s) v (m/s)
0 0.00
2 16.40
𝑣(𝑡) = 53.39 1 − 𝑒 − 0.18355 𝑡
4 27.77
60.00
6 35.64 Terminal velocity
8 41.09 50.00
10 44.87
12 47.49 40.00
V(m/s)
15 49.99
30.00
20 52.03
30 53.17 20.00
50 53.38
100 53.39 10.00
1000 53.39 0.00
10000 53.39
50
0
2
4
6
30
8
100
10000
12
20
1000
10
15
∞
t(s)
The use of finite difference to approximate the first
derivative of v with respect to t
𝑣
True slope
𝑣 𝑡𝑖+1
∆𝑣
Approximate slope
𝑣 𝑡𝑖 Δ𝑣 𝑣 𝑡𝑖+1 − 𝑣 𝑡𝑖
=
Δ𝑡 𝑡𝑖+1 − 𝑡𝑖
𝑡
𝑡𝑖
𝑡𝑖+1
∆𝑡
𝑑𝑣 Δ𝑣 𝑣 𝑡𝑖+1 − 𝑣 𝑡𝑖
≅ =
𝑑𝑡 Δ𝑡 𝑡𝑖+1 − 𝑡𝑖
𝑑𝑣 𝑐
=𝑔− 𝑣
𝑑𝑡 𝑚
𝑣 𝑡𝑖+1 − 𝑣 𝑡𝑖 𝑐
= 𝑔 − 𝑣 𝑡𝑖
𝑡𝑖+1 − 𝑡𝑖 𝑚
𝑐
𝑣 𝑡𝑖+1 − 𝑣 𝑡𝑖 = 𝑔 − 𝑣 𝑡𝑖 𝑡𝑖+1 − 𝑡𝑖
𝑚
𝑐
𝑣 𝑡𝑖+1 = 𝑣 𝑡𝑖 + 𝑔 − 𝑣 𝑡𝑖 𝑡𝑖+1 − 𝑡𝑖
𝑚
Euler’s method
12.5
𝑣 𝑡𝑖+1 = 0 + 9.8 − ∙0 2−0
68.1
12.5
𝑣 𝑡𝑖+1 = 19.60 + 9.8 − 19.60 4−2
68.1
22 52.45 53.04
24 52.74 53.17 10.00
26 52.94 53.25
28 53.08 53.30 0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
30 53.17 53.33
32 53.24 53.36
34 53.29 53.37
36 53.32 53.38
38 53.34 53.38