2010-10-18 13:14:38 +00:00
|
|
|
/*--------------------------------*- C++ -*----------------------------------*\
|
|
|
|
| ========= | |
|
2013-12-11 16:09:41 +00:00
|
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
2018-05-29 07:35:20 +00:00
|
|
|
| \\ / O peration | Version: 4.1 |
|
2015-05-17 13:55:59 +00:00
|
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
2010-10-18 13:14:38 +00:00
|
|
|
| \\/ M anipulation | |
|
|
|
|
\*---------------------------------------------------------------------------*/
|
|
|
|
FoamFile
|
|
|
|
{
|
|
|
|
version 2.0;
|
2013-11-01 15:17:04 +00:00
|
|
|
format ;
|
2010-10-18 13:14:38 +00:00
|
|
|
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
|
|
|
|
(
|
2014-06-01 11:15:18 +00:00
|
|
|
(-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
|
2010-10-18 13:14:38 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
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)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2016-06-21 12:50:08 +00:00
|
|
|
|
2010-10-18 13:14:38 +00:00
|
|
|
// ************************************************************************* //
|