Spring 2012
http://www.atmos.washington.edu/academics/classes/2012Q2/581/
MWF 2:30-3:20: Loew 216
This class is being offered on-line through EDGE, which provides live streaming of each class and archived lecture videos. You'll need to sign in with your UW netID. If you are an EDGE student, you can also get to this site through the UWEO Moodle portal moodle.extn.washington.edu.
Instructor: Prof. Chris Bretherton breth@washington.edu ATG 704, x5-7414 Office hours: MW 1:30-2:20, or by appointment. TA: Mikala Johnson mikalaj@uw.edu Office hours (Gugg 406): Th 1-2; Fr 3:30-4:30 (also via Skype at TA_AMATH586) |
Schedule | Homework and Exams | Lecture Notes and Handouts | Matlab scripts |
Numerical methods for time-dependent ordinary and partial-differential equations, including explicit and implicit methods for hyperbolic and parabolic equations. Stability, accuracy, and convergence theory. Spectral and pseudospectral methods
Scanned lecture notes will be posted. However, for a more comprehensive treatment, I recommend the following texts:
Topic |
Archetypical PDEs. Initial and boundary conditions, well-posedness, types of numerical methods. |
Finite difference operators, consistency, order of accuracy |
Stability, convergence, Von Neumann analysis, discrete dispersion relation, CFL stability condition. |
Time-differencing methods for ODEs and systems of ODEs. |
Finite difference methods for the 1D advection equation |
Finite difference methods for the heat equation |
Pseudospectral methods for time-dependent problems |
Finite-element, finite volume, and monotonicity-preserving methods. |
Item | Due Date | Download Solutions |
Homework #1 | due Mo 9 Apr | HW #1 solutions |
Homework #2 | due Mo 16 Apr | HW #2 solutions |
Homework #3 | due We 25 Apr | HW #3 solutions |
Homework #4 | due We 2 May | HW #4 solutions |
Take-home midterm | due Fr 11 May | Midterm solutions |
Homework #5 | due Fr 18 May | HW #5 solutions |
Homework #6 | due We 30 May | HW #6 solutions | -->
Take-home final | due We 6 Jun | Final solutions |
Dates subject to revision
EulerTrapezoidalStabilityRegion.m: Plots stability region and amplification rate |A| for amplification eqn for forward and backward Euler and trapezoidal methods.
RKStabilityRegion.m: Plots stability region (but not amplification rate) for amplification eqn for RK2 and RK4 methods; easily adapted to other time-differencing methods.
Nonlinear pendulum d2theta/dt2 = - sin(theta), theta(0) = 1, dtheta/dt = 0 treated as a system of two 1st order ODEs
advect_MC.m: Uses MC slope limiter FV method to solve advection equation with c=1 on a periodic domain of length 1 with a square wave initial condition. Plots initial condition and solution after time 1 (when the waveform has advected once around the domain).
LW_MC_errconv.m: Plot the Lax-Wendroff and MC solutions to advection equation on periodic domain for a sine wave or a square wave advected once around the domain. Left: Nx=8 solution; Right: 2-norm error convergence.
Burgers equation u_t+uu_x = a*u_xx, periodic domain, u(x,0)=1+sin(2*pi*x).
Fourier spectral differentiation
Fourier spectral method on q_t + q_x = 0 in x = [0,1], periodic BCs, 4th order Runge Kutta (RK4) time differencing.
Fourier spectral method on KdV eqn, periodic BCs, RK4 time differencing.
pois_FFT.m: - Fourier spectral method for 2D Poisson eqn. with periodic BC's and RHS = Laplacian of a bivariate Gaussian hump. Makes plot of solution (which recovers the Gaussian hump).
FS_heat.m: - Fourier spectral method for heat equation u_t = u_xx, 0 < x < 1, with Dirichlet/Neumann BCs, using odd/even extension to a periodic domain. Makes plot of results and error convergence at time 0.0625.
FS_vortex.m: Fourier pseudospectral method applied to advection of an elliptical vortex in an incompressible 2D fluid. Uses Szeta.m. Figures and technical description in Lecture 21 notes.
advect_FEM.m: Finite element method on q_t + c*q_x = 0, c=1, 0 < x < 1, 0 < t < 0.5, q(x,0) = 0, q(0,t) = 50*t on a uniform grid with dx = 0.01. Makes plot of solution u(x,0.9). Uses advect_FEMsolve.m, which can also handle a nonuniform grid and a spatially varying c(x).
Homework solution scripts