m.sc. in m eteo rology u cd nu m er ical w eather predicti onekalnay/syllabi/aosc... · m.sc. in m...

97
M.Sc. in Meteorology UCD Numerical Weather Prediction Prof Peter Lynch Meteorology & Climate Centre School of Mathematical Sciences University College Dublin Second Semester, 2005–2006. In this section we consider the numerical discretization of the equations of motion.

Upload: others

Post on 08-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

M.Sc. in Meteorology UCD

Numerical WeatherPrediction

Prof Peter Lynch

Meteorology & Climate CentreSchool of Mathematical Sciences

University College Dublin

Second Semester, 2005–2006.

In this section we consider the numerical discretization of the equations of motion.

Page 2: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Text for the CourseThe lectures will be based closely on the text

Atmospheric Modeling, Data Assimilation and Predictabilityby

Eugenia Kalnay

published by Cambridge University Press (2002).

2

Page 3: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Numerical Methods (Kalnay, Ch. 3)• NWP is an initial/boundary value problem

3

Page 4: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Numerical Methods (Kalnay, Ch. 3)• NWP is an initial/boundary value problem

• Given

– an estimate of the present state of the atmosphere(initial conditions)

– appropriate surface and lateral boundary conditions

the model simulates or forecasts the evolution of the at-mosphere.

3

Page 5: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Numerical Methods (Kalnay, Ch. 3)• NWP is an initial/boundary value problem

• Given

– an estimate of the present state of the atmosphere(initial conditions)

– appropriate surface and lateral boundary conditions

the model simulates or forecasts the evolution of the at-mosphere.

• The more accurate the estimate of the initial conditions,the better the quality of the forecasts.

3

Page 6: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Numerical Methods (Kalnay, Ch. 3)• NWP is an initial/boundary value problem

• Given

– an estimate of the present state of the atmosphere(initial conditions)

– appropriate surface and lateral boundary conditions

the model simulates or forecasts the evolution of the at-mosphere.

• The more accurate the estimate of the initial conditions,the better the quality of the forecasts.

• Similariy, the more accurate the solution method, thebetter the quality of the forecasts.

3

Page 7: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Numerical Methods (Kalnay, Ch. 3)• NWP is an initial/boundary value problem

• Given

– an estimate of the present state of the atmosphere(initial conditions)

– appropriate surface and lateral boundary conditions

the model simulates or forecasts the evolution of the at-mosphere.

• The more accurate the estimate of the initial conditions,the better the quality of the forecasts.

• Similariy, the more accurate the solution method, thebetter the quality of the forecasts.

We now consider methods of solving PDEs numerically.

3

Page 8: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Partial Di!erential EquationsWe begin by looking at the classification of partial di!eren-tial equations (PDEs).

4

Page 9: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Partial Di!erential EquationsWe begin by looking at the classification of partial di!eren-tial equations (PDEs).

The general second order linear PDE in 2D may be written

A!2u

!x2 + 2B!2u

!x!y+ C

!2u

!y2 + D!u

!x+ E

!u

!y+ Fu = 0

4

Page 10: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Partial Di!erential EquationsWe begin by looking at the classification of partial di!eren-tial equations (PDEs).

The general second order linear PDE in 2D may be written

A!2u

!x2 + 2B!2u

!x!y+ C

!2u

!y2 + D!u

!x+ E

!u

!y+ Fu = 0

Second order linear partial di!erential equations are classi-fied into three types depending on the sign of B2 − AC:

• Hyperbolic: B2 − AC > 0

• Parabolic: B2 − AC = 0

• Elliptic: B2 − AC < 0

4

Page 11: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Partial Di!erential EquationsWe begin by looking at the classification of partial di!eren-tial equations (PDEs).

The general second order linear PDE in 2D may be written

A!2u

!x2 + 2B!2u

!x!y+ C

!2u

!y2 + D!u

!x+ E

!u

!y+ Fu = 0

Second order linear partial di!erential equations are classi-fied into three types depending on the sign of B2 − AC:

• Hyperbolic: B2 − AC > 0

• Parabolic: B2 − AC = 0

• Elliptic: B2 − AC < 0

Recall the equations of the conic sections

x2

a2− y2

b2= 1

︸ ︷︷ ︸Hyperbola

x2 = y︸ ︷︷ ︸Parabola

x2

a2+

y2

b2= 1

