mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Removing commented out owner and neighbour determination from
createFacesOwnerNeighbourAndPatches. This commit is available for reference in future.
This commit is contained in:
@ -1407,115 +1407,6 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches
|
||||
|
||||
dualFaceI++;
|
||||
}
|
||||
|
||||
// --> OLD, FOR REFERENCE
|
||||
// label dualCellIndexA = vA->index();
|
||||
|
||||
// if (!vA->internalOrBoundaryPoint())
|
||||
// {
|
||||
// dualCellIndexA = -1;
|
||||
// }
|
||||
|
||||
// label dualCellIndexB = vB->index();
|
||||
|
||||
// if (!vB->internalOrBoundaryPoint())
|
||||
// {
|
||||
// dualCellIndexB = -1;
|
||||
// }
|
||||
|
||||
// label own = -1;
|
||||
// label nei = -1;
|
||||
|
||||
// if (dualCellIndexA == -1 && dualCellIndexB == -1)
|
||||
// {
|
||||
// FatalErrorIn
|
||||
// (
|
||||
// "void Foam::conformalVoronoiMesh::"
|
||||
// "createFacesOwnerNeighbourAndPatches"
|
||||
// "("
|
||||
// "faceList& faces,"
|
||||
// "labelList& owner,"
|
||||
// "labelList& neighbour,"
|
||||
// "wordList& patchNames,"
|
||||
// "labelList& patchSizes,"
|
||||
// "labelList& patchStarts,"
|
||||
// "bool includeEmptyPatches"
|
||||
// ") const"
|
||||
// )
|
||||
// << "Attempting to create a face joining "
|
||||
// << "two unindexed dual cells "
|
||||
// << exit(FatalError);
|
||||
// }
|
||||
// else if (dualCellIndexA == -1 || dualCellIndexB == -1)
|
||||
// {
|
||||
// // boundary face, find which is the owner
|
||||
|
||||
// if (dualCellIndexA == -1)
|
||||
// {
|
||||
// own = dualCellIndexB;
|
||||
|
||||
// // reverse face order to correctly orientate normal
|
||||
// reverse(newDualFace);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// own = dualCellIndexA;
|
||||
// }
|
||||
|
||||
// // Find which patch this face is on by finding the
|
||||
// // intersection with the surface of the Delaunay edge
|
||||
// // generating the face and identify the region of the
|
||||
// // intersection.
|
||||
|
||||
// point ptA = topoint(vA->point());
|
||||
|
||||
// point ptB = topoint(vB->point());
|
||||
|
||||
// label patchIndex = geometryToConformTo_.findPatch(ptA, ptB);
|
||||
|
||||
// if (patchIndex == -1)
|
||||
// {
|
||||
// patchIndex = patchNames.size() - 1;
|
||||
|
||||
// // WarningIn("Foam::conformalVoronoiMesh::calcDualMesh")
|
||||
// // << "Dual face found between Dv pair " << nl
|
||||
// // << " " << ptA << nl
|
||||
// // << " " << ptB << nl
|
||||
// // << " that is not on a surface patch. Adding to "
|
||||
// // << patchNames[patchIndex]
|
||||
// // << endl;
|
||||
// }
|
||||
|
||||
// patchFaces[patchIndex].append(newDualFace);
|
||||
// patchOwners[patchIndex].append(own);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// // internal face, find the lower cell to be the owner
|
||||
|
||||
// if (dualCellIndexB > dualCellIndexA)
|
||||
// {
|
||||
// own = dualCellIndexA;
|
||||
// nei = dualCellIndexB;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// own = dualCellIndexB;
|
||||
// nei = dualCellIndexA;
|
||||
|
||||
// // reverse face order to correctly orientate normal
|
||||
// reverse(newDualFace);
|
||||
// }
|
||||
|
||||
// faces[dualFaceI] = newDualFace;
|
||||
|
||||
// owner[dualFaceI] = own;
|
||||
|
||||
// neighbour[dualFaceI] = nei;
|
||||
|
||||
// dualFaceI++;
|
||||
// }
|
||||
// <-- OLD, FOR REFERENCE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user