MeshZones: Renamed findZoneID -> findIndex

Index is a better name to describe a label index than ID which may be an
integer, word or other means of identification.
This commit is contained in:
Henry Weller
2023-12-15 22:25:02 +00:00
parent c21ff68e79
commit 77f0b172a9
36 changed files with 98 additions and 93 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-2021 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -268,7 +268,7 @@ void Foam::vtkPVFoam::convertMeshCellZones
for (int partId = range.start(); partId < range.end(); ++partId)
{
const word zoneName = getPartName(partId);
const label zoneId = zMesh.findZoneID(zoneName);
const label zoneId = zMesh.findIndex(zoneName);
if (!partStatus_[partId] || zoneId < 0)
{
@ -436,7 +436,7 @@ void Foam::vtkPVFoam::convertMeshFaceZones
for (int partId = range.start(); partId < range.end(); ++partId)
{
const word zoneName = getPartName(partId);
const label zoneId = zMesh.findZoneID(zoneName);
const label zoneId = zMesh.findIndex(zoneName);
if (!partStatus_[partId] || zoneId < 0)
{
@ -554,7 +554,7 @@ void Foam::vtkPVFoam::convertMeshPointZones
for (int partId = range.start(); partId < range.end(); ++partId)
{
word zoneName = getPartName(partId);
label zoneId = zMesh.findZoneID(zoneName);
label zoneId = zMesh.findIndex(zoneName);
if (!partStatus_[partId] || zoneId < 0)
{

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-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -142,7 +142,7 @@ void Foam::vtkPVFoam::convertPointFields
{
const word zoneName = getPartName(partId);
const label datasetNo = partDataset_[partId];
const label zoneId = mesh.faceZones().findZoneID(zoneName);
const label zoneId = mesh.faceZones().findIndex(zoneName);
if (!partStatus_[partId] || datasetNo < 0 || zoneId < 0)
{

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-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -261,7 +261,7 @@ void Foam::vtkPVFoam::convertSurfaceFields
}
const meshFaceZones& zMesh = mesh.faceZones();
const label zoneId = zMesh.findZoneID(zoneName);
const label zoneId = zMesh.findIndex(zoneName);
if (zoneId < 0)
{

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-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -218,7 +218,7 @@ void Foam::vtkPVFoam::convertVolFields
}
const meshFaceZones& zMesh = mesh.faceZones();
const label zoneId = zMesh.findZoneID(zoneName);
const label zoneId = zMesh.findIndex(zoneName);
if (zoneId < 0)
{