︸ ︷︷ ︸Ellipse

4

Page 12: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The simplest (canonical) examples of these equations are

(a)!2u

!t2= c2!

2u

!x2 Wave equation (hyperbolic).

(b)!u

!t= "

!2u

!x2 Di!usion equation (parabolic).

(c)!2u

!x2 +!2u

!y2 = f (x, y) Poisson’s equation (elliptic).

5

Page 13: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The simplest (canonical) examples of these equations are

(a)!2u

!t2= c2!

2u

!x2 Wave equation (hyperbolic).

(b)!u

!t= "

!2u

!x2 Di!usion equation (parabolic).

(c)!2u

!x2 +!2u

!y2 = f (x, y) Poisson’s equation (elliptic).

Example of hyperbolic equation:

• Vibrating String.

• Water Waves.

5

Page 14: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The simplest (canonical) examples of these equations are

(a)!2u

!t2= c2!

2u

!x2 Wave equation (hyperbolic).

(b)!u

!t= "

!2u

!x2 Di!usion equation (parabolic).

(c)!2u

!x2 +!2u

!y2 = f (x, y) Poisson’s equation (elliptic).

Example of hyperbolic equation:

• Vibrating String.

• Water Waves.

Example of parabolic equation:

• Heated Rod.

• Viscous Damping.

5

Page 15: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Examples of Elliptic Equation:

• Shape of a drum.

• Streamfunction/vorticity relationship.

# # #

6

Page 16: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Examples of Elliptic Equation:

• Shape of a drum.

• Streamfunction/vorticity relationship.

# # #

Note: The following standard elliptic equations arise re-peatedly in a multitude of contexts throughout science:

• Poisson’s Equation: ∇2u = f .

• Laplace’s Equation: ∇2u = 0.

6

Page 17: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The behaviour of the solutions, the proper initial and/orboundary conditions, and the numerical methods that canbe used to find the solutions depend essentially on the typeof PDE that we are dealing with.

7

Page 18: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The behaviour of the solutions, the proper initial and/orboundary conditions, and the numerical methods that canbe used to find the solutions depend essentially on the typeof PDE that we are dealing with.

Thus, we need to study the canonical PDEs to develop anunderstanding of their properties, and then apply similarmethods to the more complicated NWP equations.

# # #

7

Page 19: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The behaviour of the solutions, the proper initial and/orboundary conditions, and the numerical methods that canbe used to find the solutions depend essentially on the typeof PDE that we are dealing with.

Thus, we need to study the canonical PDEs to develop anunderstanding of their properties, and then apply similarmethods to the more complicated NWP equations.

# # #

A fourth canonical equation, of central importance in atmo-spheric science, is

(d)!u

!t+ c

!u

!x= 0 Advection equation.

7

Page 20: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The behaviour of the solutions, the proper initial and/orboundary conditions, and the numerical methods that canbe used to find the solutions depend essentially on the typeof PDE that we are dealing with.

Thus, we need to study the canonical PDEs to develop anunderstanding of their properties, and then apply similarmethods to the more complicated NWP equations.

# # #

A fourth canonical equation, of central importance in atmo-spheric science, is

(d)!u

!t+ c

!u

!x= 0 Advection equation.

The advection equation has the solution u(x, t) = u(x− ct, 0).

7

Page 21: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The advection equation is a first order PDE, but it can alsobe classified as hyperbolic, since its solutions satisfy thewave equation:

8

Page 22: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The advection equation is a first order PDE, but it can alsobe classified as hyperbolic, since its solutions satisfy thewave equation:

!2u

!t2− c2!

2u

!x2 =

(!

!t+ c

!

!x

) (!

!t− c

!

!x

)u = 0

Obviously, if !u/!t + c !u/!x = 0, then u is a solution of thewave equation.

# # #

8

Page 23: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The advection equation is a first order PDE, but it can alsobe classified as hyperbolic, since its solutions satisfy thewave equation:

!2u

!t2− c2!

2u

!x2 =

(!

!t+ c

!

!x

) (!

!t− c

!

!x

)u = 0

Obviously, if !u/!t + c !u/!x = 0, then u is a solution of thewave equation.

# # #

We note that if the elliptic Laplace equation is split up likethis, the component operators are complex:

!2u

!x2 +!2u

!y2 =

(!

!x+ i

!

!y

) (!

!x− i

!

!y

)u = 0

8

