/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 4.1 | | \\ / A nd | Web: http://www.foam-extend.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // General m4 macros // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // User-defined parameters convertToMeters 1; // Length of tank (x-direction) // Breadth of tank (y-direction) // Depth of tank (z-direction) // Depth to the top (height) of lower chamfer // Height of upper chamfer // Angle of lower chamfer to the horizontal // Angle of upper chamfer to the horizontal // Centre of gravity in y-direction // Centre of gravity in z-direction // Number of cells in the length (1 for 2D) // Number of cells in the breadth // Number of cells in the height of the lower champfer // Number of cells in the height between the chamfers // Number of cells in the height of the upper champfer // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Derived parameters // Breadth to the top (height) of lower chamfer // Breadth of upper chamfer // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Parametric description vertices ( (-0.5 -15 -10.0) // Vertex bllcb = 0 (-0.5 -20 -5) // Vertex bllc = 1 (-0.5 -20 10) // Vertex bluc = 2 (-0.5 -10 20) // Vertex bluct = 3 (-0.5 15 -10.0) // Vertex brlcb = 4 (-0.5 20 -5) // Vertex brlc = 5 (-0.5 20 10) // Vertex bruc = 6 (-0.5 10 20) // Vertex bruct = 7 (0.5 -15 -10.0) // Vertex fllcb = 8 (0.5 -20 -5) // Vertex fllc = 9 (0.5 -20 10) // Vertex fluc = 10 (0.5 -10 20) // Vertex fluct = 11 (0.5 15 -10.0) // Vertex frlcb = 12 (0.5 20 -5) // Vertex frlc = 13 (0.5 20 10) // Vertex fruc = 14 (0.5 10 20) // Vertex fruct = 15 ); blocks ( // block0 hex (0 4 5 1 8 12 13 9) (40 6 1) simpleGrading (1 1 1) // block1 hex (1 5 6 2 9 13 14 10) (40 16 1) simpleGrading (1 1 1) // block2 hex (2 6 7 3 10 14 15 11) (40 12 1) simpleGrading (1 1 1) ); patches ( patch walls ( (0 4 12 8) (4 5 13 12) (5 6 14 13) (6 7 15 14) (7 3 11 15) (3 2 10 11) (2 1 9 10) (1 0 8 9) ) empty front ( (8 12 13 9) (9 13 14 10) (10 14 15 11) ) empty back ( (0 1 5 4) (1 2 6 5) (2 3 7 6) ) ); // ************************************************************************* //