Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Review of Numerical Methods-Numerical Methods in Engineering-review3-Civil Engineering and Geological Sciences, Study notes of Numerical Methods in Engineering

Describe a function by passing a polynomial through a set of functional values and/or functional derivative values. Review of Numerical Methods, ODE Classification, Runge Kutta Formulae, Deriving Runge Kutta Methods, Multi Step Methods, Open Formulae, Closed Formulae, Predictor Corrector Methods

Typology: Study notes

2011/2012

Uploaded on 02/20/2012

damyen
damyen 🇺🇸

4.4

(27)

274 documents

1 / 20

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CE 341/441 - Review 3 - Fall 2004
p. R3.1
REVIEW NO. 3
O.D.E. CLASSIFICATION
I.V.P.’s
B.V.P.’s
Can always decompose an nth order i.v.p. into simultaneous 1st order i.v.p.s
• e.g. - Converting the stated second order i.v.p. into two coupled first order i.v.p.’s
Ad2y
dt2
-------- Bdy
dt
------Cy++ gt()=y0() yo
=dy
dt
------0() Vo
=
Ad2y
dx2
-------- Bdy
dx
------Cy++ gx()=y0() yo
=yL() yL
=
n
dy
dt
------z=y0() yo
=
Adz
dt
----- BzCygt()+= z0() Vo
=
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Review of Numerical Methods-Numerical Methods in Engineering-review3-Civil Engineering and Geological Sciences and more Study notes Numerical Methods in Engineering in PDF only on Docsity!

p. R3.

REVIEW NO. 3O.D.E. CLASSIFICATION • I.V.P.’s • B.V.P.’s • Can always decompose an

n

th^

order i.v.p. into

simultaneous 1

st^

order i.v.p.’s

• e.g. - Converting the stated second order i.v.p. into two coupled first order i.v.p.’s

A

d

2 y^2 dt

B

dy ----- dt

-^

Cy

g t

y^

)^

y^ o

dy ----- dt

)^

V

o

=

A

d

2 y d x

2

B

dy ----- dx

-^

Cy

g x

(^

y^

)^

y^ o

y L (

)^

y^ L

n

dy ----- dt

-^

z

y^

)^

y^ o

A

dz ---- dt

-^

Bz

-^

Cy

-^

g t

z^

)^

V

o

=

p. R3.

I.V.P. SOLUTIONS - 1ST ORDER EQUATIONS - SINGLE STEP METHODS • Solve

• Runge-Kutta formulae are single step methods^ INSERT FIGURE NO. 113 Runge-Kutta Formulae

