Set up TetGen/Triangle.

Frequently asked questions

Set up TetGen/Triangle.

Postby ES3 » Fri Apr 08, 2016 11:56 pm

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
ES3
 
Posts: 42
Joined: Thu Jul 09, 2015 9:36 pm

Re: Set up TetGen/Triangle.

Postby rwendner » Thu Aug 04, 2016 12:20 pm

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.
rwendner
 
Posts: 154
Joined: Wed Jul 15, 2015 4:35 pm


Return to FAQs

Who is online

Users browsing this forum: No registered users and 1 guest

cron