November 11, 2021, 08:45
|
Make slices in i,j,k direction in Tecplot
|
#1
|
New Member
Shengjie Lu
Join Date: Sep 2020
Location: Nanjing,China
Posts: 12
Rep Power: 4
|
Hi,FOAMers:
I use blockMesh to generate a complete structured mesh to simulate flows in a curved open channel. When I check the result with slices in Tecplot, it can only do slices in x,y,z direction (Cartisian Coordinate), not in i,j,k direction.
I want to make slices in streamwise direction, that is, to slice along the centerline. So far, I have found the ijkMesh in src/OpenFOAM/meshes/ijkMesh, but still don't know its usage.
I post my grid image and blockMeshDict below.
Could anyone help me with this issue? Thanks in advance!
Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1.000;
vertices
(
(0 0 0) // 0
(0.254 0 0)
(0 0.476 0)
(0.254 0.476 0)
(1.041 1.263 0)
(1.517 1.263 0)
(1.041 1.517 0)
(1.517 1.517 0)
(2.304 2.304 0)
(2.558 2.304 0) // 9
(0 0 0.057)
(0.254 0 0.057)
(0 0.476 0.057)
(0.254 0.476 0.057)
(1.041 1.263 0.057)
(1.517 1.263 0.057)
(1.041 1.517 0.057)
(1.517 1.517 0.057)
(2.304 2.304 0.057)
(2.558 2.304 0.057) //19
);
edges
(
arc 2 6 (0.3049 1.2121 0) // upper arcs
arc 3 4 (0.4845 1.0325 0)
arc 5 9 (2.2531 1.5679 0)
arc 7 8 (2.0735 1.7475 0)
arc 12 16 (0.3049 1.2121 0.057) // lower arcs
arc 13 14 (0.4845 1.0325 0.057)
arc 15 19 (2.2531 1.5679 0.057)
arc 17 18 (2.0735 1.7475 0.057)
);
blocks
(
hex (0 1 3 2 10 11 13 12) (160 80 50) // 1
simpleGrading
(
((0.5 0.5 10.331) (0.5 0.5 0.0968))
1
4.2562
)
hex (2 3 4 6 12 13 14 16) (160 240 50) // 2
simpleGrading
(
((0.5 0.5 10.331) (0.5 0.5 0.0968))
1
4.2562
)
hex (6 4 5 7 16 14 15 17) (160 80 50) // 3
simpleGrading
(
((0.5 0.5 10.331) (0.5 0.5 0.0968))
1
4.2562
)
hex (7 5 9 8 17 15 19 18) (160 240 50) // 4
simpleGrading
(
((0.5 0.5 10.331) (0.5 0.5 0.0968))
1
4.2562
)
);
boundary
(
INLET
{
type cyclic;
neighbourPatch OUTLET;
faces
(
(0 1 11 10)
);
}
OUTLET
{
type cyclic;
neighbourPatch INLET;
faces
(
(8 9 19 18)
);
}
WALLS
{
type wall;
faces
(
(2 0 10 12) // left walls
(6 2 12 16)
(7 6 16 17)
(8 7 17 18)
(1 3 13 11) // right walls
(3 4 14 13)
(4 5 15 14)
(5 9 19 15)
(0 2 3 1) // bottom walls
(2 6 4 3)
(4 6 7 5)
(5 7 8 9)
);
}
ATMOSPHERE
{
type symmetryPlane;
faces
(
(10 11 13 12)
(12 13 14 16)
(14 15 17 16)
(15 19 18 17)
);
}
);
|
|
|