Application of Numerical Method Eng'Ng
Transcript of Application of Numerical Method Eng'Ng
-
8/12/2019 Application of Numerical Method Eng'Ng
1/27
Applications of Numerical Methods in EngineeringCNS 3320
James T. AllisonUniversity of Michigan
Department of Mechanical Engineering
January 10, 2005
University of Michigan Department of Mechanical Engineering
-
8/12/2019 Application of Numerical Method Eng'Ng
2/27
Applications of Numerical Methods in Engineering
Objectives:
Motivate the study of numerical methods through discussion of
engineering applications.
Illustrate the use of Matlab using simple numerical examples.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
3/27
Lecture Overview
Quantitative Engineering Activities: Analysis and Design
Selected Categories of Numerical Methods and Applications
Linearization Finding Roots of Functions Solving Systems of Equations Optimization Numerical Integration and Differentiation
Selected Additional Applications
Matlab Example: Fixed Point Iteration
Matlab Example: Numerical Integration
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
4/27
Quantitative Engineering Activities: Analysis and Design
Engineering: Solving practical technical problems using scientic andmathematical tools when available, and using experience and intuitionotherwise.
Mathematical models provide a priori estimates of performance verydesirable when prototypes or experiments are costly.
Engineering problems frequently arise in which exact analytical solutionsare not available.
Approximate solutions are normally sufficient for engineering applications,allowing the use of approximate numerical methods.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
5/27
Quantitative Engineering Activities: Analysis and Design
Analysis Predicting the response of a system given a xed system design and operatingconditions. 060 mph acceleration time of a vehicle (Mechanical Engineering) Power output of an electric motor (Electrical/Mechanical Engineering)
Gain of an electromagnetic antenna (Electrical Engineering) Maximum load a bridge can support (Civil Engineering) Reaction time of a chemical process (Chemical Engineering) Drag force of an airplane (Aerospace Engineering) Expected return of a product portfolio (Industrial and Operations Engineering)
Design Determining an ideal system design such that a desired response is achieved.
Maximizing a vehicles fuel economy while maintaining adequate performance levelsby varying vehicle design parameters. Minimizing the weight of a mountain bike while ensuring it will not fail structurally
by varying frame shape and thickness.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
6/27
Categories of Numerical Methods and Applications
Linearization
Finding Roots of Functions
Solving Systems of Equations
Optimization
Numerical Integration and Differentiation
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
7/27
Linearization
Nonlinear equations can be much more difficult to solve than linear equations. Taylors series expansion provides a convenient way to approximate a nonlinear equation
or function with a linear equation.
Accurate only near the expansion point a .
f (x ) = f (a ) + f (a )( x a ) + f (a )
2! (x a ) 2 + . . .
Linear approximation uses rst two terms of the expansion.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
8/27
Linearization Example: Swinging Pendulum
Sum forces in tangential direction:
F t = W t = mgsin = ma t
= md 2dt 2
L = m L
g
L sin = 0Linearize sin :
sin sin (0) + cos (0)( 0) =
Equation of motion valid for small
angles: gL
= 0m
T
W=mg
m
W t
W r
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
9/27
Finding Roots of Functions
Find the value of x such that f (x ) = 0
Frequently cannot be solved analytically in engineering applications. Transcendental equations Black-box functions
May have multiple or innite solutions
Example: static equilibrium problems must satisfy
F = 0
M = 0
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
10/27
Root Finding Example- Statically Indeterminate Structural Analysis
beam 1
beam 2
beam 3
beam nb
.
.
.
F 1
rod 1
rod 2
rod nb-1
d nb
d 3
d 2
d 1
d r(nb-1)
d r2
d r1
L
lr1
lr2
lr(nb-1)
.
.
.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
11/27
Root Finding Example- Statically Indeterminate Structural Analysis
Force applied to lower beam known All other forces and displacements unknown Solution process:
1. Make a guess for the force on the top beam2. Calculate the required applied force to generate this top beam force3. Compare to actual applied force, iterate until they match
Solve: F 1(F 3) F 1 = 0
F 33
r2a d
2
f
F 2b
r1
e
1 F 1g c
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
12/27
Solving Systems of Equations
Solve for the value of the vector x that satises the given system of equations.
Linear Systems:
a 11 x 1 + a 12 x 2 = b1a 21 x 1 + a 22 x 2 = b2 a 11 a 12a 21 a 22 x 1x 2 = b1b2 Ax = b
Non-Linear Systems:
f 1(x ) = b1f 2(x ) = b2 f (x ) = b
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
13/27
Linear Systems Example: Circuit Analysis
Kirchhoffs Laws:
1. The sum of all voltage changes around any closed loop is zero:
n e
i =1
V i = 0
2. The sum of all currents at any node is zero.
n b
i =1
I i = 0
Application of these two laws to an electrical circuit facilitates the formulation of a systemof n linear equations when n unknown quantities exist.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
14/27
Linear Systems Example: Circuit Analysis
Given that R 1 = 2 , R 2 = 4 , R 3 = 1 , E 1 = 6 V , E 2 = 9 V , and usingequations from Loop 1, Loop 2, and Node A we nd:
6 2I 1 I 3 = 09 + 4 I 2 I 3 = 0
I 1 + I 2 + I 3 = 0
2 0 10 4 1
1 1 1
I 1I 2I 3
= 6 90
Ax = b
Loop 1 Loop 2
Node A
Node B
R 1 R 3 R 2
I1 I3 I2
1 2
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
15/27
Linear Systems Example: Circuit Analysis
Matlab Implementation
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
16/27
Nonlinear Systems Example: Turbine Blade Analysis
Turbine blades are components of gas-turbine engines (used for aircraftand electricity generation)
Subject to high temperatures, highinertial forces, and high drag forces.
Commonly constructed of monocrystalline alloys such asInconel.
Structural and thermal analysesmust be performed simultaneously(coupled non-linear equations).
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
17/27
Nonlinear Systems Example: Turbine Blade Analysis
Methods apply to arbitrary non-linearequations (black-box functions)
T (x ) = f 1(L )
L = f 2(T (x ))
w
t
L0
x
vg , T g
f ac
ThermalAnalysis
StructuralAnalysis
T(x) (temperatureprofile)
L (dilated length)
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
18/27
Optimization
Find the values of the input variables to a function such that the function is minimized(or maximized), possibly subject to constraints.
Negative Null Form: minx
f (x )
subject to g(x ) 0
h (x ) = 0
Applications:
Engineering Design Regression Equilibrium in Nature
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
19/27
Optimization- Engineering Design
Maximize performance criteria subject to failure constraints:
Minimize bicycle frame weight subject to structural failure constraints by varying frameshape and thickness.
Minimize cost subject to performance and failure constraints.
Minimize vehicle cost subject to acceleration, top speed, handling, comfort, and safetyconstraints by varying vehicle design variables.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
20/27
Optimization- Regression
Regression: technique for approximating an unknown response surface (function).
Sample several points experimentally Fit an approximating function to the data points, minimizing the error between the
approximating function and the actual data points.
Criteria for best t:
SSE =n
i =1
( f i f i (p )) 2
minp
SSE (p )
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
21/27
Optimization- Equilibrium in Nature
Gravitational Potential Energy Objects seek position of minimum gravitational potential energy: V = mgh
Bubbles Energy associated with surface area.
Bubbles seek to minimize surface area spherical shape. Many small bubble coalesce to form fewer large bubbles.
Atomic Spacing Atoms seek positions that minimize elastic potential energy. At large separation distances attractive forces pull atoms together (depends on
bonding type).
At small separation distances repulsive forces due to positively charged nuclei pushatoms apart. The net force results in an energy well. The steepness of this well determines
material properties, such as thermal expansion.
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
22/27
Numerical Integration and Differentiation
Solve:
b
af (x )dx
df (x )dx
where f (x ) is an arbitrary continuous function.
Numerical approaches may be required when:
f (x ) is an analytical function that yields the integration unsolvable f (x ) is known only through discretely sampled data points
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
23/27
Numerical Integration Example: Falling Climber
Falling rock climber possesses kinetic energyT (energy of motion) that must be absorbedby the belay system.
T = F d rT at time of impact can be determinedanalytically. Since F v = m d vdt v , andusing the product rule ddt (v v ) = 2
d vdt v
d v v = 12 (v v ) .
F d r = md v v = 1
2
md (v v ) = 1
2
md v 2
T = r 2
r 1F dr =
v22
v 21
12
md v 2 = 12
m v 22 v21
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
24/27
Numerical Integration Example: Falling Climber
T can be determined analytically, howthe rope deects requires numericalmethods.
T = V = f
0F d r
The rope behaves as a nonlinear spring,and the force the rope exerts F is anunknown function of its deection .
F ( ) determined experimentally withdiscrete samples.
Approximation of F ( ) necessitatesnumerical integration.
Solving for f requires a root ndingtechnique.
V=T
F
f
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
25/27
Numerical Integration Example: Position Calculation
Accelerometer: measures second time derivative of position.Application: determining position from discrete set of acceleration values (robotics).
a = x = d2xdt 2
= dxdt
x = x 0 + t
0xdt
x = x 0 +
t
0
xdt
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
26/27
Numerical Differentiation Example: Solid Mechanics
Objective: Determine stress within a loadedobject to predict failure.
Constitutive Law:
= E = E du
dx
Photoelasticity Example:
Displacement u determined experimentally atdiscrete points, facilitating the calculation of dudx and .
University of Michigan Department of Mechanical Engineering January 10, 2005
-
8/12/2019 Application of Numerical Method Eng'Ng
27/27
Selected Additional Applications
Numerical solutions to differentialequations Finite Difference Method Computational Fluid Dynamics
(NavierStokes Equations) Dynamics (Newton-Euler &
Lagranges equations) Finite Element Method Solid Mechanics (Elasticity
equations) Heat Transfer (Heat equation)
Kinematics Simulation
Complex System Optimization
University of Michigan Department of Mechanical Engineering January 10, 2005