I need to do the journal bearing simulation on OpenFOAM and I have tried several days even setting up the mesh by myself, however, what I get is the full cylinder, instead of the attached picture. Also appreciate if you can help with how I should specify my movingWall.
Below is my code for the boundaryMesh
convertToMeters 0.01;
vertices
(
(0.115 0.029 0) //vertex 0
(-0.065 0.029 0) //vertex 1
(-0.065 -0.029 0) //vertex 2
(0.115 -0.029 0) //vertex 3
(0.186 0.059 0) //vertex 4
(-0.186 0.059 0) //vertex 5
(-0.186 -0.059 0) //vertex 6
(0.186 -0.059 0) //vertex 7
(0.115 0.029 -5) //vertex 8
(-0.065 0.029 -5) //vertex 9
(-0.065 -0.029 -5) //vertex 10
(0.115 -0.029 -5) //vertex 11
(0.186 0.059 -5) //vertex 12
(-0.186 0.059 -5) //vertex 13
(-0.186 -0.059 -5) //vertex 14
(0.186 -0.059 -5) //vertex 15
);
blocks
(
hex (0 1 2 3 8 9 10 11) (5 5 3) simpleGrading (1 1 1) //block 1
hex (0 4 5 1 8 12 13 9) (5 5 3) simpleGrading (1 1 1) //block 2
hex (1 5 6 2 9 13 14 10) (5 5 3) simpleGrading (1 1 1) //block 3
hex (2 6 7 3 10 14 15 11) (5 5 3) simpleGrading (1 1 1) //block 4
hex (7 4 0 3 15 12 8 11) (5 5 3) simpleGrading (1 1 1) //block 5
);
edges
(
arc 4 5 (0 0.196 0) //edge 1
arc 5 6 (-0.196 0 0) //edge 2
arc 6 7 (0 -0.196 0) //edge 3
arc 7 4 (0.196 0 0) //edge 4
arc 0 1 (0 0.096 0) //edge 5
arc 1 2 (-0.071 0 0) //edge 6
arc 2 3 (0 -0.096 0) //edge 7
arc 3 0 (0.121 0 0) //edge 8
arc 12 13 (0 0.196 -5) //edge 9
arc 13 14 (-0.196 0 -5) //edge 10
arc 14 15 (0 -0.196 -5) //edge 11
arc 15 12 (0.196 0 -5) //edge 12
arc 8 9 (0 0.096 -5) //edge 13
arc 9 10 (-0.071 0 -5) //edge 14
arc 10 11 (0 -0.096 -5) //edge 15
arc 11 8 (0.121 0 -5) //edge 16
);
boundary
(
movingWall
{
type wall;
faces
(
(0 1 2 3)
(8 9 10 11)
);
}
fixedWalls
{
type patch;
faces
(
(0 4 5 1)
(1 5 6 2)
(2 6 7 3)
(3 7 4 0)
(8 9 13 12)
(9 10 14 13)
(10 11 15 14)
(11 8 12 15)
);
}
frontAndBack
{
type empty;
faces
(
(12 13 5 4)
(13 14 6 5)
(14 15 7 6)
(15 12 4 7)
);
}
);
mergePatchPairs();