mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
move blockMeshDict to system folder
and remove m4 file
This commit is contained in:
@ -1,153 +0,0 @@
|
||||
// blockMesh : Block mesh description file
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 2.3.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant/polyMesh";
|
||||
object blockMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
changecom(//)changequote([,])
|
||||
define(calc, [esyscmd(perl -e 'printf ($1)')])
|
||||
define(VCOUNT, 0)
|
||||
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
||||
|
||||
|
||||
meshGenApp blockMesh;
|
||||
convertToMeters 1.0;
|
||||
|
||||
define(D, 0.068) //68 mm column diameter
|
||||
define(L, 0.150) //150 mm length
|
||||
define(PI, 3.14159265)
|
||||
|
||||
define(R, calc(D/2))
|
||||
define(CW, calc(D/4)) //Width of middle square section
|
||||
|
||||
define(CX, calc(R*cos((PI/180)*45)))
|
||||
define(CZ, calc(R*sin((PI/180)*45)))
|
||||
|
||||
define(NPS, 7) //how many cells in the square section
|
||||
define(NPD, 3) //how many cells from square section to perimeter
|
||||
define(NPY, 24) // how many cells from top to bottom
|
||||
|
||||
vertices
|
||||
(
|
||||
( CW 0.0 CW) vlabel(fiveoclocksqb)
|
||||
(-CW 0.0 CW) vlabel(sevenoclocksqb)
|
||||
(-CW 0.0 -CW) vlabel(elevenoclocksqb)
|
||||
( CW 0.0 -CW) vlabel(oneoclocksqb)
|
||||
|
||||
( CX 0.0 CZ) vlabel(fiveoclockcb)
|
||||
(-CX 0.0 CZ) vlabel(sevenoclockcb)
|
||||
(-CX 0.0 -CZ) vlabel(elevenoclockcb)
|
||||
( CX 0.0 -CZ) vlabel(oneoclockcb)
|
||||
|
||||
( CW L CW) vlabel(fiveoclocksqt)
|
||||
(-CW L CW) vlabel(sevenoclocksqt)
|
||||
(-CW L -CW) vlabel(elevenoclocksqt)
|
||||
( CW L -CW) vlabel(oneoclocksqt)
|
||||
|
||||
( CX L CZ) vlabel(fiveoclockct)
|
||||
(-CX L CZ) vlabel(sevenoclockct)
|
||||
(-CX L -CZ) vlabel(elevenoclockct)
|
||||
( CX L -CZ) vlabel(oneoclockct)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
//square block
|
||||
hex (
|
||||
sevenoclocksqb fiveoclocksqb oneoclocksqb elevenoclocksqb
|
||||
sevenoclocksqt fiveoclocksqt oneoclocksqt elevenoclocksqt
|
||||
)
|
||||
(NPS NPS NPY)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//slice1
|
||||
hex (
|
||||
sevenoclockcb fiveoclockcb fiveoclocksqb sevenoclocksqb
|
||||
sevenoclockct fiveoclockct fiveoclocksqt sevenoclocksqt
|
||||
)
|
||||
(NPS NPD NPY)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//slice2
|
||||
hex (
|
||||
sevenoclocksqb elevenoclocksqb elevenoclockcb sevenoclockcb
|
||||
sevenoclocksqt elevenoclocksqt elevenoclockct sevenoclockct
|
||||
)
|
||||
(NPS NPD NPY)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//slice3
|
||||
hex (
|
||||
elevenoclocksqb oneoclocksqb oneoclockcb elevenoclockcb
|
||||
elevenoclocksqt oneoclocksqt oneoclockct elevenoclockct
|
||||
)
|
||||
(NPS NPD NPY)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//slice4
|
||||
hex (
|
||||
oneoclocksqb fiveoclocksqb fiveoclockcb oneoclockcb
|
||||
oneoclocksqt fiveoclocksqt fiveoclockct oneoclockct
|
||||
)
|
||||
(NPS NPD NPY)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
);
|
||||
|
||||
|
||||
//create the quarter circles
|
||||
edges
|
||||
(
|
||||
arc fiveoclockcb sevenoclockcb (0.0 0.0 R)
|
||||
arc sevenoclockcb elevenoclockcb (-R 0.0 0.0)
|
||||
arc elevenoclockcb oneoclockcb (0.0 0.0 -R)
|
||||
arc oneoclockcb fiveoclockcb (R 0.0 0.0)
|
||||
|
||||
arc fiveoclockct sevenoclockct (0.0 L R)
|
||||
arc sevenoclockct elevenoclockct (-R L 0.0)
|
||||
arc elevenoclockct oneoclockct (0.0 L -R)
|
||||
arc oneoclockct fiveoclockct (R L 0.0)
|
||||
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
patch inlet
|
||||
(
|
||||
(fiveoclocksqb oneoclocksqb elevenoclocksqb sevenoclocksqb)
|
||||
(fiveoclocksqb fiveoclockcb oneoclockcb oneoclocksqb)
|
||||
(fiveoclockcb fiveoclocksqb sevenoclocksqb sevenoclockcb)
|
||||
(sevenoclocksqb elevenoclocksqb elevenoclockcb sevenoclockcb)
|
||||
(oneoclocksqb oneoclockcb elevenoclockcb elevenoclocksqb)
|
||||
)
|
||||
|
||||
patch outlet
|
||||
(
|
||||
(fiveoclocksqt oneoclocksqt elevenoclocksqt sevenoclocksqt)
|
||||
(fiveoclocksqt fiveoclockct oneoclockct oneoclocksqt)
|
||||
(fiveoclockct fiveoclocksqt sevenoclocksqt sevenoclockct)
|
||||
(sevenoclocksqt elevenoclocksqt elevenoclockct sevenoclockct)
|
||||
(oneoclocksqt oneoclockct elevenoclockct elevenoclocksqt)
|
||||
)
|
||||
|
||||
wall side-walls
|
||||
(
|
||||
(sevenoclockcb fiveoclockcb fiveoclockct sevenoclockct)
|
||||
(sevenoclockcb sevenoclockct elevenoclockct elevenoclockcb)
|
||||
(elevenoclockcb elevenoclockct oneoclockct oneoclockcb)
|
||||
(oneoclockcb oneoclockct fiveoclockct fiveoclockcb)
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
// blockMesh : Block mesh description file
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 2.3.0 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: 6
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
@ -16,21 +15,20 @@ FoamFile
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
meshGenApp blockMesh;
|
||||
convertToMeters 1.0;
|
||||
meshGenApp blockMesh;
|
||||
convertToMeters 1.0;
|
||||
|
||||
//68 mm column diameter
|
||||
//150 mm length
|
||||
// 68 mm column diameter
|
||||
// 150 mm column length
|
||||
|
||||
// Width of middle square section 17 mm
|
||||
// 7 cells in the square section
|
||||
// 3 cells from square section to perimeter
|
||||
// 24 cells from top to bottom
|
||||
|
||||
//Width of middle square section
|
||||
|
||||
//how many cells in the square section
|
||||
//how many cells from square section to perimeter
|
||||
// how many cells from top to bottom
|
||||
|
||||
vertices
|
||||
(
|
||||
vertices
|
||||
(
|
||||
// bottom
|
||||
( 0.017 0.0 0.017) // Vertex fiveoclocksqb = 0
|
||||
(-0.017 0.0 0.017) // Vertex sevenoclocksqb = 1
|
||||
(-0.017 0.0 -0.017) // Vertex elevenoclocksqb = 2
|
||||
@ -41,6 +39,7 @@ FoamFile
|
||||
(-0.0240416305819187 0.0 -0.0240416305387665) // Vertex elevenoclockcb = 6
|
||||
( 0.0240416305819187 0.0 -0.0240416305387665) // Vertex oneoclockcb = 7
|
||||
|
||||
// top
|
||||
( 0.017 0.150 0.017) // Vertex fiveoclocksqt = 8
|
||||
(-0.017 0.150 0.017) // Vertex sevenoclocksqt = 9
|
||||
(-0.017 0.150 -0.017) // Vertex elevenoclocksqt = 10
|
||||
@ -50,56 +49,30 @@ FoamFile
|
||||
(-0.0240416305819187 0.150 0.0240416305387665) // Vertex sevenoclockct = 13
|
||||
(-0.0240416305819187 0.150 -0.0240416305387665) // Vertex elevenoclockct = 14
|
||||
( 0.0240416305819187 0.150 -0.0240416305387665) // Vertex oneoclockct = 15
|
||||
);
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
//square block
|
||||
hex (
|
||||
1 0 3 2
|
||||
9 8 11 10
|
||||
)
|
||||
(7 7 24)
|
||||
simpleGrading (1 1 1)
|
||||
blocks
|
||||
(
|
||||
// square block
|
||||
hex ( 1 0 3 2 9 8 11 10) (7 7 24) simpleGrading (1 1 1)
|
||||
|
||||
//slice1
|
||||
hex (
|
||||
5 4 0 1
|
||||
13 12 8 9
|
||||
)
|
||||
(7 3 24)
|
||||
simpleGrading (1 1 1)
|
||||
// slice1
|
||||
hex ( 5 4 0 1 13 12 8 9) (7 3 24) simpleGrading (1 1 1)
|
||||
|
||||
//slice2
|
||||
hex (
|
||||
1 2 6 5
|
||||
9 10 14 13
|
||||
)
|
||||
(7 3 24)
|
||||
simpleGrading (1 1 1)
|
||||
hex ( 1 2 6 5 9 10 14 13) (7 3 24) simpleGrading (1 1 1)
|
||||
|
||||
//slice3
|
||||
hex (
|
||||
2 3 7 6
|
||||
10 11 15 14
|
||||
)
|
||||
(7 3 24)
|
||||
simpleGrading (1 1 1)
|
||||
// slice3
|
||||
hex ( 2 3 7 6 10 11 15 14) (7 3 24) simpleGrading (1 1 1)
|
||||
|
||||
//slice4
|
||||
hex (
|
||||
3 0 4 7
|
||||
11 8 12 15
|
||||
)
|
||||
(7 3 24)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
);
|
||||
hex ( 3 0 4 7 11 8 12 15) (7 3 24) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
|
||||
//create the quarter circles
|
||||
edges
|
||||
(
|
||||
// create the quarter circles
|
||||
edges
|
||||
(
|
||||
arc 4 5 (0.0 0.0 0.034)
|
||||
arc 5 6 (-0.034 0.0 0.0)
|
||||
arc 6 7 (0.0 0.0 -0.034)
|
||||
@ -109,11 +82,10 @@ FoamFile
|
||||
arc 13 14 (-0.034 0.150 0.0)
|
||||
arc 14 15 (0.0 0.150 -0.034)
|
||||
arc 15 12 (0.034 0.150 0.0)
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
patches
|
||||
(
|
||||
patches
|
||||
(
|
||||
patch inlet
|
||||
(
|
||||
(0 3 2 1)
|
||||
@ -139,6 +111,5 @@ FoamFile
|
||||
(6 14 15 7)
|
||||
(7 15 12 4)
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user