Skip to content
Snippets Groups Projects
Commit c43b1454 authored by Henry's avatar Henry
Browse files

patchInteractionDataList: Ignore empty patches

parent dc8f72f8
Branches
Tags
No related merge requests found
...@@ -25,6 +25,7 @@ License ...@@ -25,6 +25,7 @@ License
#include "patchInteractionDataList.H" #include "patchInteractionDataList.H"
#include "stringListOps.H" #include "stringListOps.H"
#include "emptyPolyPatch.H"
// * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
...@@ -74,7 +75,12 @@ Foam::patchInteractionDataList::patchInteractionDataList ...@@ -74,7 +75,12 @@ Foam::patchInteractionDataList::patchInteractionDataList
forAll(bMesh, patchI) forAll(bMesh, patchI)
{ {
const polyPatch& pp = bMesh[patchI]; const polyPatch& pp = bMesh[patchI];
if (!pp.coupled() && applyToPatch(pp.index()) < 0) if
(
!pp.coupled()
&& !isA<emptyPolyPatch>(pp)
&& applyToPatch(pp.index()) < 0
)
{ {
badPatches.append(pp.name()); badPatches.append(pp.name());
} }
...@@ -89,7 +95,7 @@ Foam::patchInteractionDataList::patchInteractionDataList ...@@ -89,7 +95,7 @@ Foam::patchInteractionDataList::patchInteractionDataList
"const polyMesh&, " "const polyMesh&, "
"const dictionary&" "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 << "interaction. Please specify data for patches:" << nl
<< badPatches << nl << exit(FatalError); << badPatches << nl << exit(FatalError);
} }
......
...@@ -115,6 +115,11 @@ subModels ...@@ -115,6 +115,11 @@ subModels
{ {
type rebound; type rebound;
} }
"inlet|outlet"
{
type escape;
}
); );
} }
......
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