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/)
-   -   step in duct (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/98800-step-duct.html)

fferroni March 19, 2012 14:10

step in duct
 
Hello,

I've never made a new mesh with blockMesh before, and I need some help.

I am trying to make a 2D straight square duct, with rectangular obstacle along the duct...

The duct is 50mm wide, 500 long. The rectangular obstacle is 25mm high, starts at 100mm and stops at 110mm...
I tried making it, but it tells me that "face 0 in patch 0 does not have neighbour cell face: 4(0 1 9 8).

Not sure, I tried looking at the wall dam tutorial but I'm not sure what the separation of blocks does...

Thank you!!


**************************************************



convertToMeters 0.001;

vertices
(
(0 0 0) //vertex number 0
(50 0 0) //vertex number 1
(50 500 0) //vertex number 2
(0 500 0) //vertex number 3
(0 100 0) //vertex number 4
(0 110 0) //vertex number 5
(25 100 0) //vertex number 6
(25 110 0) //vertex number 7

(0 0 1) //vertex number 8
(50 0 1) //vertex number 9
(50 500 1) //vertex number 10
(0 500 1) //vertex number 11
(0 100 1) //vertex number 12
(0 110 1) //vertex number 13
(25 100 1) //vertex number 14
(25 110 1) //vertex number 15
);

blocks
(
hex (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) (50 500 1) simpleGrading (1 1 1)
);



edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(0 1 9 8)
);
}
outlet
{
type patch;
faces
(
(2 3 11 10)
);
}

lowerWall
{
type patch;
faces
(
(0 4 12 8)
(4 6 14 12)
(6 7 15 14)
(7 15 13 5)
(5 3 11 13)
);
}
upperWall
{
type patch;
faces
(
(1 9 10 2)
);
}
frontAndBack
{
type empty;
faces
(
(0 4 6 7 5 3 2 1)
(8 12 14 15 13 11 10 9)
);
}
);

mergePatchPairs
(
);


All times are GMT -4. The time now is 07:12.