William K. Allard: Math 226-7, Numerical Methods for Partial Differential
Equations I,II
The main resources for the course is
HyperText Class Notes by John Trangenstein.
Class project models:
- Burgers and shallow water
- Burgers and gas dynamics
- Traffic and vibrating string
- Traffic and plasticity
- 2-phase Buckley-Leverett and polymer
- 2-phase Buckley-Leverett and 3-phase Buckley-Leverett
Homework:
- Homework One due September 4 given in class notes.
- Homework Two due September 11
Postscript
PDF
Help!
To get online help with commands and utilities, there are 3 useful
sources:
- xman. Type "xman&". When the window comes up, click on
"Manual page" to see a list of commands, organized by type.
To find a particular command, pull down on "Options" to "Search."
- Gnu documentation. Type "emacs&". When the window comes up, pull
down on "Help" to "Info," then scroll to your favorite topic
(e.g., "Make"). Use the middle mouse button to scroll and click.
You will have to create a .emacs file in your home directory to
make this work properly (you can copy ~johnt/.emacs):
- pushd /usr/local/egcs/info
- info
- mGdb (to see gdb documentation)
To see g77 documentation, replace "mGdb" with "mg77".
To see egcs documentation, replace "mGdb" with "megcs".
- Linux online books.
- Netlib Home Directory
News flash(es):
- You may not be able to copy
/home/faculty/johnt/math226/scalar_law/1sa/linearad
to your directory and execute it. It is possible that your
version of the operating system is different from mine, and some
libraries are in different places. Alternatively, you can do the
following:
- edit your .cshrc file and add the following lines at the end:
setenv CVSREAD
setenv CVSROOT /home/faculty/johnt/cvs
- make a directory for this course, and cd to that directory.
- type
cvs checkout gnu memdebug det graphics gui box flowvar amr
- cd to each of the subdirectories
{memdebug,det,graphics,gui,box,flowvar,amr} and do the following
- in the course directory type
mkdir scalar_law
- cd scalar_law
- make
- to run the code, type
1sa/linearad input
- you can save the graphics by typing
eps4paper results
This will create the file results.eps, which you can include
in a LaTex file and massage easily. If you want to print the
graphics by itself, try
convert results.eps results.ps
lpr results.ps
- you can play with the input parameters by editing the file
named input. In particular, you might play around with
values for ncells and cfl.
- To enable your sessions to dump cores, add
unlimit coredumpsize
to your .cshrc file.
- To see your default printer and its location, type
lpq
- Some useful printers in the math department are
- lw0 in room 136
- lw3 in room 250
- To print a window created by the class program, run xv:
- click in xv 3.10a(PNG)... with the right mouse button
- click on Grab in xv controls with the left mouse button
- change the delay to 1 sec in the xv grab window
- click on Grab in xv grab with the left mouse button
- after the beep, click in the linear advection window
with the left mouse button
- click on Print in xv controls with the left mouse button
- click on B/W in xv prompt with the left mouse button
- click on OK in xv postscript with the left mouse button
- You will have to work a bit to get GNU documentation to work
properly. See the online help discussion below.