Skip to content
Snippets Groups Projects
Commit 31325d51 authored by mattijs's avatar mattijs
Browse files

ENH: damBreakPorousBaffle: convert to createBafflesDict

parent 38539cc2
No related branches found
No related tags found
No related merge requests found
...@@ -39,14 +39,6 @@ boundaryField ...@@ -39,14 +39,6 @@ boundaryField
inletValue uniform 0; inletValue uniform 0;
value uniform 0; value uniform 0;
} }
porous_half0
{
type cyclic;
}
porous_half1
{
type cyclic;
}
defaultFaces defaultFaces
{ {
type empty; type empty;
......
...@@ -10,15 +10,7 @@ application=`getApplication` ...@@ -10,15 +10,7 @@ application=`getApplication`
runApplication blockMesh runApplication blockMesh
runApplication setFields runApplication setFields
unset FOAM_SIGFPE runApplication createBaffles -overwrite
unset FOAM_SETNAN
# Create faceZones for porous baffles
runApplication topoSet
runApplication createBaffles cyclicZoneFaces '(porous_half0 porous_half1)' -overwrite
runApplication changeDictionary
runApplication $application runApplication $application
......
...@@ -99,20 +99,6 @@ boundary ...@@ -99,20 +99,6 @@ boundary
(10 22 23 11) (10 22 23 11)
); );
} }
porous_half0
{
type cyclic;
faces ();
neighbourPatch porous_half1;
}
porous_half1
{
type cyclic;
faces ();
neighbourPatch porous_half0;
}
); );
mergePatchPairs mergePatchPairs
......
...@@ -55,6 +55,8 @@ maxDeltaT 1; ...@@ -55,6 +55,8 @@ maxDeltaT 1;
libs libs
( (
"libturbulenceDerivedFvPatchFields.so" "libturbulenceDerivedFvPatchFields.so"
"libincompressibleTurbulenceModel.so"
"libincompressibleRASModels.so"
); );
// ************************************************************************* // // ************************************************************************* //
...@@ -9,60 +9,70 @@ FoamFile ...@@ -9,60 +9,70 @@ FoamFile
{ {
version 2.0; version 2.0;
format ascii; format ascii;
class polyBoundaryMesh; class dictionary;
location "constant/polyMesh"; object createBafflesDict;
object boundary;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7 // Whether to convert internal faces only (so leave boundary faces intact).
( // This is only relevant if your face selection type can pick up boundary
leftWall // faces.
{ internalFacesOnly true;
type wall;
nFaces 50;
startFace 4419; // Baffles to create.
} baffles
rightWall {
{ cyclicFaces
type wall;
nFaces 50;
startFace 4469;
}
lowerWall
{
type wall;
nFaces 62;
startFace 4519;
}
atmosphere
{
type patch;
nFaces 46;
startFace 4581;
}
porous_half0
{
type cyclic;
nFaces 13;
startFace 4627;
matchTolerance 0.0001;
neighbourPatch porous_half1;
}
porous_half1
{
type cyclic;
nFaces 13;
startFace 4640;
matchTolerance 0.0001;
neighbourPatch porous_half0;
}
defaultFaces
{ {
type empty; //- Select faces and orientation through a searchableSurface
nFaces 4536; type searchableSurface;
startFace 4653; surface searchablePlate;
origin (0.3042 0.0493 -100);
span (0 0.1584 200);
patches
{
master
{
//- Master side patch
name porous_half0;
type cyclic;
neighbourPatch porous_half1;
//- Optional override of added patchfields. If not specified
// any added patchfields are of type calculated.
patchFields
{
p_rgh
{
type porousBafflePressure;
patchType cyclic;
D 700;
I 500;
length 1.05;
jump uniform 0;
value uniform 0;
}
}
}
slave
{
//- Slave side patch
name porous_half1;
type cyclic;
neighbourPatch porous_half0;
patchFields
{
${...master.patchFields}
}
}
}
} }
) }
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment