mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: propeller: simplify setup (remove changeDictionary to add patches)
This commit is contained in:
@ -29,6 +29,8 @@ for s in $surfaces; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
runApplication snappyHexMesh -overwrite
|
runApplication snappyHexMesh -overwrite
|
||||||
|
# force removal of fields generated by snappy
|
||||||
|
\rm -rf 0
|
||||||
|
|
||||||
|
|
||||||
# - generate face/cell sets and zones
|
# - generate face/cell sets and zones
|
||||||
@ -49,18 +51,13 @@ runApplication topoSet -dict system/createAMIFaces.topoSetDict
|
|||||||
mv log.topoSet log.createAMIFaces.topoSet
|
mv log.topoSet log.createAMIFaces.topoSet
|
||||||
|
|
||||||
|
|
||||||
# - create the inlet/outlet patches
|
# - create the inlet/outlet patches and AMI patches
|
||||||
|
|
||||||
runApplication createPatch -overwrite
|
runApplication createPatch -overwrite
|
||||||
|
|
||||||
|
|
||||||
# - create the AMI faces by creating baffles, and then splitting the mesh
|
# - 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)' \
|
createBaffles -internalFacesOnly -overwrite innerCylinderSmall '(AMI1 AMI2)' \
|
||||||
> log.createBaffles 2>&1
|
> log.createBaffles 2>&1
|
||||||
|
|
||||||
|
|||||||
@ -91,6 +91,20 @@ actions
|
|||||||
cellSet innerCylinderSmall;
|
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;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user