From 615961c261e071fe07c49f167879c96bc03d7ba5 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 2 Jul 2013 12:30:51 +0100 Subject: [PATCH] ENH: snappyHexMesh: allow overriding constraint patches --- .../autoHexMesh/autoHexMeshDriver/autoLayerDriver.C | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C index 6a61832cd6..09afd2f1de 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C @@ -799,6 +799,11 @@ Foam::autoLayerDriver::makeLayerDisplacementField pointPatches.size(), slipPointPatchVectorField::typeName ); + wordList actualPatchTypes(patchFieldTypes.size()); + forAll(pointPatches, patchI) + { + actualPatchTypes[patchI] = pointPatches[patchI].type(); + } forAll(numLayers, patchI) { @@ -841,7 +846,8 @@ Foam::autoLayerDriver::makeLayerDisplacementField ), pMesh, dimensionedVector("displacement", dimLength, vector::zero), - patchFieldTypes + patchFieldTypes, + actualPatchTypes ) ); return tfld; @@ -3296,7 +3302,7 @@ void Foam::autoLayerDriver::doLayers { const polyPatch& pp = mesh.boundaryMesh()[patchI]; - if (!polyPatch::constraintType(pp.type())) + if (!pp.coupled()) { patchIDs.append(patchI); nFacesWithLayers += mesh.boundaryMesh()[patchI].size(); @@ -3304,7 +3310,7 @@ void Foam::autoLayerDriver::doLayers else { WarningIn("autoLayerDriver::doLayers(..)") - << "Ignoring layers on constraint patch " << pp.name() + << "Ignoring layers on coupled patch " << pp.name() << endl; } }