CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Geometry and meshing for OpenFOAM

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

LinkBack Thread Tools Display Modes
Old   August 6, 2009, 10:18
Default Geometry and meshing for OpenFOAM
New Member
Join Date: Jul 2009
Location: Den Haag, The Netherlands
Posts: 5
Rep Power: 10
Remy is on a distinguished road
Hey everyone,

I am a new user of OpenFOAm and I want to use it to solve an internal flow in a rectangular duct with circular outlets. I don't really know what is the best way to set the geometry and create the mesh. Do I have to set all the vertices (and the inlet and outlet patches) in the blockMeshDict ? How is it possible to create circular patches then ?
I tried to draw the system with Blender and use the snappyHexMesh tool, but it seems that I still need to set the inlet and outlet patches in blockMeshDict. Anyone knows of a simple way to set up the geometry ?

Another question : what program do you use to open and edit stl files ?
Remy is offline   Reply With Quote

Old   August 6, 2009, 10:21
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 10
johndeas is on a distinguished road
I use Blender too, but I had problems with a triangular vortex generator that was meshed using snappyHexMesh, apparently without errors (no warnings in the last iterations), but still gave warnings when running checkMesh.
johndeas is offline   Reply With Quote

Old   August 12, 2009, 07:02
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 281
Blog Entries: 5
Rep Power: 13
tomislav_maric is on a distinguished road

I'm using Salome-MECA and Engrid for meshing ships. I believe that Salome-MECA is really strait forward to use, especially for internal flows.

You just import the .stl file, create the geometry groups if you want (it speeds up the meshing process), mesh first the solid in 3D, then use submeshing to refine the original mesh.

You can download it from here:

The installation is non-existant, you just execute ./runSalomeMeca in the local dir for a quick look and work, but later just source the lib and bin dirs and it runs perfectly.

SALOME doesn't edit .stl file, but there is absolutely no need. You explode the .stl into solid, face and edge components and build on that, adding perhaps additional geometry. You can have i.e. a railway car in the geometry module, but if you mesh just one plate, only that mesh gets exportet later. Conversion to FOAM is really easy. SALOME doesn't use metrics, so draw in meter dimensions, although scaling in OpenFOAM is really easy.

Yes, and when you add groups to the mesh, you assign the names. These names get exported as bcs in .unv file and through conversion to OpenFOAM mesh.

Hope this helps,

tomislav_maric is offline   Reply With Quote


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
IGES/IGS format geometry file for icem meshing littlelz Main CFD Forum 0 May 27, 2008 18:24
Gambit Meshing complex geometry Edwin FLUENT 2 July 19, 2006 15:02
Meshing the geometry Vidya Raja FLUENT 0 February 26, 2006 20:44
Meshing Film cooling geometry Janendra Telisinghe CFX 1 January 31, 2006 07:16
meshing geometry in gambit soundar FLUENT 1 January 7, 2005 03:59

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