Page 24: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The advection equation is a first order PDE, but it can alsobe classified as hyperbolic, since its solutions satisfy thewave equation:

!2u

!t2− c2!

2u

!x2 =

(!

!t+ c

!

!x

) (!

!t− c

!

!x

)u = 0

Obviously, if !u/!t + c !u/!x = 0, then u is a solution of thewave equation.

# # #

We note that if the elliptic Laplace equation is split up likethis, the component operators are complex:

!2u

!x2 +!2u

!y2 =

(!

!x+ i

!

!y

) (!

!x− i

!

!y

)u = 0

We cannot split this equation into two real first-orderfactors.

8

Page 25: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Example: Solve the Wave EquationWe will derive the solution of the wave equation bytransformation of variables.

9

Page 26: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Example: Solve the Wave EquationWe will derive the solution of the wave equation bytransformation of variables.

Define the new variables $ = x− ct and % = x + ct.

9

Page 27: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Example: Solve the Wave EquationWe will derive the solution of the wave equation bytransformation of variables.

Define the new variables $ = x− ct and % = x + ct.

Then

ux = $xu$ + %xu% = u$ + u%

ut = $tu$ + %tu% = −cu$ + cu%

uxx = [u$$ + 2u$% + u%%]

utt = c2[u$$ − 2u$% + u%%]

9

Page 28: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Example: Solve the Wave EquationWe will derive the solution of the wave equation bytransformation of variables.

Define the new variables $ = x− ct and % = x + ct.

Then

ux = $xu$ + %xu% = u$ + u%

ut = $tu$ + %tu% = −cu$ + cu%

uxx = [u$$ + 2u$% + u%%]

utt = c2[u$$ − 2u$% + u%%]

Therefore

[utt − c2uxx] = −4c2u$% = 0 which means!2u

!$!%= 0 .

9

Page 29: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Example: Solve the Wave EquationWe will derive the solution of the wave equation bytransformation of variables.

Define the new variables $ = x− ct and % = x + ct.

Then

ux = $xu$ + %xu% = u$ + u%

ut = $tu$ + %tu% = −cu$ + cu%

uxx = [u$$ + 2u$% + u%%]

utt = c2[u$$ − 2u$% + u%%]

Therefore

[utt − c2uxx] = −4c2u$% = 0 which means!2u

!$!%= 0 .

The solution of this equation may be expressed as a sum ofa function of $ and another of %: u = f (x− ct) + g(x + ct).

9

Page 30: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Well-posednessA well-posed initial/boundary condition problem has a uniquesolution that depends continuously on the initial/boundaryconditions.

10

Page 31: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Well-posednessA well-posed initial/boundary condition problem has a uniquesolution that depends continuously on the initial/boundaryconditions.

The specification of proper initial conditions and boundaryconditions for a PDE is essential in order to have a well-posed problem.

10

Page 32: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Well-posednessA well-posed initial/boundary condition problem has a uniquesolution that depends continuously on the initial/boundaryconditions.

The specification of proper initial conditions and boundaryconditions for a PDE is essential in order to have a well-posed problem.

• If too many initial/boundary conditions are specified, therewill be no solution.

10

Page 33: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Well-posednessA well-posed initial/boundary condition problem has a uniquesolution that depends continuously on the initial/boundaryconditions.

The specification of proper initial conditions and boundaryconditions for a PDE is essential in order to have a well-posed problem.

• If too many initial/boundary conditions are specified, therewill be no solution.

• If too few are specified, the solution will not be unique.

10

Page 34: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Well-posednessA well-posed initial/boundary condition problem has a uniquesolution that depends continuously on the initial/boundaryconditions.

The specification of proper initial conditions and boundaryconditions for a PDE is essential in order to have a well-posed problem.

• If too many initial/boundary conditions are specified, therewill be no solution.

• If too few are specified, the solution will not be unique.

• If the number of initial/boundary conditions is right, butthey are specified at the wrong place or time, the solu-tion will be unique, but it will not depend smoothly oninitial/boundary conditions.

10

Page 35: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Well-posednessA well-posed initial/boundary condition problem has a uniquesolution that depends continuously on the initial/boundaryconditions.

The specification of proper initial conditions and boundaryconditions for a PDE is essential in order to have a well-posed problem.

• If too many initial/boundary conditions are specified, therewill be no solution.

• If too few are specified, the solution will not be unique.

