Netgen Mesh Generator Wiki
NETGEN is an automatic 3d tetrahedral mesh generator
Brought to you by:
joachimschoberl
NETGEN is an automatic 3d tetrahedral mesh generator. It accepts input from constructive solid geometry (CSG) or boundary representation (BRep) from STL file format. The connection to a geometry kernel allows the handling of IGES and STEP files. NETGEN contains modules for mesh optimization and hierarchical mesh refinement. Netgen is open source based on the LGPL license. It is available for Unix/Linux and Windows.
The wiki is currently not user-editable, which rather defeats the purpose of having a wiki in the first place. Closed wikis run counter to the collaborative spirit enshrined in wiki culture.
Consider opening the wiki to anonymous edits. Also consider migrating to Github, whose UI and workflow is somewhat less cluttered than that of SourceForge. Until then, I'll just leave this here.
Compilation
Largely thanks to an Autotools-based makefile, it is feasible but highly non-trivial to compile Netgen on your own. This is complicated by the need to explicitly specify the absolute paths of dependency directories, as detailed below.
Ubuntu
As of this writing (mid-2015), the version of Netgen officially provided by Ubuntu is painfully out of date (4.9.13). Since there sadly exists no PPA unofficially providing a more recent version, Ubuntu users are encouraged to manually compile Netgen. In order:
sudo apt-get install metis openmpi-bin libopenmpi-dev libtogl-dev
cd ~/Downloads
tar -xvzf netgen-*.tar.gz
rm netgen-*.tar.gz
cd netgen-*
${CPPFLAGS}
variable.CPPFLAGS="-I/usr/lib/openmpi/include/"
export CPPFLAGS
nglib.so
shared library. (You want this.)./configure --with-sysroot=/usr/lib/ --with-tcl=/usr/lib/tcl8.5/ --with-tk=/usr/lib/tk8.5/ --with-togl=/usr/lib/ --with-metis=/usr/lib/x86_64-linux-gnu/ --enable-nglib
make
sudo make install
~/.profile
shell startup script.LD_LIBRARY_PATH=/opt/netgen/lib
NETGENDIR=/opt/netgen/bin
PATH="${PATH}:${NETGENDIR}"
export LD_LIBRARY_PATH
export NETGENDIR
export PATH
~/.profile
does not already exist, create such file and ensure that your preferred shell sources such file. For example, under zsh, add the following line to your user-specific~/.zshrc
shell script:source "${HOME}/.profile"
~/.profile
.source ~/.profile
netgen &!
Ignored
configure
OptionsAttempting to enable the
--enable-jpeglib
option induces the following error from./configure
and has thus been omitted above:Likewise, attempting to enable the
--enable-occ
option induces the following error frommake
and has thus been omitted above:Likewise, attempting to enable the
--enable-ffmpeg
option induces the following error frommake
and has thus been omitted above:The latter error is probably correctable by installing all
libav
development headers (e.g.,libavcodec-dev
).Last edit: Leyli Cecil 2015-04-11