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

This commit is contained in:
mattijs
2012-02-17 17:24:37 +00:00
parent cff087b0b6
commit 2c973f081d
3 changed files with 48 additions and 6 deletions

View File

@ -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

View File

@ -91,6 +91,20 @@ actions
cellSet innerCylinderSmall;
}
}
// Dummy faceSet for creating initial patches
{
name dummyFaces;
type faceSet;
action new;
source labelToFace;
sourceInfo
{
value ();
}
}
);
// ************************************************************************* //

View File

@ -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;
}
);
// ************************************************************************* //