• If the number of initial/boundary conditions is right, butthey are specified at the wrong place or time, the solu-tion will be unique, but it will not depend smoothly oninitial/boundary conditions.

For ill-posed problems, small errors in the initial/boundaryconditions may produce huge errors in the solution.

10

Page 36: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

In any of the above cases we have an ill-posed problem.

11

Page 37: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

In any of the above cases we have an ill-posed problem.

We can never find a numerical solution of a problem that isill posed: the computation will react by blowing up.

# # #

11

Page 38: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

In any of the above cases we have an ill-posed problem.

We can never find a numerical solution of a problem that isill posed: the computation will react by blowing up.

# # #

Example: Solve the hyperbolic equation

!2u

!t2− c2 !2u

!x2 = 0

subject to the following conditions:

u(x, 0) = a0(x) u(x, 1) = a1(x) u(0, t) = b0(t) u(0, t) = b1(t)

11

Page 39: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

In any of the above cases we have an ill-posed problem.

We can never find a numerical solution of a problem that isill posed: the computation will react by blowing up.

# # #

Example: Solve the hyperbolic equation

!2u

!t2− c2 !2u

!x2 = 0

subject to the following conditions:

u(x, 0) = a0(x) u(x, 1) = a1(x) u(0, t) = b0(t) u(0, t) = b1(t)

Example: Solve the advection equation

!u

!t+ c

!u

!x= 0

on 0 ≤ x ≤ 1 and t ≥ 0 with the initial/boundary conditions

u(x, 0) = u0(x) u(0, t) = uL(t) u(1, t) = uR(t) .

11

Page 40: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Elliptic CaseSecond order elliptic equations require one boundary con-dition at each point of the spatial boundary.

12

Page 41: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Elliptic CaseSecond order elliptic equations require one boundary con-dition at each point of the spatial boundary.

These are pure boundary value, time-independent prob-lems. The boundary conditions may be:

12

Page 42: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Elliptic CaseSecond order elliptic equations require one boundary con-dition at each point of the spatial boundary.

These are pure boundary value, time-independent prob-lems. The boundary conditions may be:

• The value of the function (Dirichlet problem), as whenwe specify the temperature on the edge of a plate.

12

Page 43: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Elliptic CaseSecond order elliptic equations require one boundary con-dition at each point of the spatial boundary.

These are pure boundary value, time-independent prob-lems. The boundary conditions may be:

• The value of the function (Dirichlet problem), as whenwe specify the temperature on the edge of a plate.

• The normal derivative (Neumann problem), as when wespecify the heat flux.

12

Page 44: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Elliptic CaseSecond order elliptic equations require one boundary con-dition at each point of the spatial boundary.

These are pure boundary value, time-independent prob-lems. The boundary conditions may be:

• The value of the function (Dirichlet problem), as whenwe specify the temperature on the edge of a plate.

• The normal derivative (Neumann problem), as when wespecify the heat flux.

• A mixed boundary condition, involving a linear combina-tion of the function and its derivative (Robin problem).

12

Page 45: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Parabolic CaseLinear parabolic equations require one initial condition atthe initial time and one boundary condition at each pointof the spatial boundaries.

13

Page 46: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Parabolic CaseLinear parabolic equations require one initial condition atthe initial time and one boundary condition at each pointof the spatial boundaries.

For example, for a heated rod, we need the initial tempera-ture at each point T (x, 0) and the temperature at each end,T (0, t) and T (L, t) as a function of time.

13

Page 47: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Parabolic CaseLinear parabolic equations require one initial condition atthe initial time and one boundary condition at each pointof the spatial boundaries.

For example, for a heated rod, we need the initial tempera-ture at each point T (x, 0) and the temperature at each end,T (0, t) and T (L, t) as a function of time.

In atmospheric science, the parabolic case arises mainlywhen we consider di!usive processes: internal viscosity;boundary layer friction; etc.

13

Page 48: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Parabolic CaseLinear parabolic equations require one initial condition atthe initial time and one boundary condition at each pointof the spatial boundaries.

For example, for a heated rod, we need the initial tempera-ture at each point T (x, 0) and the temperature at each end,T (0, t) and T (L, t) as a function of time.

In atmospheric science, the parabolic case arises mainlywhen we consider di!usive processes: internal viscosity;boundary layer friction; etc.

To give an example, consider the highlighted terms of theNavier-Stokes Equations

