Geotechlab The site of the Geotechnical Lab


This is a list of my home-made codes and scripts:

Matlab scripts

  • Discrete Element Code. This cose was developed for teaching purpose in 2D, 3D with spheres and polyhedra (screenshots, VRML example file)
Example of gravity deposition with a Matlab DEM code.
Example of DEM with polyhedra.
  • Discrete Element postprocessor tools. This tool was developed for enabling statistics on the contact orientation, packing, and force vector distribution.
Normal Force Intensity Distribution in a cubical Discrete Element sample at p’=10 kPa (red); p’=100 kPa (green) and after deviatoric phase (blu).
Radial distribution function of spherical particles in a wet cubical sample.
  • Landslide Displacement Detector. This Matlab GUI was introduced for image analysis of long sequence of photos taken on the landslide site. It supports different digital image correlation techniques and many other options (channel selection, manual or semi-automatic markers selection, saving and loading features, etc.)
Screenshot of the Landslide Displacement Detector GUI .
Example of result of the analysis.
  • Stereo-Photogrammetric Reconstruction tool .
  • Oedometric test analysis tool

Fish scripts

  • Capillary law
  • Evaporation law
  • Water redistribution law
  • Grain-size creation

Surface Evolver (Brakke, 2008) scripts

This code was developed to study the capillary force between different surfaces and particles in pendular and funicular state.

Minimum energy capillary bridge solution between two spheres .
Solution of the minimum energy capillary bridge among three spherical particles .

Excel/VB scripts:

  • Soil-nailing design tool. This tool was developed for the design of Soil nailing applications.
Screenshoot of the Soil-nailing Design tool v 1.0.1

C++/OpenCV scripts

Python scripts for Yade

Auto-IT scripts

Auto-IT is a useful tool for pc-automation. I used it in the automation of a remote camera & pc at a landslide site.


Gabrieli, F., Lambert, P., Cola, S., & Calvetti, F. (2012). Micromechanical modelling of erosion due to evaporation in a partially wet granular slope. International Journal for Numerical and Analytical Methods in Geomechanics, 36(7), 918–943.
Motta, M., Gabrieli, F., Corsini, A., Manzi, V., Ronchetti, F., & Cola, S. (2013). Landslide displacement monitoring from multi-temporal terrestrial digital images: Case of the valoria landslide site. Landslide Science and Practice: Early Warning, Instrumentation and Monitoring, 2, 73–78.
Antonello, M., Gabrieli, F., Cola, S., & Menegatti, E. (2013). Automated landslide monitoring through a low-cost stereo vision system. CEUR Workshop Proceedings, 1107, 37–41.
Gabrieli, F., Corain, L., & Vettore, L. (2016). A low-cost landslide displacement activity assessment from time-lapse photogrammetry and rainfall data: Application to the Tessina landslide site. Geomorphology, 269, 56–74.
Wang, J.-P., Gallo, E., François, B., Gabrieli, F., & Lambert, P. (2017). Capillary force and rupture of funicular liquid bridges between three spherical bodies. Powder Technology, 305, 89–98.
Brezzi, L., Gabrieli, F., Cola, S., Lorenzetti, G., Spiezia, N., Bisson, A., & Allegrini, M. (2020). Digital Terrestrial Stereo-Photogrammetry for Monitoring Landslide Displacements: A Case Study in Recoaro Terme (VI). In F. Calvetti, F. Cotecchia, A. Galli, & C. Jommi (Eds.), Geotechnical Research for Land Protection and Development (pp. 155–163). Springer International Publishing.