mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide defaultName() static method for patches, zones
- consistent way of writing "patch" + Foam::name(id) etc.
This commit is contained in:
@ -58,7 +58,7 @@ Info<< "Creating patch dictionaries" << endl;
|
||||
wordList patchNames(boundary.size());
|
||||
forAll(patchNames, patchi)
|
||||
{
|
||||
patchNames[patchi] = "patch" + Foam::name(patchi);
|
||||
patchNames[patchi] = polyPatch::defaultName(patchi);
|
||||
}
|
||||
|
||||
PtrList<dictionary> boundaryDicts(boundary.size());
|
||||
@ -69,11 +69,11 @@ forAll(boundaryDicts, patchi)
|
||||
word nbrPatchName;
|
||||
if (patchi % 2 == 0)
|
||||
{
|
||||
nbrPatchName = "patch" + Foam::name(patchi + 1);
|
||||
nbrPatchName = polyPatch::defaultName(patchi + 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
nbrPatchName = "patch" + Foam::name(patchi - 1);
|
||||
nbrPatchName = polyPatch::defaultName(patchi - 1);
|
||||
}
|
||||
|
||||
patchDict.add("type", cyclicPolyPatch::typeName);
|
||||
|
||||
Reference in New Issue
Block a user