!V

!t+ V ·∇V + 2"×V +

1

&∇p = '∇2V

# # #

13

Page 49: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Parabolic CaseLinear parabolic equations require one initial condition atthe initial time and one boundary condition at each pointof the spatial boundaries.

For example, for a heated rod, we need the initial tempera-ture at each point T (x, 0) and the temperature at each end,T (0, t) and T (L, t) as a function of time.

In atmospheric science, the parabolic case arises mainlywhen we consider di!usive processes: internal viscosity;boundary layer friction; etc.

To give an example, consider the highlighted terms of theNavier-Stokes Equations

!V

!t+ V ·∇V + 2"×V +

1

&∇p = '∇2V

# # #

Break here.13

Page 50: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Hyperbolic CaseLinear hyperbolic equations require as many initial condi-tions as the number of characteristics that come out of everypoint in the surface t = 0, and as many boundary conditionsas the number of characteristics that cross a point in the(space) boundary pointing inwards.

14

Page 51: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Hyperbolic CaseLinear hyperbolic equations require as many initial condi-tions as the number of characteristics that come out of everypoint in the surface t = 0, and as many boundary conditionsas the number of characteristics that cross a point in the(space) boundary pointing inwards.

For example: Solve !u/!t + c !u/!x = 0 for x > 0, t > 0.

14

Page 52: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Hyperbolic CaseLinear hyperbolic equations require as many initial condi-tions as the number of characteristics that come out of everypoint in the surface t = 0, and as many boundary conditionsas the number of characteristics that cross a point in the(space) boundary pointing inwards.

For example: Solve !u/!t + c !u/!x = 0 for x > 0, t > 0.

The characteristics are the solutions of dx/dt = c.

The space boundary is x = 0.

14

Page 53: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Hyperbolic CaseLinear hyperbolic equations require as many initial condi-tions as the number of characteristics that come out of everypoint in the surface t = 0, and as many boundary conditionsas the number of characteristics that cross a point in the(space) boundary pointing inwards.

For example: Solve !u/!t + c !u/!x = 0 for x > 0, t > 0.

The characteristics are the solutions of dx/dt = c.

The space boundary is x = 0.

If c > 0, we need the initial condition u(x, 0) = f (x) and theboundary condition u(0, t) = g(t).

14

Page 54: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

The Hyperbolic CaseLinear hyperbolic equations require as many initial condi-tions as the number of characteristics that come out of everypoint in the surface t = 0, and as many boundary conditionsas the number of characteristics that cross a point in the(space) boundary pointing inwards.

For example: Solve !u/!t + c !u/!x = 0 for x > 0, t > 0.

The characteristics are the solutions of dx/dt = c.

The space boundary is x = 0.

If c > 0, we need the initial condition u(x, 0) = f (x) and theboundary condition u(0, t) = g(t).

If c < 0, we need the initial condition u(x, 0) = f (x) but noboundary conditions.

14

Page 55: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Schematic of the characteristics of the advection equation

!u

!t+ c

!u

!x= 0

for (a) positive and (b) negative velocity c.

15

Page 56: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

For nonlinear equations, no general statements can be made,but physical insight and local linearization can help to de-termine proper initial/boundary conditions.

16

Page 57: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

For nonlinear equations, no general statements can be made,but physical insight and local linearization can help to de-termine proper initial/boundary conditions.

For example, in the nonlinear advection equation

!u

!t+ u

!u

!x= 0

the characteristics are dx/dt = u.

16

Page 58: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

For nonlinear equations, no general statements can be made,but physical insight and local linearization can help to de-termine proper initial/boundary conditions.

For example, in the nonlinear advection equation

!u

!t+ u

!u

!x= 0

the characteristics are dx/dt = u.

We don’t know a priori the sign of u at the boundary, andwhether the characteristics will point inwards or outwards.

# # #

16

Page 59: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

For nonlinear equations, no general statements can be made,but physical insight and local linearization can help to de-termine proper initial/boundary conditions.

For example, in the nonlinear advection equation

!u

!t+ u

!u

!x= 0

the characteristics are dx/dt = u.

We don’t know a priori the sign of u at the boundary, andwhether the characteristics will point inwards or outwards.

# # #

One method of solving simple PDEs is the method of sep-aration of variables. Unfortunately in most cases it is notpossible to use it.

16

Page 60: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

