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
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;
}
}
......
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