mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use new blockMesh support (faces, transforms)
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -30,65 +30,41 @@ vertices
|
|||||||
|
|
||||||
blocks
|
blocks
|
||||||
(
|
(
|
||||||
hex (0 1 2 3 4 5 6 7) (50 40 1) simpleGrading (1 1 1)
|
hex (0 1 2 3 4 5 6 7) (50 40 1) grading (1 1 1)
|
||||||
);
|
|
||||||
|
|
||||||
edges
|
|
||||||
(
|
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
(
|
(
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type wall;
|
type wall;
|
||||||
faces
|
faces ((0 2));
|
||||||
(
|
|
||||||
(1 5 4 0)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type wall;
|
type wall;
|
||||||
faces
|
faces ((0 3));
|
||||||
(
|
|
||||||
(2 6 7 3)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
faces
|
faces ((0 0));
|
||||||
(
|
|
||||||
(0 4 7 3)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
faces
|
faces ((0 1));
|
||||||
(
|
|
||||||
(1 5 6 2)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type empty;
|
type empty;
|
||||||
faces
|
faces ((0 4) (0 5));
|
||||||
(
|
|
||||||
(0 3 2 1)
|
|
||||||
(4 5 6 7)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
mergePatchPairs
|
|
||||||
(
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -14,6 +14,20 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// local coordinate stretching
|
||||||
|
prescale (1.25 1 1);
|
||||||
|
|
||||||
|
transform
|
||||||
|
{
|
||||||
|
origin (0 0 0);
|
||||||
|
rotation
|
||||||
|
{
|
||||||
|
type axisAngle;
|
||||||
|
axis (1 0 0);
|
||||||
|
angle 45;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
geometry
|
geometry
|
||||||
{
|
{
|
||||||
cylinder
|
cylinder
|
||||||
@ -72,12 +86,11 @@ vertices
|
|||||||
|
|
||||||
blocks
|
blocks
|
||||||
(
|
(
|
||||||
hex (v0 v1 v2 v3 v4 v5 v6 v7) (8 8 8) simpleGrading (1 1 1)
|
hex (v0 v1 v2 v3 v4 v5 v6 v7) (8 8 8) grading (1 1 1)
|
||||||
name sideBlock hex (v0 v3 v9 v8 v4 v7 v11 v10) (8 20 8)
|
name sideBlock hex (v0 v3 v9 v8 v4 v7 v11 v10) (8 20 8) grading (1 1 1)
|
||||||
simpleGrading (1 1 1)
|
|
||||||
|
|
||||||
hex ( v7 v6 v2 v3 v15 v14 v13 v12) (8 8 8) simpleGrading (1 1 1)
|
hex ( v7 v6 v2 v3 v15 v14 v13 v12) (8 8 8) grading (1 1 1)
|
||||||
hex (v16 v19 v18 v17 v0 v4 v5 v1) (8 8 8) simpleGrading (1 1 1)
|
hex (v16 v19 v18 v17 v0 v4 v5 v1) (8 8 8) grading (1 1 1)
|
||||||
);
|
);
|
||||||
|
|
||||||
edges
|
edges
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -74,12 +74,12 @@ edges
|
|||||||
|
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
project (0 4 7 3) sphere // x-min
|
project (0 0) sphere // x-min
|
||||||
project (1 2 6 5) sphere // x-max
|
project (0 1) sphere // x-max
|
||||||
project (0 1 5 4) sphere // y-min
|
project (0 2) sphere // y-min
|
||||||
project (3 7 6 2) sphere // y-max
|
project (0 3) sphere // y-max
|
||||||
project (0 3 2 1) sphere // z-min
|
project (0 4) sphere // z-min
|
||||||
project (4 5 6 7) sphere // z-max
|
project (0 5) sphere // z-max
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
@ -89,12 +89,12 @@ boundary
|
|||||||
type wall;
|
type wall;
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
(0 4 7 3) // x-min
|
(0 0) // x-min
|
||||||
(1 2 6 5) // x-max
|
(0 1) // x-max
|
||||||
(0 1 5 4) // y-min
|
(0 2) // y-min
|
||||||
(3 7 6 2) // y-max
|
(0 3) // y-max
|
||||||
(0 3 2 1) // z-min
|
(0 4) // z-min
|
||||||
(4 5 6 7) // z-max
|
(0 5) // z-max
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -117,12 +117,12 @@ edges
|
|||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
// Outer blocks
|
// Outer blocks
|
||||||
project ( 8 12 15 11) sphere // x-min
|
project (1 0) sphere // block 1: x-min
|
||||||
project ( 9 10 14 13) sphere // x-max
|
project (2 1) sphere // block 2: x-max
|
||||||
project ( 8 9 13 12) sphere // y-min
|
project (3 2) sphere // block 3: y-min
|
||||||
project (11 15 14 10) sphere // y-max
|
project (4 3) sphere // block 4: y-max
|
||||||
project ( 8 11 10 9) sphere // z-min
|
project (5 4) sphere // block 5: z-min
|
||||||
project (12 13 14 15) sphere // z-max
|
project (6 5) sphere // block 6: z-max
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
@ -132,12 +132,12 @@ boundary
|
|||||||
type wall;
|
type wall;
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
( 8 12 15 11) // x-min
|
(1 0) // block 1: x-min
|
||||||
( 9 10 14 13) // x-max
|
(2 1) // block 2: x-max
|
||||||
( 8 9 13 12) // y-min
|
(3 2) // block 3: y-min
|
||||||
(11 15 14 10) // y-max
|
(4 3) // block 4: y-max
|
||||||
( 8 11 10 9) // z-min
|
(5 4) // block 5: z-min
|
||||||
(12 13 14 15) // z-max
|
(6 5) // block 6: z-max
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -124,12 +124,12 @@ edges
|
|||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
// Outer blocks
|
// Outer blocks
|
||||||
project ( 8 12 15 11) sphere // x-min
|
project (1 0) sphere // block 1: x-min
|
||||||
project ( 9 10 14 13) sphere // x-max
|
project (2 1) sphere // block 2: x-max
|
||||||
project ( 8 9 13 12) sphere // y-min
|
project (3 2) sphere // block 3: y-min
|
||||||
project (11 15 14 10) sphere // y-max
|
project (4 3) sphere // block 4: y-max
|
||||||
project ( 8 11 10 9) sphere // z-min
|
project (5 4) sphere // block 5: z-min
|
||||||
project (12 13 14 15) sphere // z-max
|
project (6 5) sphere // block 6: z-max
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
@ -139,12 +139,12 @@ boundary
|
|||||||
type wall;
|
type wall;
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
( 8 12 15 11) // x-min
|
(1 0) // block 1: x-min
|
||||||
( 9 10 14 13) // x-max
|
(2 1) // block 2: x-max
|
||||||
( 8 9 13 12) // y-min
|
(3 2) // block 3: y-min
|
||||||
(11 15 14 10) // y-max
|
(4 3) // block 4: y-max
|
||||||
( 8 11 10 9) // z-min
|
(5 4) // block 5: z-min
|
||||||
(12 13 14 15) // z-max
|
(6 5) // block 6: z-max
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -133,12 +133,12 @@ edges
|
|||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
// Outer blocks
|
// Outer blocks
|
||||||
project ( 8 12 15 11) sphere // x-min
|
project (1 0) sphere // block 1: x-min
|
||||||
project ( 9 10 14 13) sphere // x-max
|
project (2 1) sphere // block 2: x-max
|
||||||
project ( 8 9 13 12) sphere // y-min
|
project (3 2) sphere // block 3: y-min
|
||||||
project (11 15 14 10) sphere // y-max
|
project (4 3) sphere // block 4: y-max
|
||||||
project ( 8 11 10 9) sphere // z-min
|
project (5 4) sphere // block 5: z-min
|
||||||
project (12 13 14 15) sphere // z-max
|
project (6 5) sphere // block 6: z-max
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
@ -148,12 +148,12 @@ boundary
|
|||||||
type wall;
|
type wall;
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
( 8 12 15 11) // x-min
|
(1 0) // block 1: x-min
|
||||||
( 9 10 14 13) // x-max
|
(2 1) // block 2: x-max
|
||||||
( 8 9 13 12) // y-min
|
(3 2) // block 3: y-min
|
||||||
(11 15 14 10) // y-max
|
(4 3) // block 4: y-max
|
||||||
( 8 11 10 9) // z-min
|
(5 4) // block 5: z-min
|
||||||
(12 13 14 15) // z-max
|
(6 5) // block 6: z-max
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
| \\ / O peration | Version: v2106 |
|
| \\ / O peration | Version: v2112 |
|
||||||
| \\ / A nd | Website: www.openfoam.com |
|
| \\ / A nd | Website: www.openfoam.com |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
@ -80,12 +80,12 @@ edges
|
|||||||
|
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
project (0 4 7 3) sphere // x-min
|
project (0 0) sphere // x-min
|
||||||
project (1 2 6 5) sphere // x-max
|
project (0 1) sphere // x-max
|
||||||
project (0 1 5 4) sphere // y-min
|
project (0 2) sphere // y-min
|
||||||
project (3 7 6 2) sphere // y-max
|
project (0 3) sphere // y-max
|
||||||
project (0 3 2 1) sphere // z-min
|
project (0 4) sphere // z-min
|
||||||
project (4 5 6 7) sphere // z-max
|
project (0 5) sphere // z-max
|
||||||
);
|
);
|
||||||
|
|
||||||
boundary
|
boundary
|
||||||
@ -95,12 +95,12 @@ boundary
|
|||||||
type wall;
|
type wall;
|
||||||
faces
|
faces
|
||||||
(
|
(
|
||||||
(0 4 7 3) // x-min
|
(0 0) // x-min
|
||||||
(1 2 6 5) // x-max
|
(0 1) // x-max
|
||||||
(0 1 5 4) // y-min
|
(0 2) // y-min
|
||||||
(3 7 6 2) // y-max
|
(0 3) // y-max
|
||||||
(0 3 2 1) // z-min
|
(0 4) // z-min
|
||||||
(4 5 6 7) // z-max
|
(0 5) // z-max
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user