CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (
-   -   Modified gmshToFoam to help import hexahedral and prism elements from Gmsh (

adorean April 18, 2005 08:15

Hi all, I had trouble impor
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.


adorean April 18, 2005 08:19

Sorry, the modified gmshToFoam
Sorry, the modified gmshToFoam.C file is gmshToFoam.C

All times are GMT -4. The time now is 20:11.