ENH: snappyHexMesh: allow overriding constraint patches
This commit is contained in:
parent
3880c8037a
commit
615961c261
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user