polyBoundaryMesh::findPatchID,findPatchIDs: renamed findIndex,findIndices
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:
@ -66,7 +66,7 @@ int main(int argc, char *argv[])
|
||||
const scalar h = mesh.bounds().span().y();
|
||||
Info<< "Height from centreline to wall = " << h << endl;
|
||||
|
||||
const label centrelineID = mesh.boundary().findPatchID("centreline");
|
||||
const label centrelineID = mesh.boundary().findIndex("centreline");
|
||||
const vector patchToCell =
|
||||
mesh.boundary()[centrelineID].Cf()[0]
|
||||
- mesh.C()[mesh.findNearestCell(location)];
|
||||
|
||||
@ -67,7 +67,7 @@ functions
|
||||
Info<< "Reading inlet velocity uInfX\n" << endl;
|
||||
|
||||
scalar ULeft = 0.0;
|
||||
label leftI = mesh().boundaryMesh().findPatchID("left");
|
||||
label leftI = mesh().boundaryMesh().findIndex("left");
|
||||
const fvPatchVectorField& fvp = U.boundaryField()[leftI];
|
||||
if (fvp.size())
|
||||
{
|
||||
@ -86,7 +86,7 @@ functions
|
||||
|
||||
|
||||
scalar magCylinder = 0.0;
|
||||
label cylI = mesh().boundaryMesh().findPatchID("cylinder");
|
||||
label cylI = mesh().boundaryMesh().findIndex("cylinder");
|
||||
const fvPatchVectorField& cylFvp = mesh().C().boundaryField()[cylI];
|
||||
if (cylFvp.size())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user