mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: momentum: boundary field mismatch on "empty" patches (fixes #2121)
This commit is contained in:
committed by
Mark Olesen
parent
64deb4e4b8
commit
70c697fdcb
@ -30,6 +30,7 @@ License
|
|||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "cellSet.H"
|
#include "cellSet.H"
|
||||||
#include "cylindricalRotation.H"
|
#include "cylindricalRotation.H"
|
||||||
|
#include "emptyPolyPatch.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
@ -556,6 +557,11 @@ bool Foam::functionObjects::momentum::write()
|
|||||||
|
|
||||||
forAll(pbm, patchi)
|
forAll(pbm, patchi)
|
||||||
{
|
{
|
||||||
|
if (isA<emptyPolyPatch>(pbm[patchi]))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const auto& pts = pbm[patchi].faceCentres();
|
const auto& pts = pbm[patchi].faceCentres();
|
||||||
const label len = pts.size();
|
const label len = pts.size();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user