Skip to content
Snippets Groups Projects
Commit 179129f1 authored by Alen Cukrov's avatar Alen Cukrov
Browse files

Creation of cells subsets at bad quality faces

parent 0dd16011
No related branches found
No related tags found
No related merge requests found
...@@ -292,8 +292,20 @@ void meshOptimizer::untangleMeshFV ...@@ -292,8 +292,20 @@ void meshOptimizer::untangleMeshFV
mesh_.removeFaceSubset(subsetId); mesh_.removeFaceSubset(subsetId);
subsetId = mesh_.addFaceSubset("badFaces"); subsetId = mesh_.addFaceSubset("badFaces");
const labelList& owner = mesh_.owner();
const labelList& neighbour = mesh_.neighbour();
const label badCellsId =
mesh_.addCellSubset("badCells");
forAllConstIter(labelHashSet, badFaces, it) forAllConstIter(labelHashSet, badFaces, it)
{
mesh_.addFaceToSubset(subsetId, it.key()); mesh_.addFaceToSubset(subsetId, it.key());
mesh_.addCellToSubset(badCellsId, owner[it.key()]);
if( neighbour[it.key()] < 0 )
continue;
mesh_.addCellToSubset(badCellsId, neighbour[it.key()]);
}
} }
Info << "Finished untangling the mesh" << endl; Info << "Finished untangling the mesh" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment