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/)
-   -   [blockMesh] generate a graded pipe mesh. (https://www.cfd-online.com/Forums/openfoam-meshing/67664-generate-graded-pipe-mesh.html)

jenright August 22, 2009 08:58

generate a graded pipe mesh.
 
2 Attachment(s)
Hi,

I'm trying to generate a 'doughnut' pipe mesh with different levels of refinement at different parts of the pipe using blockMesh.
I want the mesh to be fine in the middle of the pipe and coarse at the inlet and outlet sides.

I create the pipe mesh using a script that allows me to specify the outer and inner radius of the pipe (attached).

I've used the refineHexMesh utility on cells within a bounding box near the centre of the pipe. I also tried snappyHexMesh to refine the region inside a searchable box.
However, both of these seemed to refine in only one direction and the edges from the refined region didn't connect well with the non-refined region. I hope you can see this in the attached screenshot.

Does anyone have any suggestions?
Is it possible to modify my script to get refinement in a specific part of the pipe?

Thanks,
Jim


All times are GMT -4. The time now is 14:32.