For nonlinear equations, no general statements can be made,but physical insight and local linearization can help to de-termine proper initial/boundary conditions.

For example, in the nonlinear advection equation

!u

!t+ u

!u

!x= 0

the characteristics are dx/dt = u.

We don’t know a priori the sign of u at the boundary, andwhether the characteristics will point inwards or outwards.

# # #

One method of solving simple PDEs is the method of sep-aration of variables. Unfortunately in most cases it is notpossible to use it.

Nevertheless, it is instructive to solve some simple PDE’sanalytically, using the method of separation of variables.

16

Page 61: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Separation of VariablesExample 1: An Elliptic Equation.

17

Page 62: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Separation of VariablesExample 1: An Elliptic Equation.

Solve, by the method of separation of variables, the PDE:

∇2u =!2u

!x2 +!2u

!y2 = 0 0 ≤ x ≤ 1 0 ≤ y ≤ 1

subject to the boundary conditions

u(x, 0) = 0 u(0, y) = 0 u(1, y) = 0 u(x, 1) = A sin m(x,

17

Page 63: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Separation of VariablesExample 1: An Elliptic Equation.

Solve, by the method of separation of variables, the PDE:

∇2u =!2u

!x2 +!2u

!y2 = 0 0 ≤ x ≤ 1 0 ≤ y ≤ 1

subject to the boundary conditions

u(x, 0) = 0 u(0, y) = 0 u(1, y) = 0 u(x, 1) = A sin m(x,

Assume the solution is a product of a function of x and afunction of y:

u(x, y) = X(x) · Y (y)

17

Page 64: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Separation of VariablesExample 1: An Elliptic Equation.

Solve, by the method of separation of variables, the PDE:

∇2u =!2u

!x2 +!2u

!y2 = 0 0 ≤ x ≤ 1 0 ≤ y ≤ 1

subject to the boundary conditions

u(x, 0) = 0 u(0, y) = 0 u(1, y) = 0 u(x, 1) = A sin m(x,

Assume the solution is a product of a function of x and afunction of y:

u(x, y) = X(x) · Y (y)

The equation becomes

Yd2X

dx2 + Xd2Y

dy2 = 0 or1

X

d2X

dx2 = − 1

Y

d2Y

dy2

17

Page 65: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Separation of VariablesExample 1: An Elliptic Equation.

Solve, by the method of separation of variables, the PDE:

∇2u =!2u

!x2 +!2u

!y2 = 0 0 ≤ x ≤ 1 0 ≤ y ≤ 1

subject to the boundary conditions

u(x, 0) = 0 u(0, y) = 0 u(1, y) = 0 u(x, 1) = A sin m(x,

Assume the solution is a product of a function of x and afunction of y:

u(x, y) = X(x) · Y (y)

The equation becomes

Yd2X

dx2 + Xd2Y

dy2 = 0 or1

X

d2X

dx2 = − 1

Y

d2Y

dy2

The left side is a function of x, the right a function of y.17

Page 66: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, they must both be equal to a constant −K2

d2X

dx2 + K2X = 0

d2Y

dy2 −K2Y = 0

18

Page 67: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, they must both be equal to a constant −K2

d2X

dx2 + K2X = 0

d2Y

dy2 −K2Y = 0

The solutions of the two equations are

X = C1 sin Kx + C2 cos Kx Y = C3 sinh Ky + C4 cosh Ky

18

Page 68: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, they must both be equal to a constant −K2

d2X

dx2 + K2X = 0

d2Y

dy2 −K2Y = 0

The solutions of the two equations are

X = C1 sin Kx + C2 cos Kx Y = C3 sinh Ky + C4 cosh Ky

The boundary condition u(0, y) = 0 forces C2 = 0,so X = C1 sin Kx.

18

Page 69: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, they must both be equal to a constant −K2

d2X

dx2 + K2X = 0

d2Y

dy2 −K2Y = 0

The solutions of the two equations are

X = C1 sin Kx + C2 cos Kx Y = C3 sinh Ky + C4 cosh Ky

The boundary condition u(0, y) = 0 forces C2 = 0,so X = C1 sin Kx.

The boundary condition u(1, y) = 0 forces sin Kx = 0 or K = n(so X = C1 sin n(x.

18

Page 70: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, they must both be equal to a constant −K2

d2X

dx2 + K2X = 0

d2Y

dy2 −K2Y = 0

The solutions of the two equations are

X = C1 sin Kx + C2 cos Kx Y = C3 sinh Ky + C4 cosh Ky

The boundary condition u(0, y) = 0 forces C2 = 0,so X = C1 sin Kx.

The boundary condition u(1, y) = 0 forces sin Kx = 0 or K = n(so X = C1 sin n(x.

The boundary condition u(x, 0) = 0 forces C4 = 0,so Y = C3 sinh n(y.

18

Page 71: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, they must both be equal to a constant −K2

d2X

dx2 + K2X = 0

d2Y

dy2 −K2Y = 0

The solutions of the two equations are

X = C1 sin Kx + C2 cos Kx Y = C3 sinh Ky + C4 cosh Ky

The boundary condition u(0, y) = 0 forces C2 = 0,so X = C1 sin Kx.

The boundary condition u(1, y) = 0 forces sin Kx = 0 or K = n(so X = C1 sin n(x.

The boundary condition u(x, 0) = 0 forces C4 = 0,so Y = C3 sinh n(y.

The boundary condition u(x, 1) = A sin m(x forces C1 sin n(x×C3 sinh n( = A sin m(x, so that n = m and C1C3 sinh m( = A.

18

Page 72: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, C1C3 = A/ sinh m(, and the solution is

u(x, y) =

(A

sinh m(

)sin m(x sinh m(y

# # #

19

Page 73: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, C1C3 = A/ sinh m(, and the solution is

u(x, y) =

(A

sinh m(

)sin m(x sinh m(y

# # #

More general BCs

Suppose the solution on the “northern” side is now

u(x, 1) = f (x)

Find the solution.

19

Page 74: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Thus, C1C3 = A/ sinh m(, and the solution is

u(x, y) =

(A

sinh m(

)sin m(x sinh m(y

# # #

More general BCs

Suppose the solution on the “northern” side is now

u(x, 1) = f (x)

Find the solution.

We note that the equation is linear and homogeneous, sothat, given two solutions, a linear combination of them isalso a solution of the equation.

19

Page 75: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

We assume that we can Fourier-analyse the function f (x):

f (x) =∞∑

k=1

ak sin k(x with∞∑

k=1

k2 |ak| <∞

20

Page 76: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

We assume that we can Fourier-analyse the function f (x):

f (x) =∞∑

k=1

ak sin k(x with∞∑

k=1

k2 |ak| <∞

Then the solution may be expressed as:

u(x, y) =∞∑

k=1

( ak

sinh k(

)sin k(x sinh k(y

20

Page 77: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

We assume that we can Fourier-analyse the function f (x):

f (x) =∞∑

k=1

ak sin k(x with∞∑

k=1

k2 |ak| <∞

Then the solution may be expressed as:

u(x, y) =∞∑

k=1

( ak

sinh k(

)sin k(x sinh k(y

In the same way, we can find solutions for non-vanishingboundary values on the other three edges.

20

Page 78: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

We assume that we can Fourier-analyse the function f (x):

f (x) =∞∑

k=1

ak sin k(x with∞∑

k=1

k2 |ak| <∞

Then the solution may be expressed as:

u(x, y) =∞∑

k=1

( ak

sinh k(

)sin k(x sinh k(y

In the same way, we can find solutions for non-vanishingboundary values on the other three edges.

Thus, the more general problem on a rectangular domain:

∇2u(x, y) = 0 , u(x, y) = F (x, y) on the boundary

may be solved.

20

Page 79: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Parabolic Equation.

21

Page 80: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Parabolic Equation.

!u

!t= "

!2u

!x2 0 ≤ x ≤ 1 t ≥ 0

21

Page 81: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Parabolic Equation.

!u

!t= "

!2u

!x2 0 ≤ x ≤ 1 t ≥ 0

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

21

Page 82: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Parabolic Equation.

!u

!t= "

!2u

!x2 0 ≤ x ≤ 1 t ≥ 0

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Initial condition:

u(x, 0) = f (x) =∞∑

k=1

ak sin k(x

21

Page 83: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Parabolic Equation.

!u

!t= "

!2u

!x2 0 ≤ x ≤ 1 t ≥ 0

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Initial condition:

u(x, 0) = f (x) =∞∑

k=1

ak sin k(x

Find the solution:

u(x, t) =∞∑

k=1

ake−"k2(2t sin k(x

21

Page 84: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Parabolic Equation.

!u

!t= "

!2u

!x2 0 ≤ x ≤ 1 t ≥ 0

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Initial condition:

u(x, 0) = f (x) =∞∑

k=1

ak sin k(x

Find the solution:

u(x, t) =∞∑

k=1

ake−"k2(2t sin k(x

Note that the higher the wavenumber, the faster it goes tozero, i.e., the solution is smoothed as time goes on.

21

Page 85: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Hyperbolic Equation.

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

22

Page 86: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Hyperbolic Equation.

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Initial conditions:

u(x, 0) = f (x) =∞∑

k=1

ak sin k(x!u

!t(x, 0) = g(x) =

∞∑

k=1

bk sin k(x

22

Page 87: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Another Example: A Hyperbolic Equation.

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Initial conditions:

u(x, 0) = f (x) =∞∑

k=1

ak sin k(x!u

!t(x, 0) = g(x) =

∞∑

k=1

bk sin k(x

Find the solution by the separation of variables method.

22

Page 88: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Same equation as above, but di!erent boundary conditions:

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

23

Page 89: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Same equation as above, but di!erent boundary conditions:

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

23

Page 90: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Same equation as above, but di!erent boundary conditions:

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Instead of two initial conditions, we give an initial and a“final” condition:

u(x, 0) = f (x) u(x, 1) = g(x)

23

Page 91: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Same equation as above, but di!erent boundary conditions:

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Instead of two initial conditions, we give an initial and a“final” condition:

u(x, 0) = f (x) u(x, 1) = g(x)

In other words, we try to solve a hyperbolic (wave) equationas if it were an elliptic equation (boundary value problem).

23

Page 92: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Same equation as above, but di!erent boundary conditions:

!2u

!t2= c2!

2u

!x2 0 ≤ x ≤ 1 0 ≤ t ≤ 1

Boundary conditions:

u(0, t) = 0 u(1, t) = 0

Instead of two initial conditions, we give an initial and a“final” condition:

u(x, 0) = f (x) u(x, 1) = g(x)

In other words, we try to solve a hyperbolic (wave) equationas if it were an elliptic equation (boundary value problem).

Exercise: Show that the solution is unique but that it doesnot depend continuously on the boundary conditions, andtherefore is not a well-posed problem.

23

Page 93: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Conclusion: Before trying to solve a problem numerically,we must make sure that it is well posed: it has a uniquesolution that depends continuously on the data that definethe problem.

# # #

24

Page 94: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Conclusion: Before trying to solve a problem numerically,we must make sure that it is well posed: it has a uniquesolution that depends continuously on the data that definethe problem.

# # #

Food for ThoughtLorenz showed that the atmosphere has a finite limit ofpredictability:

Even if the models and the observations are perfect, theflapping of a butterfly in Brazil will result in a completelydi!erent forecast for Texas.

24

Page 95: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Conclusion: Before trying to solve a problem numerically,we must make sure that it is well posed: it has a uniquesolution that depends continuously on the data that definethe problem.

# # #

Food for ThoughtLorenz showed that the atmosphere has a finite limit ofpredictability:

Even if the models and the observations are perfect, theflapping of a butterfly in Brazil will result in a completelydi!erent forecast for Texas.

Does this mean that the problem of NWP is not well posed?

24

Page 96: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Conclusion: Before trying to solve a problem numerically,we must make sure that it is well posed: it has a uniquesolution that depends continuously on the data that definethe problem.

# # #

Food for ThoughtLorenz showed that the atmosphere has a finite limit ofpredictability:

Even if the models and the observations are perfect, theflapping of a butterfly in Brazil will result in a completelydi!erent forecast for Texas.

Does this mean that the problem of NWP is not well posed?

If not, why not?

24

Page 97: M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti onekalnay/syllabi/AOSC... · M.Sc. in M eteo rology U CD Nu m er ical W eather Predicti on Prof P eter Lynch Meteorology

Conclusion: Before trying to solve a problem numerically,we must make sure that it is well posed: it has a uniquesolution that depends continuously on the data that definethe problem.

# # #

Food for ThoughtLorenz showed that the atmosphere has a finite limit ofpredictability:

Even if the models and the observations are perfect, theflapping of a butterfly in Brazil will result in a completelydi!erent forecast for Texas.

Does this mean that the problem of NWP is not well posed?

If not, why not?

Consider again the definition of an ill-posed problem.

24