CFD Online Logo CFD Online URL
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Comparing OpenFOAM to another code: advice on dealing with meshes?

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

LinkBack Thread Tools Display Modes
Old   June 11, 2016, 12:00
Default Comparing OpenFOAM to another code: advice on dealing with meshes?
New Member
Join Date: May 2016
Posts: 19
Rep Power: 2
SFr is on a distinguished road
I would be very grateful for advice about exporting a mesh for use in benchmarking.

I want to use OpenFOAM/interFoam to reproduce/benchmark a 2D, two-phase flow simulation against a result from another code. As far as I know, meshes should be as similar as possible when benchmarking. However, I'm having a lot of trouble using the same mesh in both simulations. Here are my questions:

1. The easiest thing to do would be to use a different mesh for each code. How much of a problem would this be? Is it acceptable to call a comparison a "benchmark" if the meshes used for each code are different?

2. It is not possible to create meshes in the other code that will work for an OpenFOAM/interFoam simulation. The reason is that the other code creates its own meshes. They are not importable into OpenFOAM via any of the current mesh import functions. Also, I'm pretty sure the meshes aren't high-quality enough to result in convergence for an OpenFOAM simulation (I've attached an example).

So the only solution I can think of is to export an OpenFOAM mesh in a format that is identical to what the other code requires (an example of the mesh file the other code requires is attached in "mesh.txt"). Does anyone know how to do this?

Thank you.

Last edited by SFr; June 11, 2016 at 15:05. Reason: Shortened, clarified
SFr is offline   Reply With Quote

Old   June 11, 2016, 12:02
New Member
Join Date: May 2016
Posts: 19
Rep Power: 2
SFr is on a distinguished road

ExampleMeshOtherCode.jpgMy attachments don't seem to have appeared on my previous message, so I'm trying again here.
SFr is offline   Reply With Quote


finite area method, finite element, finite volume method, mesh 2d, mesh and grid

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
A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 1 February 28, 2016 20:00
Why do code crash when OpenFOAM is combined with VTK? Algis OpenFOAM Programming & Development 0 February 2, 2016 12:43
Problems setting up case for running with chtMultiRegionFoam (mesh is from Salome) esujby OpenFOAM Pre-Processing 29 January 31, 2016 14:09
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55

All times are GMT -4. The time now is 15:21.