Convert tetgen .ele and .node and .face files to an OpenFOAM mesh. More...
Go to the source code of this file.
Convert tetgen .ele and .node and .face files to an OpenFOAM mesh.
Original source file tetgenToFoam.C
Make sure to use add boundary attributes to the smesh file (5 fifth column in the element section) and run tetgen with -f option.
Sample smesh file:
# cube.smesh -- A 10x10x10 cube 8 3 1 0 0 0 2 0 10 0 3 10 10 0 4 10 0 0 5 0 0 10 6 0 10 10 7 10 10 10 8 10 0 10 6 1 # 1 for boundary info present 4 1 2 3 4 11 # region number 11 4 5 6 7 8 21 # region number 21 4 1 2 6 5 3 4 4 3 7 8 43 4 1 5 8 4 5 4 2 6 7 3 65 0 0
Definition in file tetgenToFoam.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.