Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied...

15
Numerical Analysis 2015 Fall

Transcript of Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied...

Page 1: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Numerical Analysis

2015 Fall

Page 3: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Mathematical Model

Extraction

Page 4: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

A Simple Mathematical Model • A mathematical model can be broadly defined as a

formulation or equation that expresses the essential features of a physical system or process in mathematical terms.

• Models can be represented by a functional relationship between dependent variables, independent variables, parameters, and forcing functions.

Page 5: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Model Function

• Dependent variable - a characteristic that usually reflects the

behavior or state of the system

• Independent variables - dimensions, such as time and space, along

which the system’s behavior is being determined

• Parameters - constants reflective of the system’s properties or

composition

• Forcing functions - external influences acting upon the system that

cannot be changed within the system

Dependentvariable

findependent

variables, parameters,

forcingfunctions

Page 6: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Model Function Example

mgFD

Newton’s 2nd raw

Air resistance 2vcF dU

maF

Page 7: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Model Function Example

UD FFF

Bungee Jumper

mavcmgF d 2

dt

dvmvcmg d 2

A differential eq.

Page 8: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Numerical Modeling • System models - 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

where the change in velocity is determined by the gravitational forces acting on the jumper versus the drag force.

dv

dt g

cd

mv2

Page 9: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Analytical solution

• Assuming a bungee jumper is in mid-flight, an analytical model for the jumper’s velocity, accounting for drag, is

• Dependent variable - velocity v

• Independent variables - time t

• Parameters - mass m, drag coefficient cd

• Forcing function - gravitational acceleration g

v t gm

cdtanh

gcd

mt

Page 10: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Analytical solution • 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

v t gm

cdtanh

gcd

mt

Page 11: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Model Results

v t gm

cdtanh

gcd

mt

Closed form solution

Analytical solution

dv

dt g

cd

mv2

of

Page 12: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Model Results

Numerical solution

dv

dt g

cd

mv2

of

In many cases..

analytical solution cannot be obtained ex) equation does not have a closed from solution

Page 13: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Numerical Methods

• To solve the problem using a numerical method, note that the time rate of change of velocity can be approximated as:

dv

dtv

tv ti1 v ti ti1 ti

Assume that we cannot solve the diff. eq.

analytically

Page 14: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Numerical Methods

2

1

1i

d

ii

ii tvm

cg

tt

tvtv

2vm

cg

dt

dv d

)( 1

2

1 iiid

ii tttvm

cgtvtv

Numerical solution

Next = present + slope time step

dv

dt g

cd

mv2

slope

Page 15: Numerical Analysis - PerCV Lab. at KHUcvlab.khu.ac.kr/NALecture2.pdf ·  · 2015-09-07Applied Numerical Methods W/MATLAB: for Engineers & Scientists ... methods or numerical methods.

Numerical solution • 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

)( 1

2

1 iiid

ii tttvm

cgtvtv