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

convertToMeters 0.1;

vertices
(

    (0.5 0 -0.5)  //0
    (1 0 -0.5) //1
    (4 0 -0.5)  //2
    (4 0.707107 -0.5) //3
    (0.707107 0.707107 -0.5) //4
    (0.353553 0.353553 -0.5) //5
    (4 2 -0.5) //6
    (0.707107 2 -0.5)  //7
    (0 2 -0.5) //8
    (0 1 -0.5) //9
    (0 0.5 -0.5) //10
    (-0.5 0 -0.5) //11
    (-1 0 -0.5) //12
    (-2 0 -0.5) //13
    (-2 0.707107 -0.5) //14
    (-0.707107 0.707107 -0.5) //15
    (-0.353553 0.353553 -0.5) //16
    (-2 2 -0.5) //17
    (-0.707107 2 -0.5) //18

    (0.5 0 0.5)  //19
    (1 0 0.5) //20
    (4 0 0.5)  //21
    (4 0.707107 0.5) //22
    (0.707107 0.707107 0.5) //23
    (0.353553 0.353553 0.5) //24
    (4 2 0.5) //25
    (0.707107 2 0.5)  //26
    (0 2 0.5) //27
    (0 1 0.5) //28
    (0 0.5 0.5) //29
    (-0.5 0 0.5) //30
    (-1 0 0.5) //31
    (-2 0 0.5) //32
    (-2 0.707107 0.5) //33
    (-0.707107 0.707107 0.5) //34
    (-0.353553 0.353553 0.5) //35
    (-2 2 0.5) //36
    (-0.707107 2 0.5) //37




    (4 -0.707107 -0.5) //38
    (0.707107 -0.707107 -0.5) //39
    (0.353553 -0.353553 -0.5) //40
    (4 -2 -0.5) //41
    (0.707107 -2 -0.5)  //42
    (0 -2 -0.5) //43
    (0 -1 -0.5) //44
    (0 -0.5 -0.5) //45
    (-2 -0.707107 -0.5) //46
    (-0.707107 -0.707107 -0.5) //47
    (-0.353553 -0.353553 -0.5) //48
    (-2 -2 -0.5) //49
    (-0.707107 -2 -0.5) //50

    (4 -0.707107 0.5) //51
    (0.707107 -0.707107 0.5) //52
    (0.353553 -0.353553 0.5) //53
    (4 -2 0.5) //54
    (0.707107 -2 0.5)  //55
    (0 -2 0.5) //56
    (0 -1 0.5) //57
    (0 -0.5 0.5) //58
    (-2 -0.707107 0.5) //59
    (-0.707107 -0.707107 0.5) //60
    (-0.353553 -0.353553 0.5) //61
    (-2 -2 0.5) //62
    (-0.707107 -2 0.5) //63



    (0 0 -0.5) //64
    (0.15 0 -0.5) //65
    (0.15 0.15 -0.5) //66
    (0 0.15 -0.5) //67
    (-0.15 0.15 -0.5) //68
    (-0.15 0 -0.5) //69

    (0 0 0.5) //70
    (0.15 0 0.5) //71
    (0.15 0.15 0.5) //72
    (0 0.15 0.5) //73
    (-0.15 0.15 0.5) //74
    (-0.15 0 0.5) //75

    (0.15 -0.15 -0.5) //76
    (0 -0.15 -0.5) //77
    (-0.15 -0.15 -0.5) //78

    (0.15 -0.15 0.5) //79
    (0 -0.15 0.5) //80
    (-0.15 -0.15 0.5) //81


);


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

    hex (44 39 40 45 57 52 53 58) flow (10 10 1) simpleGrading (1 1 1)
    hex (40 39 1 0 53 52 20 19) flow (10 10 1) simpleGrading (1 1 1)
    hex (39 38 2 1 52 51 21 20) flow (40 10 1) simpleGrading (1 1 1)
    hex (42 41 38 39 55 54 51 52) flow (40 20 1) simpleGrading (1 1 1)
    hex (43 42 39 44 56 55 52 57) flow (10 20 1) simpleGrading (1 1 1)
    hex (47 44 45 48 60 57 58 61) flow (10 10 1) simpleGrading (1 1 1)
    hex (47 48 11 12 60 61 30 31) flow (10 10 1) simpleGrading (1 1 1)
    hex (46 47 12 13 59 60 31 32) flow (20 10 1) simpleGrading (1 1 1)
    hex (49 50 47 46 62 63 60 59) flow (20 20 1) simpleGrading (1 1 1)
    hex (50 43 44 47 63 56 57 60) flow (10 20 1) simpleGrading (1 1 1)


    hex (69 64 67 68 75 70 73 74) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (64 65 66 67 70 71 72 73) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (78 77 64 69 81 80 70 75) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (77 76 65 64 80 79 71 70) porousMat (10 10 1) simpleGrading (1 1 1)

    hex (11 69 68 16 30 75 74 35) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (16 68 67 10 35 74 73 29) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (67 66 5 10 73 72 24 29) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (65 0 5 66 71 19 24 72) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (76 40 0 65 79 53 19 71) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (45 40 76 77 58 53 79 80) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (48 45 77 78 61 58 80 81) porousMat (10 10 1) simpleGrading (1 1 1)
    hex (48 78 69 11 61 81 75 30) porousMat (10 10 1) simpleGrading (1 1 1)

);

