1.1 Introduction to Numerical Methods
1.1 Introduction to Numerical Methods
!1
Why use Numerical Methods?
• To solve problems that cannot be solved exactly
2
x u
1 −
∫ e 2
du
2π −∞
Why use Numerical Methods?
• To solve problems that are intractable!
Steps in Solving an
Engineering Problem
How do we solve an engineering problem?
Problem Description
Mathematical Model
!5
Bascule Bridge THG
!6
Bascule Bridge THG
Hub
Trunnion
Girder
!7
Trunnion-Hub-Girder
Assembly Procedure
!8
Problem
!9
Why did it get stuck?
!10
Consultant calculations
ΔD = D × α × ΔT
D = 12.363"
−6 o
α = 6.47 × 10 in / in / F
o
ΔT = −108 − 80 = −188 F
−6
ΔD = (12.363)(6.47 × 10 )( −188)
= −0.01504"
!11
Is the formula used correct?
ΔD = D × α × ΔT T(oF) α (µin/in/oF)
-340 2.45
-300 3.07
-220 4.08
-160 4.72
ΔD = D α ΔT
-80 5.43
0 6.00
40 6.24
80 6.47
!12
The Correct Model Would Account for
Varying Thermal Expansion Coefficient
Tc
ΔD = D ∫ α (T )dT
Ta
!13
Can You Roughly Estimate the
Contraction?
Tc
Tc
ΔD = D ∫ α (T )dT
Ta
http://numericalmethods.eng.usf.edu !14
Can You Find a Better Estimate for the
Contraction?
Tc
ΔD = D ∫ α (T )dT
Ta
Ta = 80oF
Tc = -108oF
D = 12.363"
!15
Estimating Contraction Accurately
Change in diameter (ΔD) by
cooling it in dry ice/alcohol is
given by
Tc
ΔD = D ∫ α (T )dT
Ta
Ta = 80oF
Tc = -108oF
D = 12.363"
α = −1.2278 ×10 −5 T 2 + 6.1946 ×10 −3 T + 6.0150
ΔD = −0.0137"
!16
So what is the solution to the problem?
ΔD = −0.0244"
!17
Revisiting steps to solve a problem
1) Problem Statement: Trunnion got stuck in
the hub.
2) Modeling: Developed a new model
Tc
ΔD = D ∫ α (T )dT
Ta
Mathematical Procedures
!19
Mathematical Procedures
• Nonlinear Equations
• Differentiation
• Simultaneous Linear Equations
• Curve Fitting
• Interpolation
• Regression
• Integration
• Ordinary Differential Equations
!20
Nonlinear Equations
How much of the floating ball is under water?
Diameter=0.11m
Specific Gravity=0.6
3 2 −4
x − 0.165 x + 3.993 × 10 = 0
3 2 −4
f ( x ) = x − 0.165 x + 3.993 × 10 = 0 !21
Differentiation
What is the acceleration at t=7
seconds?
⎛ 16 × 104 ⎞ dv
v(t) = 2200 ln⎜⎜ 4
⎟⎟ − 9.8t a=
⎝ 16 × 10 − 5000t ⎠ dt
!22
Differentiation
What is the acceleration at t=7 seconds?
Time (s) 5 8 12
Vel (m/s) 106 177 600
dv
a=
dt
!23
Simultaneous Linear Equations
Find the velocity profile, given
Time (s) 5 8 12
v (t ) = at 2 + bt + c, 5 ≤ t ≤ 12
Three simultaneous linear equations
25a + 5b + c = 106
64a + 8b + c = 177
144a + 12b + c = 600
!24
Interpolation
What is the velocity of the rocket at t=7 seconds?
Time (s) 5 8 12
Vel (m/s) 106 177 600
!25
Regression
Thermal expansion coefficient data for cast steel
!26
Integration
Finding the diametric contraction in a steel shaft when dipped in liquid nitrogen.
T fluid
ΔD = D ∫ α dT
Troom
!27
Ordinary Differential Equations
How long does it take a trunnion to cool down?
dθ
mc = −hA(θ − θ a ), θ (0) = θ room
dt
!28