From d18d4aa08ff65e1d26617bdecf297f9128d78a3f Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 29 Apr 2015 23:06:09 +0100 Subject: [PATCH] patchInteractionDataList: Ignore empty patches --- .../LocalInteraction/patchInteractionDataList.C | 10 ++++++++-- .../filter/constant/reactingCloud1Properties | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C b/src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C index 9be950daa9..3564eacf93 100644 --- a/src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C +++ b/src/lagrangian/intermediate/submodels/Kinematic/PatchInteractionModel/LocalInteraction/patchInteractionDataList.C @@ -25,6 +25,7 @@ License #include "patchInteractionDataList.H" #include "stringListOps.H" +#include "emptyPolyPatch.H" // * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * // @@ -74,7 +75,12 @@ Foam::patchInteractionDataList::patchInteractionDataList forAll(bMesh, patchI) { const polyPatch& pp = bMesh[patchI]; - if (!pp.coupled() && applyToPatch(pp.index()) < 0) + if + ( + !pp.coupled() + && !isA(pp) + && applyToPatch(pp.index()) < 0 + ) { badPatches.append(pp.name()); } @@ -89,7 +95,7 @@ Foam::patchInteractionDataList::patchInteractionDataList "const polyMesh&, " "const dictionary&" ")" - ) << "All patches must be specified when employing local patch " + ) << "All patches must be specified when employing local patch " << "interaction. Please specify data for patches:" << nl << badPatches << nl << exit(FatalError); } diff --git a/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties index b6b2a2769e..dba1fea2c1 100644 --- a/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties +++ b/tutorials/lagrangian/reactingParcelFoam/filter/constant/reactingCloud1Properties @@ -115,6 +115,11 @@ subModels { type rebound; } + + "inlet|outlet" + { + type escape; + } ); }