Commit 615961c2 authored by mattijs's avatar mattijs
Browse files

ENH: snappyHexMesh: allow overriding constraint patches

parent 3880c803
...@@ -799,6 +799,11 @@ Foam::autoLayerDriver::makeLayerDisplacementField ...@@ -799,6 +799,11 @@ Foam::autoLayerDriver::makeLayerDisplacementField
pointPatches.size(), pointPatches.size(),
slipPointPatchVectorField::typeName slipPointPatchVectorField::typeName
); );
wordList actualPatchTypes(patchFieldTypes.size());
forAll(pointPatches, patchI)
{
actualPatchTypes[patchI] = pointPatches[patchI].type();
}
forAll(numLayers, patchI) forAll(numLayers, patchI)
{ {
...@@ -841,7 +846,8 @@ Foam::autoLayerDriver::makeLayerDisplacementField ...@@ -841,7 +846,8 @@ Foam::autoLayerDriver::makeLayerDisplacementField
), ),
pMesh, pMesh,
dimensionedVector("displacement", dimLength, vector::zero), dimensionedVector("displacement", dimLength, vector::zero),
patchFieldTypes patchFieldTypes,
actualPatchTypes
) )
); );
return tfld; return tfld;
...@@ -3296,7 +3302,7 @@ void Foam::autoLayerDriver::doLayers ...@@ -3296,7 +3302,7 @@ void Foam::autoLayerDriver::doLayers
{ {
const polyPatch& pp = mesh.boundaryMesh()[patchI]; const polyPatch& pp = mesh.boundaryMesh()[patchI];
if (!polyPatch::constraintType(pp.type())) if (!pp.coupled())
{ {
patchIDs.append(patchI); patchIDs.append(patchI);
nFacesWithLayers += mesh.boundaryMesh()[patchI].size(); nFacesWithLayers += mesh.boundaryMesh()[patchI].size();
...@@ -3304,7 +3310,7 @@ void Foam::autoLayerDriver::doLayers ...@@ -3304,7 +3310,7 @@ void Foam::autoLayerDriver::doLayers
else else
{ {
WarningIn("autoLayerDriver::doLayers(..)") WarningIn("autoLayerDriver::doLayers(..)")
<< "Ignoring layers on constraint patch " << pp.name() << "Ignoring layers on coupled patch " << pp.name()
<< endl; << endl;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment