16
Review of accuracy analysis Euler: Local error = O(h 2 ) Global error = O(h) Runge-Kutta Order 4: Local error = O(h 5 ) Global error = O(h 4 ) But there’s more to worry about: stability and convergence

Review of accuracy analysis

  • Upload
    raisie

  • View
    40

  • Download
    0

Embed Size (px)

DESCRIPTION

Review of accuracy analysis. Euler: Local error = O(h 2 ) Global error = O(h). Runge-Kutta Order 4: Local error = O(h 5 ) Global error = O(h 4 ). But there’s more to worry about: stability and convergence. Stability & Convergence. - PowerPoint PPT Presentation

Citation preview

Page 1: Review of accuracy analysis

Review of accuracy analysis

Euler: Local error = O(h2) Global error = O(h)

Runge-Kutta Order 4: Local error = O(h5) Global error = O(h4)

But there’s more to worry about: stability and convergence

Page 2: Review of accuracy analysis

Stability & Convergence

Stability: Suppose we perturb initial condition by ε. Then 1) effect 0 as ε 0, and 2) effect grows only polynomially fast as h 0.

Convergence: Solution of discrete problem solution of continuous problem as h 0.

Page 3: Review of accuracy analysis

Stability & Convergence

For Ordinary Differential Equations (ODEs), Stability ↔ Convergence

But for Partial Differential Equations (PDEs), where there are more than one variable--- time and space, for example---Stability and convergence are not equivalent. We require an additional condition.

Page 4: Review of accuracy analysis

Lax’s Theorem

Consistent: A finite-difference scheme is consistent if the local truncation error 0 as the grid size 0. (Not always true for PDEs, as we shall see.)

Lax’s Theorem: If a finite-difference scheme for an initial-value PDE is consistent, then Stability ↔ Convergence

Page 5: Review of accuracy analysis

PDEs

Partial differential equations are at the very heart of many sciences, and provide our best understanding of the way the world works. Some examples:

Quantum mechanics; propagation of wavesof all kinds; elasticity; diffusion of particles,population, prices, information; spread ofheat; electrostatic field; magnetic fields, fluid flow; etc., etc., etc.

Page 6: Review of accuracy analysis

To see the power…

Suppose you work for the government and your job is to worry about the possibility of terrorist nuclear weapons. What is the critical mass of U92

235 (“25”)?

The following material was classified, but is now public: see The Los Alamos Primer: The first lectures on how to build an atomic bomb, R. Serber, Univ. of Calif. Press, Berkeley, 1992. QC773 .A1S47

Page 7: Review of accuracy analysis
Page 8: Review of accuracy analysis

Simplest model of neutron diffusion

2

2

2

2

2

22 ),,(

z

f

y

f

x

fzyxf

,interms)(1 22

2

r

fr

rrf

Laplace operator:

In spherical coordinates:

So for spherically symmetric systems:

)(1 22

2

r

fr

rrf

Page 9: Review of accuracy analysis

Consider a sphere of “25”Let N(t,x,y,z) be the number of neutrons in a tiny cube and consider the net growth of N at any given point in space and any particular time:

NNDt

N

12

Rate of change of neutron flux

Diffusion influx fission

Page 10: Review of accuracy analysis

Consider a sphere of “25”

where = mean time between fissions = avg. no. of neutrons produced per fission D = diffusion constant

Page 11: Review of accuracy analysis
Page 12: Review of accuracy analysis

Separation of variables: an important technique

/1 ),,( tezyxNN

where = effective neutron number

Leads to

112 1

ND

N

Page 13: Review of accuracy analysis

Separation of variables: an important technique

r

RrN

/sin1

2

2

1R

D

For sphere of radius R, can check solution

With the boundary condition

So critical mass is determined by

1

22

D

R

Page 14: Review of accuracy analysis

Answers

For Uranium:

kgMass

cmR

D

critical

critical

200

5.13

3.2

2202

More accurate boundary condition gives 56 kg, and thick U tamper gives 15 kg

Page 15: Review of accuracy analysis

Little Boy

Page 16: Review of accuracy analysis