Cambridge Berkeley - Geomechanics
-
Docker image for CB-Geo lem-gmsh code https://hub.docker.com/r/cbgeo/lem
-
Instructions for running lem docker container: https://github.com/cb-geo/docker-lem/blob/master/README.md.
-
Make sure
gmsh
is installed. -
To generate a mesh file in 3D (for example to mesh the
bin/tension.geo
) rungmsh -3 tension.geo
, this will create atension.msh
file, which can be found in thebin/
directory as well.
-
Run
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release /path/to/CMakeLists.txt
-
Run
make clean && make -jN
(where N is the number of cores) -
Run lem-gmsh
./lem-gmsh /path/to/meshfile.msh
this will generate anodes.txt
file in thebuild
directory.