edges
(
    arc 0 5 (0.469846 0.17101 -0.5)
    arc 5 10 (0.17101 0.469846 -0.5)
    arc 1 4 (0.939693 0.34202 -0.5)
    arc 4 9 (0.34202 0.939693 -0.5)
    arc 19 24 (0.469846 0.17101 0.5)
    arc 24 29 (0.17101 0.469846 0.5)
    arc 20 23 (0.939693 0.34202 0.5)
    arc 23 28 (0.34202 0.939693 0.5)
    arc 11 16 (-0.469846 0.17101 -0.5)
    arc 16 10 (-0.17101 0.469846 -0.5)
    arc 12 15 (-0.939693 0.34202 -0.5)
    arc 15 9 (-0.34202 0.939693 -0.5)
    arc 30 35 (-0.469846 0.17101 0.5)
    arc 35 29 (-0.17101 0.469846 0.5)
    arc 31 34 (-0.939693 0.34202 0.5)
    arc 34 28 (-0.34202 0.939693 0.5)

    arc 0 40 (0.469846 -0.17101 -0.5)
    arc 40 45 (0.17101 -0.469846 -0.5)
    arc 1 39 (0.939693 -0.34202 -0.5)
    arc 39 44 (0.34202 -0.939693 -0.5)
    arc 19 53 (0.469846 -0.17101 0.5)
    arc 53 58 (0.17101 -0.469846 0.5)
    arc 20 52 (0.939693 -0.34202 0.5)
    arc 52 57 (0.34202 -0.939693 0.5)
    arc 11 48 (-0.469846 -0.17101 -0.5)
    arc 48 45 (-0.17101 -0.469846 -0.5)
    arc 12 47 (-0.939693 -0.34202 -0.5)
    arc 47 44 (-0.34202 -0.939693 -0.5)
    arc 30 61 (-0.469846 -0.17101 0.5)
    arc 61 58 (-0.17101 -0.469846 0.5)
    arc 31 60 (-0.939693 -0.34202 0.5)
    arc 60 57 (-0.34202 -0.939693 0.5)
);

boundary
(
down {
  type symmetryPlane;
  faces
  (
      (49 50 63 62)
      (50 43 56 63)
      (43 42 55 56)
      (42 41 54 55)
  );
}
right {
  type patch;
  faces
  (
      (2 3 22 21)
      (3 6 25 22)
      (2 38 51 21)
      (38 41 54 51)

  );
}
up {
  type symmetryPlane;
  faces
  (
      (7 8 27 26)
      (6 7 26 25)
      (8 18 37 27)
      (18 17 36 37)
  );
}
left {
  type patch;
  faces
  (
      (14 13 32 33)
      (17 14 33 36)
      (13 46 59 32)
      (46 49 59 62)
  );
}
cylinder {
  type wall;
  faces
  (
      //(10 5 24 29)
      //(5 0 19 24)
      //(16 10 29 35)
      //(11 16 35 30)

      //(45 40 58 53)
      //(40 0 19 53)
      //(48 45 58 61)
      //(11 48 61 30)
  );
}
);

mergePatchPairs
(
);

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