CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Modified gmshToFoam to help import hexahedral and prism elements from Gmsh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2005, 08:15
Default Hi all, I had trouble impor
  #1
Member
 
Ervin Adorean
Join Date: Mar 2009
Posts: 68
Rep Power: 8
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: 68
Rep Power: 8
adorean is on a distinguished road
Sorry, the modified gmshToFoam.C file is gmshToFoam.C
adorean is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GmshToFoam varun Open Source Meshers: Gmsh, Netgen, CGNS, ... 4 March 13, 2012 04:24
GmshToFoam or gmsh2ToFoam amp gmsh sudden disappear zhoubinwx Open Source Meshers: Gmsh, Netgen, CGNS, ... 20 August 7, 2009 18:07
GmshToFoam example guillaume OpenFOAM Mesh Utilities 3 February 25, 2008 21:06
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Prism Elements ashish CFX 0 April 20, 2005 06:03


All times are GMT -4. The time now is 23:41.