+ All Categories
Home > Documents > A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method...

A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method...

Date post: 18-Mar-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
17
1 Computational Methods Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal 14300 Pulau Pinang Week 3 (Lecture 2)
Transcript
Page 1: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

1

Computational Methods

Dr. Farzad Ismail

School of Aerospace and Mechanical Engineering

Universiti Sains Malaysia

Nibong Tebal 14300 Pulau Pinang

Week 3 (Lecture 2)

Page 2: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

2

Overview

We already know the nature of PDE’s, now we will

attempt to discretize and compute the PDE’s.

We will focus on model problems.

These model problems have difficulties that are shared

with more realistic models, but much simpler to handle.

Page 3: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

3

Overview (cont’d)

The model problems that will be discussed are

- hyperbolic

- parabolic

- elliptic

Page 4: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

4

Overview (cont’d)

We will discretize the models using FD method.

Only simple uniform grids are used.

Stick to the notations introduced before.

Page 5: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

5

Overview (cont’d)

Evolution Equilibrium

Page 6: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

6

Computation of Parabolic Equation

Apply FTCS scheme

Page 7: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

7

von Neumann (VN) Analysis

A method to determine stability of numerical schemes

Decompose solution in terms of Fourier modes

Variation in space in terms of sine wave from θ=[0,π]

g is amplification factor, indication for stability

Even though it only applies for linear problems, it

provides a reasonably accurate guide to more general

cases.

Page 8: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

8

Von Neumann Analysis on FTCS

Rewrite FTCS scheme solving 1D heat equation

Using von Neumann analysis

Page 9: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

9

VN on FTCS (cont’d)

This means that if input is pure sine wave (Fourier

mode), after 1 time step the sine wave will be

amplified by g which depends on θ and μ.

Restriction must be done on μ, not on θ=[0, π].

For stability requires , hence

Page 10: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

10

Comments using FTCS on 1D Heat Eqn

The scheme is conditionally stable

If we use small Δx, we need extremely small Δt since it

is scaled in

It can be shown that the restriction

applies to all numerical schemes solving the 1D heat

eqn

Page 11: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

11

FTCS Solution on 1D Heat Eqn

The electric blanket problem-heat added in the center of blanket

Use 1D model where at t=0, add heat such that

And switch off power

Page 12: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

12

FTCS Solution on 1D Heat Eqn (cont’d)

Results are very accurate but oscillations will grow wild if restriction is violated.

Page 13: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

13

Computation of Hyperbolic Equation

Apply FTCS scheme

Page 14: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

14

FTCS Solution on 1D Advection Eqn

FTCS is unstable

Just because it works for 1 type of PDE, does not mean it will work for other types

Page 15: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

15

VN Analysis on FTCS (advection)

Rewrite FTCS scheme solving 1D heat equation

Using von Neumann analysis

FTCS unconditionally unstable!

Page 16: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

16

Computation of Hyperbolic Equation

Apply 1st order upwind scheme

a > 0

Page 17: A New Curriculum for Mathematics - Hangar School of ...€¦ · von Neumann (VN) Analysis A method to determine stability of numerical schemes Decompose solution in terms of Fourier

17

1st order Upwind Solution on 1D Advection Eqn

1st order upwind is conditionally stable

It can be shown using VN analysis that scheme is stable if


Recommended