148 lines
3.1 KiB
C++
148 lines
3.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 3.2 |
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
|
| \\/ M anipulation | For copyright notice see file Copyright |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object blockMeshDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
convertToMeters 0.1;
|
|
|
|
vertices
|
|
(
|
|
// Background mesh
|
|
(-10 -5 0)
|
|
(20 -5 0)
|
|
(20 5.01 0)
|
|
(-10 5.01 0)
|
|
(-10 -5 0.5)
|
|
(20 -5 0.5)
|
|
(20 5.01 0.5) // Note: point in cell issue
|
|
(-10 5.01 0.5)
|
|
|
|
// Cylinder, back
|
|
( 0 -2.5 0)
|
|
( 2.5 0 0)
|
|
( 0 2.5 0)
|
|
(-2.5 0 0)
|
|
|
|
( 0 -4 0)
|
|
( 4 0 0)
|
|
( 0 4 0)
|
|
(-4 0 0)
|
|
|
|
// Cylinder, front
|
|
( 0 -2.5 0.5)
|
|
( 2.5 0 0.5)
|
|
( 0 2.5 0.5)
|
|
(-2.5 0 0.5)
|
|
|
|
( 0 -4 0.5)
|
|
( 4 0 0.5)
|
|
( 0 4 0.5)
|
|
(-4 0 0.5)
|
|
);
|
|
|
|
blocks
|
|
(
|
|
// Background
|
|
hex (0 1 2 3 4 5 6 7) background (75 25 1) simpleGrading (1 1 1)
|
|
|
|
// Front
|
|
hex (8 12 13 9 16 20 21 17) front (10 20 1) simpleGrading (1 1 1)
|
|
hex (9 13 14 10 17 21 22 18) front (10 20 1) simpleGrading (1 1 1)
|
|
hex (10 14 15 11 18 22 23 19) front (10 20 1) simpleGrading (1 1 1)
|
|
hex (11 15 12 8 19 23 20 16) front (10 20 1) simpleGrading (1 1 1)
|
|
);
|
|
|
|
edges
|
|
(
|
|
// Inner arc, back
|
|
arc 8 9 ( 1.767767 -1.767767 0)
|
|
arc 9 10 ( 1.767767 1.767767 0)
|
|
arc 10 11 (-1.767767 1.767767 0)
|
|
arc 11 8 (-1.767767 -1.767767 0)
|
|
|
|
// Inner arc, front
|
|
arc 16 17 ( 1.767767 -1.767767 0.5)
|
|
arc 17 18 ( 1.767767 1.767767 0.5)
|
|
arc 18 19 (-1.767767 1.767767 0.5)
|
|
arc 19 16 (-1.767767 -1.767767 0.5)
|
|
|
|
// Outer arc, back
|
|
arc 12 13 ( 2.828427 -2.828427 0)
|
|
arc 13 14 ( 2.828427 2.828427 0)
|
|
arc 14 15 (-2.828427 2.828427 0)
|
|
arc 15 12 (-2.828427 -2.828427 0)
|
|
|
|
// Outer arc, front
|
|
arc 20 21 ( 2.828427 -2.828427 0.5)
|
|
arc 21 22 ( 2.828427 2.828427 0.5)
|
|
arc 22 23 (-2.828427 2.828427 0.5)
|
|
arc 23 20 (-2.828427 -2.828427 0.5)
|
|
);
|
|
|
|
patches
|
|
(
|
|
patch in
|
|
(
|
|
(0 4 7 3)
|
|
)
|
|
patch out
|
|
(
|
|
(2 6 5 1)
|
|
)
|
|
wall top
|
|
(
|
|
(3 7 6 2)
|
|
)
|
|
wall bottom
|
|
(
|
|
(1 5 4 0)
|
|
)
|
|
wall cylinder
|
|
(
|
|
(8 16 17 9)
|
|
(9 17 18 10)
|
|
(10 18 19 11)
|
|
(11 19 16 8)
|
|
)
|
|
|
|
patch outerCylinder
|
|
(
|
|
(12 13 21 20)
|
|
(13 14 22 21)
|
|
(14 15 23 22)
|
|
(15 12 20 23)
|
|
)
|
|
|
|
empty frontAndBack
|
|
(
|
|
(0 3 2 1)
|
|
(4 5 6 7)
|
|
|
|
(8 9 13 12)
|
|
(9 10 14 13)
|
|
(10 11 15 14)
|
|
(11 8 12 15)
|
|
|
|
(16 20 21 17)
|
|
(17 21 22 18)
|
|
(18 22 23 19)
|
|
(19 23 20 16)
|
|
)
|
|
);
|
|
|
|
mergePatchPairs
|
|
(
|
|
);
|
|
|
|
// ************************************************************************* //
|