(slope at

dy ----- dt

-^

f^

y t ,(

y^

)^

y^ o

yj+ tj+

tj yj

y

t

t

y^

j^

1 +^

y^

j^

t a

g 1

1

a

g 2 2

a^ n

g n

(^

g^1

f^

t^ j

y^

j , (^

t^ j

y^

j , (^

g^2

f^

t^ j

p

t y

j ,^

p^2

tg

1

(^

g^3

f^

t^ j

p

t y

j ,^

p^4

tg

2

(^

p. R3.

Step 2 • Substitute in Taylor series expanded forms of

into the R.K. formula

Step 3 • Taylor series expand for

about

is a function of

only

apply a 1-D Taylor series

• However by definition• Must use chain rule to differentiate

g

1

g^2

,^

y^

j^

1 +^

y^

j

y t ( )

t

y^

j^

1 +^

y^

j^

t

dy ----- dt

j

(^2) t 2

-^

d

2 y^2 dt

j

O

t (^

dy ----- dt

-^

f^

t y ,(

f^

t y t

(^

d

2 y^2 dt

f^ ∂

t

f

y

dy ----- dt

d

2 y^2 dt

ft

f

y

f

p. R3.

• Substituting Step 4 • Match term by term expressions for

obtained in steps 2 and 3

• Set up equations for coefficients and solve to a free variable Step 5 • Select the free variable

y^

j^

1 +^

y^

j^

t f

j

(^2) t 2

-^

ft

j

f^

j

f

y

j

^

^

^

O

(^3) t (^

y^

j^

1

p. R3.

SOLUTIONS TO I.V.P.’S - MULTI-STEP METHODS • Multi-step methods may involve more than one previous discrete point^ INSERT FIGURE NO. 114 • Open formulae, closed formulae and predictor-corrector methods are all multi-step

methods

yj

yj+1 tj+

y

t

yj-

yj-

tj

tj-

tj-

p. R3.

Open Formulae • Solve

such that unknown solution is computed explicitly (i.e.

is expressed in terms of only known values of

,^

,^

, etc.)

How to Derive Open Formulae Step 1 • Take a forward Taylor series of

about

• However

etc.

• Substituting

dy ----- dt

-^

f^

t y ,(

y^

)^

y^ o

y^

j^

1 +^

y^

j^

y^

j^

1

-^

y^

j^

2

y^

t^ j

y^

j^

1 +^

y^

j^

dy ----- tdt

j

(^2) t 2!

-^

d

2 y

j dt

2

(^3) t 3!

-^

d

3 y

j dt

3

-^

dy ----- dt

j

f^

j

=

d

2 y^2 dt

j

˙ f j

=

y^

j^

1 +^

y^

j^

t^

f^

j

t -----^ 2!

f

˙ j

t (^

-^

˙˙ fj

^

^

p. R3.

Advantages of Open formulae •^

only needs to be evaluated at

known

values, therefore no iteration is required

• More efficient per time step than R.K. Disadvantages of Open formulae • Stability• Accuracy• Difficult to change time step

f

CE 341/441 - Review 3 - Fall 2004

p. R3.

Closed Formulae • Solve

such that the unknown solution is computed implicitly

(i.e.

is expressed in terms of both unknown

and known values of

,^

, etc.)

How to Derive Closed Formulae Step 1 • Use a backward Taylor series expansion for

about

• Re-arrange and substitute

,^

etc.

dy ----- dt

-^

f^

t y ,(

y^

)^

y^ o

y^

j^

1 +^

y^

j^

1 +^

y^

j^

y^

j^

1

y^

j^

2

y t ( )

y t

t

(^

y^

j^

y^

j^

1 +^

dyt ----- dt

j^

1

–^

(^2) t 2!

d -

2 y^2 dt

j^

1

(^3) t 3!

d -

3 y^3 dt

j^

1

H

. O

. T

dy ----- dt

j^

1

f^

j^

1

=

d

2 y^2 dt

j^

1

˙ f j^

1

=

y^

j^

1 +^

y^

j^

t^

f^

j^

1

t 2

˙ f j^

1

(^2) t 3!

-^

˙˙ f j^

1 +^

p. R3.

Predictor-Corrector Methods Predictor

Open Formula

• e.g.

Corrector

Closed Formula

• e.g.

• first iteration

use predictor value

• then iterate until convergence

Starter • Applies a R.K. formula to start the computation

y^

j^

1 (^0) ( ) +

y^

j^

t^

3 ---^2

f^

j

1 ---^2

f^

j^

1

y^

j^

1 k^ +

1

(^

)^

y^

j

t 2

f^

j^

1 k ( )^ +

f^

j

[^

]

p. R3.

Modifier • Improves first iteration value for the Corrector based on estimated truncation error Advantages of Predictor-Corrector Methods • Very efficient

• Less work per time step as compared to R.K. methods• Only few iterations needed when compared to closed formulae

• Good stability (stability of the corrector)• Very accurate (more so than open formulae)• Easy to estimate errors

p. R3.

COURSE SUMMARYSurvey of Many Numerical Methods Numerical Interpolation • Describe a function by passing a polynomial through a set of functional values and/or

functional derivative values

• Example Uses:

• Find functional values at locations other than the nodes• Basis of the finite element method

Numerical Differentiation • Find discrete approximations to differentiation. Derivatives are approximated by sums

and differences of functional values at discrete points (nodes) in space/time

• Uses:

• Solve o.d.e.’s and p.d.e.’s using F.D. methods• Estimate errors in numerical approximations

p. R3.

Numerical Integration • Find integrals based on discrete functional values at a given set of integration points• Uses:

• Integrate results such as flows etc.• Use for finite element methods (integral methods)

O.D.E./I.V.P.’s

Time Dependent Problems

• Can reduce any order o.d.e./i.v.p. into a system of 1st order o.d.e./i.v.p.’s• Time march

go from one time level to the next

• One step methods

Runge-Kutta

• Multi-step methods

Open, Closed and Predictor-Corrector Methods

O.D.E./B.V.P.’s

Spatially Dependent Problems

• Solve by substituting in F.D. approximations for the terms• Generate enough algebraic equations to solve for the unknowns

p. R3.

Course Concepts • Many of these methods are inter-related/used together

• In their derivation• In their use

• All methods are based on representing continuous functions at discrete points in

space/time

• As engineers we wish to solve complicated problems often described by mathematical

equations

• Solve o.d.e.’s/p.d.e.’s• Numerical methods allow us to solve mathematical problems for which closed form

solutions are not available

p. R3.

• We must be very careful in the application of numerical methods

• Numerical models/codes are never a black box!• Numerical models/codes must be applied understanding both the numerics and

physics incorporated into the model/code!

• Numerical models/codes can give results which look nice but are totally

wrong!!!

• Must try to

assess errors

• Error analysis is very important! • A solution without an error estimate is NOT A GOOD SOLUTION

• We have learned many tools used in numerical analysis

• Built a foundation with which to understand numerical models/codes• Take advanced numerical courses• Extensive literature on numerical analysis