CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   A simple problem about blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/107515-simple-problem-about-blockmesh.html)

sharonyue September 29, 2012 08:12

A simple problem about blockMesh
 
hi guys:

This is my blockmeshdict. its very sparse. but when Im revising the code in red below. There is an error.

anyone can help me ? thx very much.







// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.1;

vertices
(
(0 0 0)
(0.4 0 0)
(0.5 0 0)
(1 0 0)
(0 1 0)
(0.4 1 0)
(0.5 1 0)
(1 1 0)
(0.4 2 0)
(0.5 2 0)
(0 0 0.1)
(0.4 0 0.1)
(0.5 0 0.1)
(1 0 0.1)
(0 1 0.1)
(0.4 1 0.1)
(0.5 1 0.1)
(1 1 0.1)
(0.4 2 0.1)
(0.5 2 0.1)
);

blocks
(
hex (0 1 5 4 10 11 15 14) (10 20 1) simpleGrading (1 1 1)// why I can not revise this code in red?
hex (1 2 6 5 11 12 16 15) (5 20 1) simpleGrading (1 1 1)
hex (2 3 7 6 12 13 17 16) (10 20 1)simpleGrading (1 1 1)
hex (5 6 9 8 15 16 19 18) (5 20 1)simpleGrading (1 1 1)
);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(8 18 19 9)
);
}
leftWall
{
type wall;
faces
(
(0 4 14 10)

);
}
rightWall
{
type wall;
faces
(
(3 13 17 7)

);
}
lowerWall
{
type wall;
faces
(
(0 10 11 1)
(1 11 12 2)
(2 12 13 3)

);
}
upWall
{
type wall;
faces
(
(4 14 15 5)
(6 16 17 7)
);
}
upleftWall
{
type wall;
faces
(
(5 15 18 8)
);
}
uprightWall
{
type wall;
faces
(
(6 16 19 9)
);
}

);

mergePatchPairs
(
);

//

alberto September 30, 2012 03:10

The part in red is the number of nodes in each direction for the corresponding block. Since blocks are connected, the numbers have to be consistent. Most likely you are trying to specify an inconsistent discretization (different number of nodes on the same edge shared by two blocks, o opposite edges, for example).

Best,

sharonyue September 30, 2012 20:34

Quote:

Originally Posted by alberto (Post 384229)
The part in red is the number of nodes in each direction for the corresponding block. Since blocks are connected, the numbers have to be consistent. Most likely you are trying to specify an inconsistent discretization (different number of nodes on the same edge shared by two blocks, o opposite edges, for example).

Best,

woo!!!!!!!!!!!!!!!!!!it works!!! thx very much!!


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