mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: snappyHexMesh: allow overriding constraint patches
This commit is contained in:
@ -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
|
|||||||
),
|
),
|
||||||
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
|
|||||||
{
|
{
|
||||||
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
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
WarningIn("autoLayerDriver::doLayers(..)")
|
WarningIn("autoLayerDriver::doLayers(..)")
|
||||||
<< "Ignoring layers on constraint patch " << pp.name()
|
<< "Ignoring layers on coupled patch " << pp.name()
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user