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

#include "include/hydraulicParameters"

scale   1;

vertices
(
    (0                          0            0)
    (0                          0.1          0)
    (0                          $weirHeight  0)
    (0                          1.5          0)
    ($weirStart					1.5          0)
    ($weirEnd					1.5          0)
    ($channelLength             1.5          0)
    ($channelLength             $weirHeight  0)
    ($channelLength             0            0)
    ($weirStart					0            0)
    ($weirStart					0.1          0)
    ($weirStart					$weirHeight  0)
    ($weirEnd					$weirHeight  0)
    ($weirEnd					0            0)
    
    (0                          0            0.1)
    (0                          0.1          0.1)
    (0                          $weirHeight  0.1)
    (0                          1.5          0.1)
    ($weirStart					1.5          0.1)
    ($weirEnd					1.5          0.1)
    ($channelLength             1.5          0.1)
    ($channelLength             $weirHeight  0.1)
    ($channelLength             0            0.1)
    ($weirStart					0            0.1)
    ($weirStart					0.1          0.1)
    ($weirStart					$weirHeight  0.1)
    ($weirEnd					$weirHeight  0.1)
    ($weirEnd					0            0.1)
);

blocks
(
    hex (0 9 10 1 14 23 24 15) (800 5 1) simpleGrading (1 1 1)
    hex (1 10 11 2 15 24 25 16) (800 15 1) simpleGrading (1 1 1)
    hex (2 11 4 3 16 25 18 17) (800 60 1) simpleGrading (1 1 1)
    hex (11 12 5 4 25 26 19 18) (5 60 1) simpleGrading (1 1 1)
    hex (12 7 6 5 26 21 20 19) (180 60 1) simpleGrading (1 1 1)
    hex (13 8 7 12 27 22 21 26) (180 20 1) simpleGrading (1 1 1) 
);

edges
(
);

patches
(
    patch inlet
    (
        (0 1 15 14)
    )
    patch outlet
    (
        (7 8 22 21)
        (6 7 21 20)
    )
    wall weir
    (
		(9 10 24 23)
		(10 11 25 24)
		(11 25 26 12)
		(12 26 27 13)
	)
    wall walls
    (
        (2 16 15 1)
        (3 17 16 2)
		(0 14 23 9)
		(13 27 22 8)
    )
    patch atmosphere
    (
        (3 17 18 4)
        (4 18 19 5)
        (5 19 20 6)
    )
    empty frontAndBack
    (
		(0 1 10 9)
		(1 2 11 10)
		(2 3 4 11)
		(11 4 5 12)
		(12 5 6 7)
		(13 12 7 8)
		
		(14 15 24 23)
		(15 16 25 24)
		(16 17 18 25)
		(25 18 19 26)
		(26 19 20 21)
		(27 26 21 22)
    )
);

mergePatchPairs
(
);


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