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] Difficulty creating internal faces (https://www.cfd-online.com/Forums/openfoam-meshing/205497-difficulty-creating-internal-faces.html)

salomama August 19, 2018 15:38

Difficulty creating internal faces
 
Hello everyone
i tried to create two walls as internal faces in blockmeshdict but i faced lot of errors so i searched and i found many many complicated ways to do it but the easiest was tat below quoted (i attached also the first case and second that i am working on now)
so my problem even when creating the new case i still get an error, but different this time.
first time i used to get this error

#Trying to specify a boundary face 4(7 19 20 8) on the face on cell 3 which is either an internal face or already belongs to some other patch. This is face 0 of patch 6 named walls.

but now i get this one

#face 0 in patch 6 does not have neighbour cell face: 4(18 20 28 26)

i really don't know what i am doing wrong!

i am attaching my first blockmeshdict and the new one that i am working on.

first one;
Show quoted text
new one;
vertices
(
(0 0 0) //0
(1.19 0 0)
(0 0.5 0) //2
(1.19 0.5 0) //3
(0 0.91 0)
(1.49 0.91 0) //5
(0 1.21 0)
(1.49 1.21 0) //7
(0 0 0.1)
(1.19 0 0.1)
(0 0.5 0.1)
(1.19 0.5 0.1) //11
(0 0.91 0.1)
(1.49 0.91 0.1)
(0 1.21 0.1) //14
(1.49 1.21 0.1) //15
(1.19 0 0) //16
(1.5 0 0) //17

(1.19 0.5 0)
(1.5 0.5 0)
(1.49 0.91 0)
(1.5 0.91 0) //21
(1.49 1.21 0)
(1.5 1.21 0) //23
(1.19 0 0.1)
(1.5 0 0.1) //25
(1.19 0.5 0.1)
(1.5 0.5 0.1) // 27
(1.19 0.91 0.1)
(1.5 0.91 0.1) //29
(1.49 1.21 0.1)
(1.5 1.21 0.1) //31
);

blocks
(
hex (0 1 3 2 8 9 11 10) (10 10 1) simpleGrading (1 1 1)
hex (2 3 5 4 10 11 13 12) (10 10 1) simpleGrading (1 1 1)
hex (4 5 7 6 12 13 15 14) (10 10 1) simpleGrading (1 1 1)
hex (16 17 19 18 24 25 27 26) (10 10 1) simpleGrading (1 1 1)
hex (18 19 21 22 26 27 29 28) (10 10 1) simpleGrading (1 1 1)
hex (20 21 23 22 28 29 31 30) (10 10 1) simpleGrading (1 1 1)

);

edges
(
);

boundary
(
inlet
{
type patch;
faces
(
(4 12 14 6)
);
}
outlet
{
type patch;
faces
(
(21 23 31 29)
);
}
leftside
{
type patch;
faces
(
(0 8 10 2)
(2 10 12 4)
);
}
righttside
{
type patch;
faces
(
(19 21 29 27)
(17 19 27 25)

);
}
symmetry
{
type patch;
faces
(
(6 14 15 7)
(22 30 31 23)

);
}
farfield
{
type patch;
faces
(
(0 1 9 8)
(16 17 25 24)

);
}
walls
{
type wall;
faces
(
(18 20 28 26)
(21 20 28 29)

);
}
frontAndBack
{
type empty;
faces
(
(0 2 3 1)
(2 4 5 3)
(4 6 7 5)
(8 9 11 10)
(10 11 13 12)
(12 13 15 14)
(16 18 19 17)
(18 20 21 19)
(20 22 23 21)
(24 25 27 26)
(26 27 29 28)
(28 29 31 30)

);
}
);

mergePatchPairs
(
);


The situation:
| | |
ext1 int ext2

should be created as:
| || |
ext1 int1int2 ext2

which is achieved by duplicating the vertices that make up the internal patch,
such that you do not create two faces with the same set of vertices.
That would be ambiguous!

salomama August 19, 2018 15:45

2 Attachment(s)
attached the pictures of my cases


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