Based on algorithms published in:
Meade, B. J. (2007), Algorithms for the calculation of exact displacements, strains, and stresses for triangular dislocation elements in a uniform elastic half space, Computers and Geosciences, 33, 1064–1075, doi:10.1016/j.cageo.2006.12.003.
triinv uses tridisl as a submodule. To clone triinv, run
$ git clone --recursive https://github.com/jploveless/triinv.git
triinvx.m is the main function and requires a minimum of three input arguments:
u = triinvx(p, s, beta);
where p is a structure containing information about the triangular dislocation elements, s is a structure containing the constraining data, and beta defines the weighting of regularization applied in the slip estimation. Slip is returned to the vector u. More information about usage can be found in the wiki.