CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] Smoothing a mesh from blockMesh (https://www.cfd-online.com/Forums/openfoam-meshing/110839-smoothing-mesh-blockmesh.html)

vatavuk December 22, 2012 06:01

Smoothing a mesh from blockMesh
 
Hi,

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

Paulo

http://i1278.photobucket.com/albums/...psb25eb2e3.png

kalle December 23, 2012 04:27

Hi,

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)

K

vatavuk December 23, 2012 08: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 http://www.cfd-online.com/Forums/ope...smoothing.html.
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 13: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,
Bruno


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