Mathematica Notebooks
This page provides some Mathematica Notebooks (and occasionally lecture notes) from courses I have taught over the years.

Last modified Sunday, 11-Jul-2004 20:09:49 PDT
return to mensch.org

Go elsewhere?

My notebooks are not necessarily the best. Here are some other sites where you can grab notebooks: I also maintain a tutorial/FAQ site for mathematica

My style sheet, ok.nb

Most of my notebooks use my style sheet, ok.nb, which renders the notebook fonts and colors rather readable (and pretty), IMHO. It is not necessary to open ok.nb. Put ok.nb in the same directory as your other notebooks, or, if you have root access, put ok.nb in the directory suggested in the Help Browser entry for "Style Sheet".

To use other style sheets, go to "Format, Style Sheet", amd select one.. To use ok.nb again, go to the menu "Format, Style Sheet, Other" and then click on ok.nb. Or, if you installed ok.nb as root, ok.nb will be at the top of the list in "Format, Style Sheet".


Fall 2002, METR 6803

Here are a few notebooks from an interdepartmental applied math course I taught.

Spring 1998, METR 5123

After becoming familiar with Mathematica and reviewing the elementary theory of water waves, look at the following notebooks:

  • waterwave.nb The theory of surface gravity waves. Some bugs fixed Jan. 16 (Thanks to Ted Mansell).
  • waterwave2.nb Two-layer internal waves. Notation repaired Jan 23, layers were reversed. Thanks to John Mewes

prob01.nb Your first assignment! It's about Kelvin-Helmholtz instability. Enjoy! (Review Kundu).

Anelastic Equations for the Atmosphere (postscript file).

After reading the above, enjoy the following notebooks:

  • plotinternalwave.nb Make a colorful plot of the cross-section of an internal wave.
  • internalwaveshoot.nb A shooting scheme applied to solving the boundary value problem for internal waves.
  • wavepackets.nb Animating dispersive wave packets.
  • animator.nb Dumps sequences of gif images that can be animated or put on a web page.

prob02.nb Unleash your creative powers!

The Shallow Water Canon geostrophic adjustment, Rossby waves (postscript file).

After reading the above, enjoy the following notebooks:

  • hatadjust.nb Examine how a "top hat" profile in surface displacement undergoes conversion to a geostrophic state.
  • shallowshoot.nb A shooting scheme applied to the boundary value problem for Rossby waves and other waves with strongly varying f. This notebook is not complete, and a prob03b.nb may appear here, asking you to complete it.

prob03.nb Try your hand at geostrophic adjustment!

An Unstable Parallel Flow (postscript file)

Now enjoy the following notebooks:

  • ezm.tar.gz A directory with data files. Download into your mathematica directory, then:
    gunzip ezm.tar.gz
    tar xvf ezm.tar
    
    You should find a directory ezm with 11 files inside.
  • ezmplot.nb Plot the pretty figures in An Unstable Parallel Flow.
  • shearshoot.nb.gz Solves the eigenvalue problem in An Unstable Parallel Flow.

prob04.nb Now it is your turn to analyze the "data"!

Dynamical Equations in the ARPS and COAMPS Coordinate System

After reading the above, enjoy the following notebooks:

  • lambert.nb.gz Makes the nice plots seen in Dynamical Equations in the ARPS and COAMPS Coordinate System
  • UDelU.nb Derives the acceleration terms as in Dynamical Equations in the ARPS and COAMPS Coordinate System

prob05.nb Acceleration terms in cylindrical coordinates.

Symmetric Instability (postscript file)

prob06.nb A collection of problems about symmetric instability.

Thermal convection (postscript file) A few more typos fixed on April 8

After reading the above, enjoy the following notebooks:

  • convstab.nb makes the stability plot seen in convect.ps.gz
  • spect.nb functions used by the following notebooks:
  • chaos.nb.gz Explore the chaos of the Lorenz equations.
  • compare.nb.gz Compares solutions from the spectral model, with various levels of truncation.

prob07.nb.gz A couple of fun things to try with thermal convection.

Baroclinic instability (postscript file)

prob08.nb.gz Make the plots in the above manuscript.