/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2506                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

scale   0.001;

vertices
(
    (-20 0 0) //0 
    (0 0 0) //1 1
    (0 7.62 0) //2
    (-20 7.62 0) //3
    (52 9.17 0) //4
    (52 16.79 0) //5
    (82 21.3 0) //6
    (80 28.1 0) //7
    (135 21.3 0) //8
    (135 28.1 0) //9
    (135 30.1 0) //10
    (85.35 30.1 0) //11
    (135 80.1 0) //12
    (85.35 80.1 0) //13
    (52 67.4 0) //14
    (0 47.61 0) //15
    (-20.7 40 0) //16
    (78.06 80 0) //17

    (-20 0 1) //0 18 
    (0 0 1) //1 19
    (0 7.62 1) //2 20
    (-20 7.62 1) //3 21
    (52 9.17 1) //4 22
    (52 16.79 1) //5 23
    (82 21.3 1) //6 24
    (80 28.1 1) //7 25
    (135 21.3 1) //8 26
    (135 28.1 1) //9 27
    (135 30.1 1) //10 28
    (85.35 30.1 1) //11 29
    (135 80.1 1) //12 30 
    (85.35 80.1 1) //13 31 
    (52 67.4 1) //14 32 
    (0 47.61 1) //15 33 
    (-20.7 40 1) //16 34
    (78.06 80 1) //17 35
);

blocks
(
    // Block 0: Upstream inlet region
    hex (0 1 2 3 18 19 20 21) (90 150 1) 
    simpleGrading
    (1
       // (0.00001)
    (
        (0.2 0.4 10)
        (0.6 0.3 1)
        (0.2 0.3 0.1)
    )
    1) // (1 1000 1)
    
    // Block 1: First ramp region  
    hex (1 4 5 2 19 22 23 20) (250 150 1)
    simpleGrading 
    (1
       // (0.00001)
    (
        (0.2 0.4 10)
        (0.6 0.3 1)
        (0.2 0.3 0.1)
    )
    1) // (1 1000 1)
    
    // Block 2: Second ramp region
    hex (4 6 7 5 22 24 25 23) (140 150 1)
    simpleGrading 
    (1
       // (0.00001)
    (
        (0.2 0.4 10)
        (0.6 0.3 1)
        (0.2 0.3 0.1)
    )
    1) // (1 1000 1)
    
    // Block 3: Isolator/combustor region
    hex (6 8 9 7 24 26 27 25) (200 150 1) 
    simpleGrading 
    (1
       // (-0.0001)
    (
        (0.2 0.4 10)
        (0.6 0.3 1)
        (0.2 0.3 0.1)
    )
    1) //(1 1000 1)
    
    // Block 4: Upper inlet expansion
    hex (3 2 15 16 21 20 33 34) (90 100 1) 
    simpleGrading (1 -0.004 1)
    
    // Block 5: Upper first expansion
    hex (2 5 14 15 20 23 32 33) (250 100 1) 
    simpleGrading (1 -0.004 1)
    
    // Block 6: Upper second expansion
    hex (5 7 17 14 23 25 35 32) (140 100 1)
    simpleGrading (1 -0.004 1)
    
    // Block 7: Upper isolator region
    hex (7 11 13 17 25 29 31 35) (30 100 1) 
    simpleGrading (1 -0.004 1)
    
    // Block 8: Far upper region
    hex (11 10 12 13 29 28 30 31) (120 100 1) 
    simpleGrading (4 -0.004 1) 
); 



edges
(
);

boundary
(
   /* top
    {
        type wall;
        faces
        (
            ()
        );
    } */
    inlet
    {
        type patch;
        faces
        (
            (0 18 21 3)
            (3 21 34 16)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (8 26 27 9)
            (10 28 30 12)
        );
    }
    symmetrywall
    {
        type symmetry;
        faces
        (
            (0 18 19 1)
        );
    }

    wall
    {
        type wall;
        faces
        (
            (1 19 22 4)
            (4 22 24 6)
            (6 24 26 8)
            (7 25 27 9)
            (7 25 29 11)
            (11 29 28 10)
        );
    }

    farfield
    {
        type symmetry;
        faces
        (
            (16 34 33 15)
            (15 33 32 14)
            (14 32 35 17)
            (17 35 31 13)
            (13 31 30 12)
        );
    }
   
    frontAndBack
    {
        type empty;
        faces
        (
            (0 1 2 3)
            (1 4 5 2)
            (4 6 7 5)
            (6 8 9 7)
            (11 10 12 13)
            (7 11 13 17)
            (5 7 17 14)
            (2 5 14 15)
            (3 2 15 16)

            (18 19 20 21)
            (19 22 23 20)
            (22 24 25 23)
            (24 26 27 25)
            (29 28 30 31)
            (25 29 31 35)
            (23 25 35 32)
            (20 23 32 33)
            (21 20 33 34) 

            
        );
    } 
);




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