polyTopoChange::modifyCell: Replaced by direct specification of the cell zone

This commit is contained in:
Henry Weller
2024-03-12 14:08:10 +00:00
parent d9cb93897a
commit 41864093ca
19 changed files with 151 additions and 126 deletions

View File

@ -1257,23 +1257,6 @@ int main(int argc, char *argv[])
);
}
// Modify cells to be in zones as required
forAll(cellZoneIDs, cellZonei)
{
label cgi = cellZoneIDs[cellZonei];
for
(
label celli = cellGroupStartIndex[cgi];
celli <= cellGroupEndIndex[cgi];
celli++
)
{
meshMod.modifyCell(celli, cellZonei);
}
}
bool doneWarning = false;
// Add faceZone faces
@ -1462,6 +1445,21 @@ int main(int argc, char *argv[])
polyMeshUnMergeCyclics(mesh);
}
// Add the cell zones as required
forAll(cellZoneIDs, cellZonei)
{
const label cgi = cellZoneIDs[cellZonei];
mesh.cellZones()[cellZonei].insert
(
identityMap
(
cellGroupStartIndex[cgi],
cellGroupEndIndex[cgi] + 1 - cellGroupStartIndex[cgi]
)
);
}
mesh.setInstance(runTime.constant());
// Set the precision of the points data to 10

View File

@ -500,7 +500,7 @@ int main(int argc, char *argv[])
forAll(patchSources, addedI)
{
const dictionary& dict = patchSources[addedI];
addedPatchNames.insert(dict.lookup("name"));
addedPatchNames.insert(dict.lookup<word>("name"));
}