CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Meshing & Mesh Conversion (
-   -   Smoothing a mesh from blockMesh (

vatavuk December 22, 2012 07:01

Smoothing a mesh from blockMesh

I created a mesh using blockmesh but I'm not happy with the result in the boundary between blocks. In this region the lines sudenly change direction (See the picture below). Is there any free tool that can improve the mesh by relocating the vertexes?

Merry Christmas and Happy Holidays to all


kalle December 23, 2012 05:27


I am not aware of any tools for OpenFOAM to smooth blockMesh-meshes. However, there is a branch in 1.6-ext called "feature/mesquiteHexPrismSupport". The 3rd party Mesquite code can do this as far as I understood. It should be possible to use the code in that branch to build a new blockMesh application, which could have more input in blockMeshDict to control the Mesquite code, and let it do the smoothing. This should not be too much coding, but I have not had the time to implement it. If people are interested, and believes in the idea, we could maybe start up a joint effort. (I would also like to rewrite blockMesh to do surface snapping, using mesh motion solvers, but that is a different story)


vatavuk December 23, 2012 09:49

Hi Karl,
I've been looking in the Mesquite documentation and it really seems to do smoothing. But this code does not work by itself it needs a kind of interface to work with OpenFoam. It seems this had been already done, as is mentioned in this thread
In the above thread, we see that there is an example of smoothing, but I would need more precise instructions to be able to do this in my case.
Thanks and Happy Holidays

wyldckat December 24, 2012 14:18

Greetings to all!

@Paulo: There are two applications in OpenFOAM that I can think of:
  • modifyMesh - very tricky to use, but it provides the basic tools for mesh manipulation.
  • moveDynamicMesh - you can create an interface (of faceSets?) in the faces/cells that need to be moved... there are a few examples I can think of for dynamic meshes that might come in handy as references:
Best regards,

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