From d0e3584bc07e1c65f191a24ee703bfaf50b24f54 Mon Sep 17 00:00:00 2001 From: graham Date: Wed, 15 Jun 2011 12:20:09 +0100 Subject: [PATCH] ENH: Allowing surface conformations to be distributed. --- .../backgroundMeshDecomposition.C | 50 ++++- .../backgroundMeshDecomposition.H | 4 +- .../conformalVoronoiMesh.C | 212 ++++++++++++------ .../conformalVoronoiMesh.H | 20 +- .../conformalVoronoiMeshConformToSurface.C | 18 ++ 5 files changed, 229 insertions(+), 75 deletions(-) diff --git a/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C b/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C index e9bf2cc5dd..69fdc97015 100644 --- a/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C +++ b/src/mesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C @@ -861,7 +861,9 @@ Foam::autoPtr Foam::backgroundMeshDecomposition::distribute ( volScalarField& cellWeights, - List >& cellVertices + List >& cellVertices, + List >& cellVertexIndices, + List >& cellVertexTypes ) { if (debug) @@ -953,19 +955,27 @@ Foam::backgroundMeshDecomposition::distribute meshCutter_.updateMesh(map); { - // Map cellVertices + // Map cellVertices, cellVertexIndices and cellVertexTypes meshSearch cellSearch(mesh_); const labelList& reverseCellMap = map().reverseCellMap(); List > newCellVertices(mesh_.nCells()); + List > newCellVertexIndices(mesh_.nCells()); + List > newCellVertexTypes(mesh_.nCells()); forAll(cellVertices, oldCellI) { DynamicList& oldCellVertices = cellVertices[oldCellI]; + DynamicList