laplace-curvilinear Code
SBP-SAT finite difference code for the Laplacian in complex geometries
Brought to you by:
martinalmquist
This MATLAB code demonstrates the advantages of a newly developed summation-by-parts--simultaneous approximation term (SBP-SAT) finite difference discretization of the Laplacian on curvilinear multiblock grids. The code reproduces all figures in the manuscript Almquist, M., Dunham, E. M, Non-stiff boundary and interface penalties for narrow-stencil finite difference approximations of the Laplacian on curvilinear multiblock grids. J. Comput. Phys, 2020. doi: 10.1016/j.jcp.2020.109294.
The code is based on the sbplib repository.
The code is organized into five subfolders:
runAllSimulations
. Results from the computations will be stored in .mat-files. WARNING! The Villarrica simulations take approximately 24 hours in total and will store 6 Gb of data.generateAllFigures
(after running runAllSimulations
). The figures will appear in a folder named paperFigures.addSubpaths; cd marmousi; generateData(); generateFigures(); cd ..; removeSubpaths;