zones: General code clean-up and rationalisation to reduce duplication

This commit is contained in:
Henry Weller
2024-03-27 13:29:44 +00:00
parent fa36bc75cc
commit 4ad52ea108
27 changed files with 147 additions and 157 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -672,7 +672,7 @@ void ensightPointField
const faceZone& fz = mesh.faceZones()[zoneID];
if (returnReduce(fz().nPoints(), sumOp<label>()) > 0)
if (returnReduce(fz.patch().nPoints(), sumOp<label>()) > 0)
{
// Renumber the faceZone points/faces into unique points
labelList pointToGlobal;
@ -680,8 +680,8 @@ void ensightPointField
autoPtr<globalIndex> globalPointsPtr =
mesh.globalData().mergePoints
(
fz().meshPoints(),
fz().meshPointMap(),
fz.patch().meshPoints(),
fz.patch().meshPointMap(),
pointToGlobal,
uniqueMeshPointLabels
);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -1267,8 +1267,8 @@ void Foam::ensightMesh::write
autoPtr<globalIndex> globalPointsPtr =
mesh_.globalData().mergePoints
(
fz().meshPoints(),
fz().meshPointMap(),
fz.patch().meshPoints(),
fz.patch().meshPointMap(),
pointToGlobal,
uniqueMeshPointLabels
);
@ -1277,7 +1277,7 @@ void Foam::ensightMesh::write
// Find the list of master faces belonging to the faceZone,
// in local numbering
faceList faceZoneFaces(fz().localFaces());
faceList faceZoneFaces(fz.patch().localFaces());
// Count how many master faces belong to the faceZone. Is there
// a better way of doing this?