CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (https://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   grading in the BlockMesh (https://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/88601-grading-blockmesh.html)

Astarta May 21, 2011 07:28

grading in the BlockMesh
 
I try to improve my mesh by grading, but when I try to change scale I face problem,
please show me how to use grading

for example I want to modify 7, 8-th blocks
text:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.1;

vertices
(
(1 0 0) //0
(1.1 0 0) //1
(4 0 0) //2
(4 0.082 0)
(0.7 0.082 0)
(0.7 0.039 0) //5
(4 0.6 0)
(0.7 0.6 0)
(0.3 0.6 0)
(0.3 0.1 0)
(0.3 0.06 0) //10
(0 0 0)
(-0.05 0 0)
(-2 0 0) //13
(-2 0.077 0)
(0.075 0.077 0)//15
(0.1 0.042 0)
(-2 0.6 0) //17
(0.074 0.6 0) //18

(1 0 0.5) //19
(1.1 0 0.5) //20
(4 0 0.5) //21
(4 0.082 0.5)
(0.7 0.082 0.5)
(0.7 0.039 0.5) //24
(4 0.6 0.5)
(0.7 0.6 0.5)
(0.3 0.6 0.5)
(0.3 0.1 0.5)
(0.3 0.06 0.5) //29
(0 0 0.5)
(-0.05 0 0.5)
(-2 0 0.5) //32
(-2 0.077 0.5)
(0.075 0.077 0.5)//34
(0.1 0.042 0.5)
(-2 0.6 0.5) //36
(0.074 0.6 0.5) //37


);

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

);


edges

(
arc 0 5 (0.85 0.022 0)
arc 5 10 (0.45 0.057 0)
simpleSpline 1 4 (
(1.1 0 0)
// (1.0846 0.0304 0)
// (1.0566 0.0498 0)
// (0.8789 0.073 0)
(0.7 0.0826 0)
)
simpleSpline 4 9 (
(0.7 0.0826 0)
(0.48 0.1 0)
(0.3 0.1 0)
)
arc 19 24 (0.85 0.022 0.5)
arc 24 29 (0.45 0.057 0.5)
simpleSpline 20 23 (
(1.1 0 0.5)
// (1.0846 0.0304 0.5)
// (1.0566 0.0498 0.5)
// (0.8789 0.073 0.5
(0.7 0.0826 0.5)
)
simpleSpline 23 28 (
(0.7 0.0826 0.5)
(0.48 0.1 0.5)
(0.3 0.1 0.5)
)
arc 11 16 (0.05 0.031 0)
arc 16 10 (0.2 0.055 0)
simpleSpline 12 15 (
(-0.05 0 0)
(0.0056 0.0498 0)
(0.075 0.077 0)
)
simpleSpline 15 9 (
(0.075 0.077 0)
(0.1869 0.0942 0)
(0.3 0.1 0)
)
arc 30 35 (0.05 0.031 0.5)
arc 35 29 (0.2 0.055 0.5)
simpleSpline 31 34 (
(-0.05 0 0.5)
(0.0056 0.0498 0.5)
(0.075 0.077 0.5)
)
simpleSpline 34 28 (
(0.075 0.077 0.5)
(0.1869 0.0942 0.5)
(0.3 0.1 0.5)
)
);

patches
(
symmetryPlane down
(
(0 1 20 19)
(1 2 21 20)
(12 11 30 31)
(13 12 31 32)
)
patch right
(
(2 3 22 21)
(3 6 25 22)
)
patch up
(
(7 8 27 26)
(6 7 26 25)
(8 18 37 27)
(18 17 36 37)
)
patch left
(
(14 13 32 33)
(17 14 33 36)
)
wall wing
(
(10 5 24 29)
(5 0 19 24)
(16 10 29 35)
(11 16 35 30)
)



);

mergePatchPairs
(
);

// ************************************************** *********************** //

Greeting,
Sergey Zinkevich

Astarta May 23, 2011 15:39

Just solved


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