CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (http://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   Modified gmshToFoam to help import hexahedral and prism elements from Gmsh (http://www.cfd-online.com/Forums/openfoam-meshing-open/61905-modified-gmshtofoam-help-import-hexahedral-prism-elements-gmsh.html)

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.

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 18:32.