-------------------------------------------------------------------------
PHYS210 2009-11-12 LAB SUMMARY
1) Solution of advection equation
2) Optional modifications of advect.m
3) Free time to work on homework, term projects
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1) Solution of advection equation
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
See the following octave source files in /home/phys210/octave
- advect.m
- advectloop.m
- tadvect.m
Execute tadvect.m to run the demo of the solution of the advection
equation using the FDA discussed in class
% octave
>> tadvect
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2) Optional modifications of advect.m
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Produces (slightly) modified versions of advect.m (call them advect1.m
and advect2.m) that use the other two O(h) approximations to the
advection equation at x = 0 that we discussed in class. Test your
implementations my writing your own driver scripts or by modifying
tadvect.m appropriately.
What can you conclude about the pros/cons of using the various
approximations?
Can you think of a way to increase the accuracy of the calculation at
x = 0?
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3) Free time to work on homework, term projects
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ROCK ON!!