CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] Modified gmshToFoam to help import hexahedral and prism elements from Gmsh (https://www.cfd-online.com/Forums/openfoam-meshing/61905-modified-gmshtofoam-help-import-hexahedral-prism-elements-gmsh.html)

adorean April 18, 2005 08:15

Modified gmshToFoam to help import hexahedral and prism elements from Gmsh
 
Hi all,

I had trouble importing a 3D mesh with hexahedra and prism elements from Gmsh to OpenFOAM, so Mattijs Janssens made some modifications to gmshToFoam.C and it worked.

You can run the gmshToFoam command with the following syntax:

gmshToFoam <root> <case> filename.msh -invertPrism -invertHex

Just replace the old gmshToFoam.C file in /home/user/openFOAM/OpenFOAM-1.1/applications/utilities/mesh/conversion/gmshToFo am directory with \attach {this}

The easiest way to compile it is by running the ./Allwmake command from the /home/user/openFOAM/OpenFOAM-1.1/applications/utilities/mesh/conversion directory.

Ervin

adorean April 18, 2005 08:19

Sorry, the modified gmshToFoam
 
Sorry, the modified gmshToFoam.C file is http://www.cfd-online.com/OpenFOAM_D...s/mime_txt.gif gmshToFoam.C


All times are GMT -4. The time now is 03:55.