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/)
-   -   [Other] Confused about the block definition (https://www.cfd-online.com/Forums/openfoam-meshing/160042-confused-about-block-definition.html)

ziming zhu September 30, 2015 09:45

Confused about the block definition
 
1 Attachment(s)
Hello guys,
I am working on a simulation about the flow around a cylinder,and I have problems when writing the blockMeshDict .The tuition has divide the region as the follwing picture:Attachment 42420


Then he writes hex (5 4 9 10 24 23 28 29) (80 20 1) simpleGrading (10 1 1) and hex (16 10 9 15 35 29 28 34) (20 80 1) simpleGrading (1 10 1) in the blocks definition.
Why don't the two blocks have the same value,:confused:the number of cells in each direction should be the same.:confused:
Any suggestion helpful.
Regards,
Ziming Zhu

cutter November 23, 2015 07:27

Hi!

That's right - the cell numbers need to match for neighboring block edges and faces.

The definition of blocks needs to follow a certain scheme, have a look at figure 5.5 of http://cfd.direct/openfoam/user-guide/blockmesh/. However there multiple possible/valid definitions for one single block - depending on the vertex index to start with. This induces a local coordinate system for each block.

In your case the the blocks are defined in such a way that the first local coordinate direction of the first block matches the second local coordinate direction of the second block. That's why the discretization is specified differently.

You can either live with the different definitions of the discretizations, or change the one of the blocks (which might cause same problems with other adjacent blocks).

Hope that helps.

Cutter


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