Optimal Complex Relaxation Parameters in Multigrid for Complex-Shifted Linear Systems
Robert Hocking and Chen Greif
Code for reproducing results from the paper:
There are seven files in the top directory: four files for reproducing experiments, one file that contains the main multigrid routine, and two files that are used for visualization.
- dampingParameterStrategyExperiment.m: For reproducing the experiments in Sections 6.2 and 6.3.
- constantCoefficient3DExperiment.m: For reproducing the Experiment in Section 6.4.
- variableCoefficientExperiment.m: For reproducing the Experiment in Section 6.5.
- MarmousiExperiment.m: For reproducing the Experiment in Section 6.6.
- Multigrid.m: Main routine. Each experiment file works by creating a "setup" object which is then
passed to this m-file.
- ExploreUniversalTable.m: Allows the user to examine slices of the universal lookup table
from Section 5.3. This file is purely for visualization
purposes and is not needed for running the core multigrid code.
- ColorWheelDemo.m: Explores the color wheel that we use for visualizing our
complex damping parameters; see more
here.
This file is purely for visualization
purposes and is not needed for running the core multigrid code.
To get started:
- Click on this link
to download the code.
- Unzip the file.
- If you run a variable coefficient problem using RB-SOR (items 3 or 4 above), you must download
the universal lookup table and put it in the current directory.
- Run a Matlab session from the main folder.
- Type, for example, "help dampingParameterStrategyExperiment" to see a brief description of the code.
- Type, for example, "dampingParameterStrategyExperiment" to run the code.
- Edit the "setup" object parameters defined, for example, in "dampingParameterStrategyExperiment" to explore different scenarios (type "help Multigrid" for an explanation of what these parameters are and what they do).
For any questions, please email Rob Hocking at rhocking@cs.ubc.ca..
Back to main page