Hdef

March 6, 2026 · View on GitHub

Hdef is designed to calculate displacements, strains, and stresses for various geologically relevant sources in an elastic half-space (hence, Halfspace deformation). The currently available sources are:

  • Point dislocations (shear and tensile)
  • Rectangular dislocations (shear and tensile)
  • Triangular dislocations (shear and tensile)
  • Point volume change (Mogi) sources

Hdef also includes several programs that I wrote to complement and contextualize the half-space outputs (so in that sense, maybe Hdef stands for "Herman" deformation). Actually, I got tired of looking up and recalculating things like plate velocity vectors, earthquake seismic moments, etc., so I wrote programs to have these results at my fingertips. These are included in Hdef, and I hope you find them useful as well.

I have used the codes in Hdef to make calculations for several peer-reviewed publications, and many other people have used Hdef for their own applications. However, I cannot guarantee that there are no bugs. If you think you have found a bug, please report it to me at matthew.w.herman@gmail.com

Installation

Please see INSTALL.md for directions on how to download and install Hdef.

Tutorials & Documentation

Tutorials can be found at my website.

Man pages for most of the programs and some of the scripts are in the man/ directory.

License

Hdef is distributed under the MIT license. Please see LICENSE file.

Citing Hdef

At a minimum, please cite the Hdef code with the following DOI: https://doi.org/10.5281/zenodo.3894137, as well as the following papers:

Herman, M.W., Furlong, K.P., Hayes, G.P., Benz, H.M. (2016). Foreshock triggering of the 1 April 2014 Mw 8.2 Iquique, Chile, earthquake. Earth and Planetary Science Letters 447, 119-129.

Herman, M.W., Govers, R. (2020). Locating fully locked asperities along the South America subduction megathrust: a new physical inter‐seismic inversion approach in a Bayesian framework. Geochemistry, Geophysics, Geosystems 21, e2020GC009063.