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

a €r;
b -€r;
h2 €2;
h3 €3;
h4 €4;
h5 €5;

nd €d;		// cells on diameter
nEu €Eu;	// lower electrode
nEo €Eo;        // upper electrode
nS €S;		// cells on salt
 
vertices
(
  ($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
);

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 $nS) simpleGrading (1 1 1) //
  hex (8 9 10 11 12 13 14 15 )  ($nd $nd $nEo) simpleGrading (1 1 1) //
);
 
edges
(
);
 
boundary
(
  bottomcenter
  {
    type wall;
    faces
    (
      (0 1 2 3)
    );
  }
  topcenter
  {
    type wall;
    faces
    (
      (12 13 14 15)
    );
  }
);
 
mergePatchPairs
(
);
