Page 1 of 1

Set up TetGen/Triangle.

PostPosted: Fri Apr 08, 2016 11:56 pm
by ES3
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

Re: Set up TetGen/Triangle.

PostPosted: Thu Aug 04, 2016 12:20 pm
by rwendner
Tetgen version 1.4.3 should be used.

The use of tetgen version 1.5.0 lead to the following error message:
Cannot access file tetgen.node.
An input error was detected. Program stopped.