|
[Sponsors] |
May 21, 2011, 08:28 |
grading in the BlockMesh
|
#1 |
New Member
Sergey Zinkevich
Join Date: May 2011
Location: Russia, Moscow
Posts: 17
Rep Power: 15 |
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 |
|
May 23, 2011, 16:39 |
|
#2 |
New Member
Sergey Zinkevich
Join Date: May 2011
Location: Russia, Moscow
Posts: 17
Rep Power: 15 |
Just solved
|
|
Tags |
blockmesh, simplegrading |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh - more control of grading | crossley90 | OpenFOAM Meshing & Mesh Conversion | 2 | December 19, 2022 16:44 |
[blockMesh] About Simple Grading in blockMesh | ce73stargazer | OpenFOAM Meshing & Mesh Conversion | 4 | May 9, 2020 06:37 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
[blockMesh] blockMesh grading | qepasol | OpenFOAM Meshing & Mesh Conversion | 0 | June 25, 2014 07:24 |
[blockMesh] BlockMesh Grading Ambiguity: How to Get Desired y1 | dancfd | OpenFOAM Meshing & Mesh Conversion | 6 | June 4, 2014 02:04 |