FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; }
 
scale 0.001;

a €r;
b -€r;

h1 €1;
h2 €2;
h3 €3;
h4 €4;
h5 €5;
h6 €6;
h7 €7;

nd €d;		// cells on diameter
nEu €Eu;	// cells on electrolyte
nEo €Eo;        // cells on electrode
nK €K;		// cells on salt
nS €S;
nA €A;
 
vertices
(
  ($a $a $h1)     // vertex 0
  ($b $a $h1)     // vertex 1
  ($b $b $h1)     // vertex 2
  ($a $b $h1)     // vertex 3

  ($a $a $h2)     // vertex 0
  ($b $a $h2)     // vertex 1
  ($b $b $h2)     // vertex 2
  ($a $b $h2)     // vertex 3

  ($a $a $h3) 	// vertex 4
  ($b $a $h3) 	// vertex 5
  ($b $b $h3) 	// vertex 6
  ($a $b $h3) 	// vertex 7

  ($a $a $h4)   // vertex 4
  ($b $a $h4)   // vertex 5
  ($b $b $h4)   // vertex 6
  ($a $b $h4)   // vertex 7

  ($a $a $h5)   // vertex 4
  ($b $a $h5)   // vertex 5
  ($b $b $h5)   // vertex 6
  ($a $b $h5)   // vertex 7

  ($a $a $h6)   // vertex 4
  ($b $a $h6)   // vertex 5
  ($b $b $h6)   // vertex 6
  ($a $b $h6)   // vertex 7

  ($a $a $h7)   // vertex 4
  ($b $a $h7)   // vertex 5
  ($b $b $h7)   // vertex 6
  ($a $b $h7)   // vertex 7
);

blocks
(
  hex (0 1 2 3 4 5 6 7)          ($nd $nd $nEu) simpleGrading (1 1 1) //
  hex (4 5 6 7 8 9 10 11)        ($nd $nd $nK)  simpleGrading (1 1 0.5) //
  hex (8 9 10 11 12 13 14 15 )   ($nd $nd $nS)  simpleGrading (1 1 1) //
  hex (12 13 14 15 16 17 18 19)  ($nd $nd $nA)  simpleGrading (1 1 1) //
  hex (16 17 18 19 20 21 22 23)  ($nd $nd $nEo) simpleGrading (1 1 1) //
  hex (20 21 22 23 24 25 26 27)  ($nd $nd $nEo) simpleGrading (1 1 1) //
);
 
edges
(
);
 
boundary
(
  topcenter
  {
    type wall;
    faces
    (
      (24 25 26 27)
    );
  }
);
 
mergePatchPairs
(
);
