diff --git a/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun.pre b/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun.pre index c4b41d9ada..917bec1fac 100755 --- a/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun.pre +++ b/tutorials/incompressible/pimpleDyMFoam/propeller/Allrun.pre @@ -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 diff --git a/tutorials/incompressible/pimpleDyMFoam/propeller/system/createAMIFaces.topoSetDict b/tutorials/incompressible/pimpleDyMFoam/propeller/system/createAMIFaces.topoSetDict index 84f75a9dc5..aafbfb6799 100644 --- a/tutorials/incompressible/pimpleDyMFoam/propeller/system/createAMIFaces.topoSetDict +++ b/tutorials/incompressible/pimpleDyMFoam/propeller/system/createAMIFaces.topoSetDict @@ -91,6 +91,20 @@ actions cellSet innerCylinderSmall; } } + + + // Dummy faceSet for creating initial patches + { + name dummyFaces; + type faceSet; + action new; + source labelToFace; + sourceInfo + { + value (); + } + } + ); // ************************************************************************* // diff --git a/tutorials/incompressible/pimpleDyMFoam/propeller/system/createPatchDict b/tutorials/incompressible/pimpleDyMFoam/propeller/system/createPatchDict index 1559be08dd..2400a43509 100644 --- a/tutorials/incompressible/pimpleDyMFoam/propeller/system/createPatchDict +++ b/tutorials/incompressible/pimpleDyMFoam/propeller/system/createPatchDict @@ -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; + } + ); // ************************************************************************* //