CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Native Meshers: blockMesh

Help needed to generate a graded pipe mesh.

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

LinkBack Thread Tools Display Modes
Old   August 22, 2009, 08:58
Default Help needed to generate a graded pipe mesh.
New Member
Jim Enright
Join Date: Jun 2009
Posts: 1
Rep Power: 0
jenright is on a distinguished road

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?

Attached Images
File Type: jpg pipeMesh_refineHexMesh.jpg (59.3 KB, 84 views)
Attached Files
File Type: gz doughnutPipeMesh.m4.gz (1.4 KB, 23 views)
jenright is offline   Reply With Quote


blockmesh, mesh quality, refinement

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
Mesh generation software is needed H.Dou Main CFD Forum 12 May 4, 2011 15:20
SnappyHexMesh not generate mesh first time mavimo OpenFOAM Mesh Utilities 4 August 26, 2008 07:08
Why Differences between tetrahedra polyhedra and prism mesh pipe flow computation with sonicLiquidFoam chnrdu OpenFOAM Running, Solving & CFD 4 June 17, 2008 06:21
Problem when trying to generate a new mesh gaottino OpenFOAM Meshing & Mesh Conversion 0 June 30, 2006 07:51
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09

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