18
1 Lecture 11: Unsteady Conduction Error Analysis

1 Lecture 11: Unsteady Conduction Error Analysis

  • View
    227

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1 Lecture 11: Unsteady Conduction Error Analysis

1

Lecture 11: Unsteady ConductionError Analysis

Page 2: 1 Lecture 11: Unsteady Conduction Error Analysis

2

Last Time…

Looked at unsteady 2D conduction problems

Discretization schemes» Explicit» Implicit

Considered the properties of this scheme

Page 3: 1 Lecture 11: Unsteady Conduction Error Analysis

3

This Time…

Complete unsteady scheme discussion» Properties of Crank-Nicholson scheme

Truncation error analysis

Page 4: 1 Lecture 11: Unsteady Conduction Error Analysis

4

Unsteady Diffusion

Governing equation:

Integrate over control volume and time step

Page 5: 1 Lecture 11: Unsteady Conduction Error Analysis

5

Discrete Equation Set

Dropping superscript (1) for

compactness

Notice old values in discrete

equation

To make sense of this

equation, we will look at

particular values of time

interpolation factor f (f = 0,

1, 0.5)

Page 6: 1 Lecture 11: Unsteady Conduction Error Analysis

6

Crank-Nicholson Scheme

Crank-Nicholson scheme uses f=0.5

tt1t0

0

1Linear profile assumption across time step

Page 7: 1 Lecture 11: Unsteady Conduction Error Analysis

7

Crank-Nicholson: Discrete Equations

Linear equation

set at current

time level

Page 8: 1 Lecture 11: Unsteady Conduction Error Analysis

8

Properties of Crank-Nicholson Scheme

Linear algebraic set at current time level – need linear solver

When steady state is reached, P= 0P. In this limit,

steady discrete equations are recovered.» Steady state does not depend on history of time

stepping» Will get the same answer in steady state by time

marching as solving the original steady state equations directly

Will show later that truncation error is O (t2)

Page 9: 1 Lecture 11: Unsteady Conduction Error Analysis

9

Properties (cont’d)

What if

Crank-Nicholson scheme can be shown to be

unconditionally stable. But if time step is too large, we

can obtain oscillatory solutions

Page 10: 1 Lecture 11: Unsteady Conduction Error Analysis

10

Truncation Error: Spatial Approximations

Face mean value of Je represented by face centroid

value Source term represented by centroid value:

Gradient at face represented by linear variation between cell centroid:

What is the truncation error in these approximations?

C P PS V S S V

E P

e ex x

Page 11: 1 Lecture 11: Unsteady Conduction Error Analysis

11

Mean Value Approximation

Consider 1-D approximation and uniform grid.

What is the error in representing the mean value over

a face (or a volume) by its centroid value?

Expand in Taylor series about P

Page 12: 1 Lecture 11: Unsteady Conduction Error Analysis

12

Mean Value Approximation (cont’d)

Integrate over control volume:

Page 13: 1 Lecture 11: Unsteady Conduction Error Analysis

13

Mean Value Approximation (cont’d)

Complete integration to find:

Rearranging:

Thus is a second-order accurate

representationP

Page 14: 1 Lecture 11: Unsteady Conduction Error Analysis

14

Gradient Approximation

To find expand about ‘e’ face

Subtract to find:

Linear profile assumption => second-order approximation

ex

Page 15: 1 Lecture 11: Unsteady Conduction Error Analysis

15

Temporal Truncation Error: Implicit Scheme

Cell centroid value () = ()P at both time levels

» Same as the mean value approximation» Second-order approximation

Value of P1 prevails over time step

Source term at (1) prevails over time step

What is the truncation error of these two

approximations?

Page 16: 1 Lecture 11: Unsteady Conduction Error Analysis

16

Truncation Error in Implicit Scheme (cont’d)

Consider a variable S(t) which we want to integrate

over the time step:

Expand in Taylor series about new time level (1):

Page 17: 1 Lecture 11: Unsteady Conduction Error Analysis

17

Truncation Error in Implicit Scheme (cont’d)

Integrate over time step:

Thus, representing the mean value over the time step

by is a first-order accurate approximation1S S

Page 18: 1 Lecture 11: Unsteady Conduction Error Analysis

18

Closure

In this lecture, we:

Completed the examination of unsteady schemes:» Crank-Nicholson

Looked at truncation error in various spatial and

temporal approximations