patchInteractionDataList: Ignore empty patches
This commit is contained in:
parent
62f0ad175f
commit
439a04b3a5
2 changed files with 14 additions and 3 deletions
|
|
@ -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<emptyPolyPatch>(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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 2.3.0 |
|
||||
| \\ / O peration | Version: 2.3.x |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
|
@ -115,6 +115,11 @@ subModels
|
|||
{
|
||||
type rebound;
|
||||
}
|
||||
|
||||
"inlet|outlet"
|
||||
{
|
||||
type escape;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue