Skip to content
Snippets Groups Projects
Commit a7bfd073 authored by Franjo's avatar Franjo
Browse files

Information about points in the boundary layer

parent 09f6c276
No related branches found
No related tags found
No related merge requests found
...@@ -372,6 +372,36 @@ void refineBoundaryLayers::refineLayers() ...@@ -372,6 +372,36 @@ void refineBoundaryLayers::refineLayers()
Info << "Finished refining boundary layers" << endl; Info << "Finished refining boundary layers" << endl;
} }
void refineBoundaryLayers::pointsInBndLayer(labelLongList& layerPoints)
{
layerPoints.clear();
boolList pointInLayer(mesh_.points().size(), false);
forAll(newVerticesForSplitEdge_, seI)
{
forAllRow(newVerticesForSplitEdge_, seI, i)
pointInLayer[newVerticesForSplitEdge_(seI, i)] = true;
}
forAll(pointInLayer, pointI)
if( pointInLayer[pointI] )
layerPoints.append(pointI);
}
void refineBoundaryLayers::pointsInBndLayer(const word subsetName)
{
label sId = mesh_.pointSubsetIndex(subsetName);
if( sId < 0 )
sId = mesh_.addPointSubset(subsetName);
forAll(newVerticesForSplitEdge_, seI)
{
forAllRow(newVerticesForSplitEdge_, seI, i)
mesh_.addPointToSubset(sId, newVerticesForSplitEdge_(seI, i));
}
}
void refineBoundaryLayers::readSettings void refineBoundaryLayers::readSettings
( (
const dictionary& meshDict, const dictionary& meshDict,
......
...@@ -401,6 +401,13 @@ public: ...@@ -401,6 +401,13 @@ public:
//- performs refinement based on the given settings //- performs refinement based on the given settings
void refineLayers(); void refineLayers();
// Post information
//- provide the list of points in the boundary layer
void pointsInBndLayer(labelLongList&);
//- create a subset containing points in the boundary layer
void pointsInBndLayer(const word subsetName="pointsInBndLayer");
// Static member functions // Static member functions
//- read the settings from dictionary //- read the settings from dictionary
static void readSettings(const dictionary&, refineBoundaryLayers&); static void readSettings(const dictionary&, refineBoundaryLayers&);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment