MARS has limited built-in capability of generating finite element meshes, e.g. LDPM and other simple geometries. When generate a LDPM mesh, TetGen (
http://wias-berlin.de/software/tetgen/) and Triangle (
https://www.cs.cmu.edu/~quake/triangle.html) are used. These two programs can be obtained by downloading source code from their official website and compiling afterwards. However, pre-compiled executables for Mac and Linux are available from our MARS archive. MARS uses
tetgen and
triangle as the name to find TetGen and Triangle, so make sure to change the name if you compile from source.
If you download TetGen and Triangle from our archive, you may need to reset them to correct attributes as below (this solves the common issue of "Permission denied")
- Code: Select all
chmod 755 tetgen
- Code: Select all
chmod 755 triangle
Once TetGen and Triangle are ready to use, add them to the PATH system variable so MARS knows where to find them. Say they are located under folder /user/John/MARS, then add the line below to your shell profile:
- Code: Select all
export PATH=/usr/John/MARS:$PATH