mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: foamToEnsight cellZones missing mesh coverage (closes #2002)
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2016-2020 OpenCFD Ltd.
|
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -199,6 +199,9 @@ void Foam::ensightMesh::correct()
|
|||||||
|
|
||||||
if (returnReduce(!zn.empty(), orOp<bool>()))
|
if (returnReduce(!zn.empty(), orOp<bool>()))
|
||||||
{
|
{
|
||||||
|
// Ensure full mesh coverage
|
||||||
|
cellSelection.resize(mesh_.nCells());
|
||||||
|
|
||||||
cellSelection.set(zn);
|
cellSelection.set(zn);
|
||||||
|
|
||||||
ensightCells& part = cellZoneParts_(zoneId);
|
ensightCells& part = cellZoneParts_(zoneId);
|
||||||
@ -267,6 +270,7 @@ void Foam::ensightMesh::correct()
|
|||||||
|
|
||||||
if (returnReduce(!cellSelection.empty(), orOp<bool>()))
|
if (returnReduce(!cellSelection.empty(), orOp<bool>()))
|
||||||
{
|
{
|
||||||
|
// Ensure full mesh coverage
|
||||||
excludeFace.resize(mesh_.nFaces());
|
excludeFace.resize(mesh_.nFaces());
|
||||||
|
|
||||||
const labelList& owner = mesh_.faceOwner();
|
const labelList& owner = mesh_.faceOwner();
|
||||||
@ -288,6 +292,7 @@ void Foam::ensightMesh::correct()
|
|||||||
|
|
||||||
if (fzoneIds.size())
|
if (fzoneIds.size())
|
||||||
{
|
{
|
||||||
|
// Ensure full mesh coverage
|
||||||
excludeFace.resize(mesh_.nFaces());
|
excludeFace.resize(mesh_.nFaces());
|
||||||
|
|
||||||
for (const polyPatch& p : mesh_.boundaryMesh())
|
for (const polyPatch& p : mesh_.boundaryMesh())
|
||||||
|
|||||||
Reference in New Issue
Block a user