CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Modified gmshToFoam to help import hexahedral and prism elements from Gmsh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2005, 08:15
Default Modified gmshToFoam to help import hexahedral and prism elements from Gmsh
  #1
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 76
Rep Power: 17
adorean is on a distinguished road
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 is offline   Reply With Quote

Old   April 18, 2005, 08:19
Default Sorry, the modified gmshToFoam
  #2
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 76
Rep Power: 17
adorean is on a distinguished road
Sorry, the modified gmshToFoam.C file is gmshToFoam.C
adorean is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inquiry - Prism Layer / Hexahedral Mesh (TRIMMER) miragemobile STAR-CCM+ 2 February 28, 2019 10:04
[ICEM] Mesh a pie geometry with hexahedral and prism elements mgu ANSYS Meshing & Geometry 0 January 24, 2012 13:06


All times are GMT -4. The time now is 16:51.