This code is used to simulate 2D and 2.5D dynamic rupture simulations, with slip-weakening, time-weakening, rate-and-state, and thermal pressurization friction laws. This tutorial aims to guide you to simulate the models and post process the results.
The structure of the tutorial document: code -- contains the original sem2dpack code simulations -- contains the model that can be run directly' scripts_templates -- contains matlab and python scripts post-process -- choose the script you like and save it here
Current directory is defined as ${workdir}
Installation:
- cd ${workdir}/code/sem2dpack/SRC
- vi Makefile ### Modify the executable dir and the type of compiler in Makefile
- make
Running model:
- cd ${workdir}/simulations
- vi Par.inp ### Modify the model parameters, refer to the manual of sem2dpack at the end of this file
- ${path_to_bin}/sem2dsolve Par.inp
Post process results:
- cd ${workdir}/post-process
for python version:
- cp ../scripts_templates/python/* .
- python Example_figure.py
for matlab version:
- cp ../scripts_templates/matlab/* .
- open Example_figure.m in MATLAB and run the script directly.