Public Member Functions | Private Member Functions | Private Attributes
detectBoundaryLayers Class Reference
Collaboration diagram for detectBoundaryLayers:
Collaboration graph
[legend]

Public Member Functions

 detectBoundaryLayers (const meshSurfacePartitioner &meshSurface, const bool is2DMesh=false)
 
 ~detectBoundaryLayers ()
 
const edgeLongListhairEdges () const
 return hair edges found in the detection process More...
 
const VRWGraphhairEdgesAtBndPoint () const
 hair edges attached to a boundary point More...
 
label nDistinctLayers () const
 number of distinct layers which are at the boundary of the mesh More...
 
const labelListfaceInLayer () const
 index of a layer to which a boundary faces belong to More...
 

Private Member Functions

void analyseLayers ()
 analyse layers to check their topology More...
 
bool findHairsForFace (const label, DynList< edge > &hairEdges) const
 provide hair edges in a cell above a boundary face More...
 
void generateHairEdges ()
 generate hair edges for all boundary points More...
 
 detectBoundaryLayers (const detectBoundaryLayers &)
 Disallow bitwise copy construct. More...
 
void operator= (const detectBoundaryLayers &)
 Disallow bitwise assignment. More...
 

Private Attributes

const meshSurfacePartitionermeshSurface_
 Reference to the meshSurfacePartitioner. More...
 
label nFirstLayers_
 
labelList layerAtBndFace_
 information about the existing boundary layer at a boundary face More...
 
List< DynList< label > > layerAtPatch_
 layer at a boundary patch More...
 
edgeLongList hairEdges_
 hair edges found in the mesh More...
 
VRWGraph hairEdgesAtBoundaryPoint_
 hair edges at a boudary point More...
 
const bool is2DMesh_
 is it a 2D mesh More...
 

Detailed Description

Definition at line 59 of file detectBoundaryLayers.H.

Constructor & Destructor Documentation

◆ detectBoundaryLayers() [1/2]

Disallow bitwise copy construct.

◆ detectBoundaryLayers() [2/2]

detectBoundaryLayers ( const meshSurfacePartitioner meshSurface,
const bool  is2DMesh = false 
)

Construct from meshSurfacePartitioner and a bool providing information whether the mesh is a 2D mesh. The default is false.

Definition at line 40 of file detectBoundaryLayers.C.

References Foam::endl(), and Foam::Info.

Here is the call graph for this function:

◆ ~detectBoundaryLayers()

Definition at line 64 of file detectBoundaryLayers.C.

Member Function Documentation

◆ analyseLayers()

void analyseLayers ( )
private

◆ findHairsForFace()

bool findHairsForFace ( const label  bfI,
DynList< edge > &  hairEdges 
) const
private

provide hair edges in a cell above a boundary face

check cell topology

check does the base face exist and is the number of faces in the cell corresponding to a prism cell

check if all faces attached to the base face are quads

find the face attached to the edge after the current point

find the face attached to the edge before the current point

there exists a common edge which shall be used as a hair

Definition at line 461 of file detectBoundaryLayersFunctions.C.

References DynList< T, staticSize >::append(), Foam::constant::universal::c, primitiveMesh::cells(), DynList< T, staticSize >::containsAtPosition(), Foam::e, f(), meshSurfaceEngine::faceOwners(), polyMesh::faces(), forAll, mesh, meshSurfaceEngine::mesh(), Foam::pos(), DynList< T, staticSize >::setSize(), faceListPMG::size(), List::size(), and DynList< T, staticSize >::size().

Referenced by detectBoundaryLayers::generateHairEdges().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateHairEdges()

void generateHairEdges ( )
private

◆ operator=()

void operator= ( const detectBoundaryLayers )
private

Disallow bitwise assignment.

◆ hairEdges()

const edgeLongList& hairEdges ( ) const
inline

return hair edges found in the detection process

Definition at line 116 of file detectBoundaryLayers.H.

References detectBoundaryLayers::hairEdges_.

Referenced by refineBoundaryLayers::analyseLayers(), boundaryLayerOptimisation::calculateHairEdges(), and detectBoundaryLayers::generateHairEdges().

Here is the caller graph for this function:

◆ hairEdgesAtBndPoint()

const VRWGraph& hairEdgesAtBndPoint ( ) const
inline

hair edges attached to a boundary point

Definition at line 122 of file detectBoundaryLayers.H.

References detectBoundaryLayers::hairEdgesAtBoundaryPoint_.

Referenced by boundaryLayerOptimisation::calculateHairEdges().

Here is the caller graph for this function:

◆ nDistinctLayers()

label nDistinctLayers ( ) const
inline

number of distinct layers which are at the boundary of the mesh

Definition at line 128 of file detectBoundaryLayers.H.

References detectBoundaryLayers::nFirstLayers_.

Referenced by refineBoundaryLayers::analyseLayers().

Here is the caller graph for this function:

◆ faceInLayer()

const labelList& faceInLayer ( ) const
inline

index of a layer to which a boundary faces belong to

Definition at line 134 of file detectBoundaryLayers.H.

References detectBoundaryLayers::layerAtBndFace_.

Referenced by refineBoundaryLayers::analyseLayers(), and boundaryLayerOptimisation::calculateHairEdges().

Here is the caller graph for this function:

Field Documentation

◆ meshSurface_

const meshSurfacePartitioner& meshSurface_
private

◆ nFirstLayers_

label nFirstLayers_
private

find the number of distinct layers in the mesh at the boundary of the mesh

Definition at line 66 of file detectBoundaryLayers.H.

Referenced by detectBoundaryLayers::analyseLayers(), and detectBoundaryLayers::nDistinctLayers().

◆ layerAtBndFace_

labelList layerAtBndFace_
private

information about the existing boundary layer at a boundary face

Definition at line 69 of file detectBoundaryLayers.H.

Referenced by detectBoundaryLayers::analyseLayers(), detectBoundaryLayers::faceInLayer(), and detectBoundaryLayers::generateHairEdges().

◆ layerAtPatch_

List<DynList<label> > layerAtPatch_
private

layer at a boundary patch

Definition at line 72 of file detectBoundaryLayers.H.

Referenced by detectBoundaryLayers::analyseLayers().

◆ hairEdges_

edgeLongList hairEdges_
private

hair edges found in the mesh

Definition at line 75 of file detectBoundaryLayers.H.

Referenced by detectBoundaryLayers::generateHairEdges(), and detectBoundaryLayers::hairEdges().

◆ hairEdgesAtBoundaryPoint_

VRWGraph hairEdgesAtBoundaryPoint_
private

hair edges at a boudary point

Definition at line 78 of file detectBoundaryLayers.H.

Referenced by detectBoundaryLayers::generateHairEdges(), and detectBoundaryLayers::hairEdgesAtBndPoint().

◆ is2DMesh_

const bool is2DMesh_
private

is it a 2D mesh

Definition at line 81 of file detectBoundaryLayers.H.

Referenced by detectBoundaryLayers::analyseLayers().


The documentation for this class was generated from the following files: