TUT: multi-world tutorial setup with circular connectivity

This commit is contained in:
Mark Olesen
2021-07-28 09:54:19 +02:00
parent 2bb91e354b
commit 9d26b25c46
86 changed files with 1171 additions and 326 deletions

View File

@ -0,0 +1,87 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// TOP
NSLABS 4;
scale 0.1;
transform
{
origin (0 1 0);
rotation none;
}
xdim #eval{0.5 * $NSLABS};
ydim 0.2;
zdim 0.1;
nx #eval #{ round(5 * $NSLABS) #};
vertices
(
(0 0 0)
($xdim 0 0)
($xdim $ydim 0)
(0 $ydim 0)
(0 0 $zdim)
($xdim 0 $zdim)
($xdim $ydim $zdim)
(0 $ydim $zdim)
);
blocks
(
hex (0 1 2 3 4 5 6 7) ($nx 2 1) grading (1 1 1)
);
boundary
(
left
{
type wall;
faces ((0 0));
}
right
{
type wall;
faces ((0 1));
}
interface // inter-world connections
{
type wall;
faces ((0 2));
}
top
{
type wall;
faces ((0 3));
}
frontAndBack
{
type empty;
faces ((0 4) (0 5));
}
);
// ************************************************************************* //

View File

@ -0,0 +1 @@
../../common/system/controlDict

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
pointSync false;
_fromSet
{
patchInfo { type patch; }
constructFrom set;
}
// Patches to create
patches
(
{
name top_to_1;
set top_to_1;
$_fromSet;
}
{
name top_to_2;
set top_to_2;
$_fromSet;
}
{
name top_to_3;
set top_to_3;
$_fromSet;
}
{
name top_to_4;
set top_to_4;
$_fromSet;
}
);
// ************************************************************************* //

View File

@ -0,0 +1 @@
../../common/system/decomposeParDict

View File

@ -0,0 +1 @@
../../common/system/fvSchemes

View File

@ -0,0 +1 @@
../../common/system/fvSolution

View File

@ -0,0 +1,71 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2112 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
_newFromPatch
{
type faceSet;
action new;
source patchToFace;
patch interface;
}
_subsetBox
{
type faceSet;
action subset;
source boxToFace;
min (0 0 -1);
span (0.05 2 2);
}
actions
(
// slab 1 (offset 0)
{ name top_to_1; $_newFromPatch }
{
name top_to_1;
$_subsetBox;
min (0 0 -1);
}
// slab 2 (offset 1)
{ name top_to_2; $_newFromPatch }
{
name top_to_2;
$_subsetBox;
min (0.05 0 -1);
}
// slab 3 (offset 2)
{ name top_to_3; $_newFromPatch }
{
name top_to_3;
$_subsetBox;
min (0.10 0 -1);
}
// slab 4 (offset 3)
{ name top_to_4; $_newFromPatch }
{
name top_to_4;
$_subsetBox;
min (0.15 0 -1);
}
);
// ************************************************************************* //