UBC ATSC 507 - Numerical Weather Prediction (NWP)

Finite-difference Methods - Spatial & Temporal

Under construction (this web page, and most other web pages for this course).


Instructor: Roland Stull


A. Spatial Differencing

Learning Goals:   By the end of this module, you will be able to ...

Readings BEFORE class:

  1. Stull p752-758, and
  2. Warner  p17-23 & p51-58 on time- and space-differencing. 

Homework AFTER class:

  1. Catch up on all previous readings.

Topics

A. Grid Points,   Grid Cells,  &  Staggered Grids.

  1. Arakawa A thru Arakawa E grids

B. Spatial-gradient Differencing

  1. some finite difference approximations for 1st, 2nd, and 3rd derivatives
  2. approximations at various truncation orders.
  3. stencils

B. Temporal Differencing

Learning Goals:   By the end of this module, you will be able to ...

Readings BEFORE class:

  1. read: Warner p58-72.

Homework AFTER class:

  1. Do Homework #4 :   
    Given the following description of the actual temperature (T) field and its variation with time (t):

    T(°C) =A * (c*t + Tref - Tref_o) * (Tref_o - c*t)

    with :

Since the temperature equation above is a function of both time and temperature, I've calculated the temperature tendency for you. Namely, the slope of the lines at any point in the figure:

∂T/∂t = f(t, T) = 1.5 * { 2 – 1.5*t – [ T / (2 – 1.5*t) ] }

[Note: To get the eq above for f(t, T), I first solved the original temperature-field eq for Tref(T, t).  Then I  analytically found ∂T/∂t from the first equation above, and substituted in the expression for Tref.  This takes advantage of the fact that Tref is constant along any of the curves in the fig below.]

.

Time Differencing Worksheet
.
Given the temperature-field and temperature-tendency info above, and given the initial condition below, apply finite difference methods (a) - (d) to predict the temperature after 1 full timestep ahead. Namely:

Please start from initial condition of T = 2 degC at m = 0, as we did in class, but compute using any programming language (excel, matlab, R, python, fortran, etc) the new T (degC) at 1 timestep (1∆t) ahead using:
a) Euler forward
b) RK2
c) RK3
d) RK4
e) Which one gave an answer closest to the actual analytical answer as given by the function above?   [Note: do NOT use the 1-D model from the previous HW for this.]

 

Topics

A. Named Finite-Difference Schemes.

  1. Euler forward & backward,
  2. Leapfrog,
  3. Runge-Kutta (2nd, 3rd, and 4th order),
  4. Adams-Bashforth,
  5. Predictor-corrector (Lax Wendroff, Matsuno, etc.)
  6. [Perhaps others]