Renamed IDs() -> Indices()

Indices is a better name to describe label indices than IDs which may be an
integers, words or other means of identification.
This commit is contained in:
Henry Weller
2023-12-20 14:29:23 +00:00
parent 2057174b55
commit a99155d0f0
70 changed files with 328 additions and 320 deletions

View File

@ -55,18 +55,18 @@ void Foam::functionObjects::layerAverage::calcLayers()
// Initialise the faces from which the layers extrude
DynamicList<label> startFaces;
DynamicList<layerInfo> startFacesInfo;
forAll(patchIDs_, i)
forAll(patchIndices_, i)
{
const polyPatch& pp = mesh_.boundaryMesh()[patchIDs_[i]];
const polyPatch& pp = mesh_.boundaryMesh()[patchIndices_[i]];
forAll(pp, j)
{
startFaces.append(pp.start() + j);
startFacesInfo.append(layerInfo(0, -1));
}
}
forAll(zoneIDs_, i)
forAll(zoneIndices_, i)
{
const faceZone& fz = mesh_.faceZones()[zoneIDs_[i]];
const faceZone& fz = mesh_.faceZones()[zoneIndices_[i]];
forAll(fz, j)
{
startFaces.append(fz[j]);
@ -240,20 +240,20 @@ bool Foam::functionObjects::layerAverage::read(const dictionary& dict)
{
Info<< type() << " " << name() << ":" << nl;
patchIDs_ =
patchIndices_ =
mesh_.boundaryMesh().patchSet
(
dict.lookupOrDefault<wordReList>("patches", wordReList())
).toc();
zoneIDs_ =
zoneIndices_ =
findStrings
(
dict.lookupOrDefault<wordReList>("zones", wordReList()),
mesh_.faceZones().names()
);
if (patchIDs_.empty() && zoneIDs_.empty())
if (patchIndices_.empty() && zoneIndices_.empty())
{
WarningInFunction
<< "No patches or zones specified" << endl;

View File

@ -96,13 +96,13 @@ class layerAverage
// Private Data
//- Patches which form the start of the layers
labelList patchIDs_;
labelList patchIndices_;
//- Zones which form the start of the layers
labelList zoneIDs_;
labelList zoneIndices_;
//- Zones on which the layers are considered to end
labelList endZoneIDs_;
labelList endZoneIndices_;
//- Is the case symmetric?
bool symmetric_;