FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } dz 0.01; r_inner 0.077; // inner cup radius (without walls) dx1 #calc "$r_inner/2"; y 0.105; // top of cup height 0.15; // height of tunnel L 0.08; // half length of tunnel vertices ( (-$dx1 $y 0) ($dx1 $y 0) ($dx1 $height 0) (-$dx1 $height 0) (-$dx1 $y $dz) ($dx1 $y $dz) ($dx1 $height $dz) (-$dx1 $height $dz) ($L $y 0) ($L $height 0) ($L $y $dz) ($L $height $dz) (-$L $y 0) (-$L $height 0) (-$L $height $dz) (-$L $y $dz) ); blocks ( hex (12 0 3 13 15 4 7 14) (5 5 1) simpleGrading (1 1 1) hex (0 1 2 3 4 5 6 7) (5 5 1) simpleGrading (1 1 1) hex (1 8 9 2 5 10 11 6) (5 5 1) simpleGrading (1 1 1) ); boundary ( inlet { type wall; faces ( (13 12 15 14) ); } outlet { type wall; faces ( (8 9 11 10) ); } top { type wall; faces ( (7 6 2 3) (9 2 6 11) (13 3 7 14) ); } slip-bottom { type wall; faces ( (15 12 0 4) ); } bottom { type wall; faces ( (1 8 10 5) ); } interface { type wall; faces ( (4 0 1 5) ); } );