From 0fbcb8b83299f79c2fda10ea462f4ccde4e49c55 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 15 Jun 2012 13:24:34 +0100 Subject: [PATCH] ENH: snappyHexMesh: special handling for multi-patch points --- .../autoHexMeshDriver/autoSnapDriver.H | 5 +- .../autoHexMeshDriver/autoSnapDriverFeature.C | 186 +++++++++++++++--- 2 files changed, 165 insertions(+), 26 deletions(-) diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.H b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.H index 2e908b7318..35d0822d2a 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.H +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -249,9 +249,10 @@ class autoSnapDriver const indirectPrimitivePatch& pp, const scalarField& snapDist, - const List >& pointFaceNormals, + const List >& pointFaceSurfNormals, const List >& pointFaceDisp, const List >& pointFaceCentres, + const labelListList& pointFacePatchID, vectorField& patchAttraction, List& patchConstraints diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C index 6347d5dd16..96e7faec10 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C @@ -71,14 +71,15 @@ namespace Foam } }; + template class listPlusEqOp { public: void operator() ( - List& x, - const List& y + List& x, + const List& y ) const { label sz = x.size(); @@ -486,7 +487,7 @@ void Foam::autoSnapDriver::binFeatureFaces const label pointI, - const List >& pointFaceNormals, + const List >& pointFaceSurfNormals, const List >& pointFaceDisp, const List >& pointFaceCentres, @@ -495,7 +496,7 @@ void Foam::autoSnapDriver::binFeatureFaces DynamicList