Skip to content
Snippets Groups Projects
Commit fa45982c authored by Philippose Rajan's avatar Philippose Rajan
Browse files

Allow patch based boundary layer specifications to use names with regular expression constructs.

parent 1c4675bb
Branches
Tags
No related merge requests found
...@@ -156,7 +156,12 @@ void refineBoundaryLayers::setNumberOfLayersForPatch ...@@ -156,7 +156,12 @@ void refineBoundaryLayers::setNumberOfLayersForPatch
return; return;
} }
numLayersForPatch_[patchName] = nLayers; labelList matchedIDs = mesh_.findPatches(patchName);
forAll(matchedIDs, matchI)
{
numLayersForPatch_[mesh_.getPatchName(matchedIDs[matchI])] = nLayers;
}
} }
void refineBoundaryLayers::setThicknessRatioForPatch void refineBoundaryLayers::setThicknessRatioForPatch
...@@ -177,7 +182,12 @@ void refineBoundaryLayers::setThicknessRatioForPatch ...@@ -177,7 +182,12 @@ void refineBoundaryLayers::setThicknessRatioForPatch
return; return;
} }
thicknessRatioForPatch_[patchName] = thicknessRatio; labelList matchedIDs = mesh_.findPatches(patchName);
forAll(matchedIDs, matchI)
{
thicknessRatioForPatch_[mesh_.getPatchName(matchedIDs[matchI])] = thicknessRatio;
}
} }
void refineBoundaryLayers::setMaxThicknessOfFirstLayerForPatch void refineBoundaryLayers::setMaxThicknessOfFirstLayerForPatch
...@@ -198,12 +208,22 @@ void refineBoundaryLayers::setMaxThicknessOfFirstLayerForPatch ...@@ -198,12 +208,22 @@ void refineBoundaryLayers::setMaxThicknessOfFirstLayerForPatch
return; return;
} }
maxThicknessForPatch_[patchName] = maxThickness; labelList matchedIDs = mesh_.findPatches(patchName);
forAll(matchedIDs, matchI)
{
maxThicknessForPatch_[mesh_.getPatchName(matchedIDs[matchI])] = maxThickness;
}
} }
void refineBoundaryLayers::setInteruptForPatch(const word& patchName) void refineBoundaryLayers::setInteruptForPatch(const word& patchName)
{ {
discontinuousLayersForPatch_.insert(patchName); labelList matchedIDs = mesh_.findPatches(patchName);
forAll(matchedIDs, matchI)
{
discontinuousLayersForPatch_.insert(mesh_.getPatchName(matchedIDs[matchI]));
}
} }
void refineBoundaryLayers::refineLayers() void refineBoundaryLayers::refineLayers()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment