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] Double grading meshes (https://www.cfd-online.com/Forums/openfoam-meshing/167219-double-grading-meshes.html)

tb465 February 25, 2016 11:04

Double grading meshes
 
Hi All,

I've just started using openFoam and I'm looking to change my mesh using double grading. This sentence is in the wiki,

"Each of the grading sections is described by a triple consisting of the fraction of the block, the fraction of the divisions and the grading ratio"

and I was wondering what the fraction of the divisions is?

Antimony February 25, 2016 21:30

Hi,

A typical block definition goes something like this:

hex (0 1 2 3 4 5 6 7) (NX NY NZ)
simpleGrading
(
1
(
(LY1 ny1 GR)
(LY2 ny2 GR)
)
1
)

Basically these should hold:
LY1 + LY2 = Span in the y-direction of the mesh
ny1 + ny2 = NY

i.e. the sum of the number of cells in each sub-block should equal the total number of cells of the big block.

Hope this helps.

Cheers,
Antimony


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