CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: blockMesh (
-   -   two sided mesh refinement(in both direction) (

immortality May 23, 2013 06:43

two sided mesh refinement(in both direction)
I wondering if is there a way to have a mesh grow/decrease ratio in both sides of a block without the need to break it to two blocks.
in the customary way it has ratio only in one direction

hex (1 2 5 4 10 11 14 13) (100 10 1) simpleGrading (.5 8 1)
is there a feature to refine mesh with a ratio in both directions like FLUENT and maybe other softwares?

colinB May 23, 2013 10:40

the keyword is doubleGrading see below:

be prepared it is a do-it-yourself feature of OF


Yosmcer May 24, 2013 03:54

The other grading method in the tutorial is edgeGrading but it only allow to decompose according to the edges instead of only direction. This do not allow to have different direction of grading on the same edge.

So the solution seams to be to use this king of script. However, I's possible that you need to update it to be compatible with your openFOAM version.

Instructions seams to be there:

All times are GMT -4. The time now is 09:45.