Skip to content
Snippets Groups Projects
Commit 2c973f08 authored by mattijs's avatar mattijs
Browse files

ENH: propeller: simplify setup (remove changeDictionary to add patches)

parent cff087b0
Branches
Tags
No related merge requests found
......@@ -29,6 +29,8 @@ for s in $surfaces; do
done
runApplication snappyHexMesh -overwrite
# force removal of fields generated by snappy
\rm -rf 0
# - generate face/cell sets and zones
......@@ -49,18 +51,13 @@ runApplication topoSet -dict system/createAMIFaces.topoSetDict
mv log.topoSet log.createAMIFaces.topoSet
# - create the inlet/outlet patches
# - create the inlet/outlet patches and AMI patches
runApplication createPatch -overwrite
# - create the AMI faces by creating baffles, and then splitting the mesh
runApplication changeDictionary
# force removal of fields generated by snappy
\rm -rf 0
createBaffles -internalFacesOnly -overwrite innerCylinderSmall '(AMI1 AMI2)' \
> log.createBaffles 2>&1
......
......@@ -91,6 +91,20 @@ actions
cellSet innerCylinderSmall;
}
}
// Dummy faceSet for creating initial patches
{
name dummyFaces;
type faceSet;
action new;
source labelToFace;
sourceInfo
{
value ();
}
}
);
// ************************************************************************* //
......@@ -46,6 +46,37 @@ patches
set outletFaces;
}
// Construct empty patches
{
name AMI1;
patchInfo
{
type cyclicAMI;
neighbourPatch AMI2;
transform noOrdering;
surface
{}
}
constructFrom set;
set dummyFaces;
}
{
name AMI2;
patchInfo
{
type cyclicAMI;
neighbourPatch AMI1;
transform noOrdering;
surface
{}
}
constructFrom set;
set dummyFaces;
}
);
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment