CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

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

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

LinkBack Thread Tools Search this Thread 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: 9
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: 9
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 Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Gauss linear" gradient makes OpenFOAM zeroth-order accurate on unstructured meshes alexandross OpenFOAM Running, Solving & CFD 32 January 14, 2020 06:34
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
[] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
Why do code crash when OpenFOAM is combined with VTK? Algis OpenFOAM Programming & Development 0 February 2, 2016 11:43
[Other] OpenFoam is too fussy about non-orthoganal meshes! BrendaEM OpenFOAM Meshing & Mesh Conversion 12 December 28, 2014 14:13

All times are GMT -4. The time now is 00:50.