Loading...
Searching...
No Matches
PatchEdgeFaceWaveBase Class Reference

#include <PatchEdgeFaceWave.H>

Inheritance diagram for PatchEdgeFaceWaveBase:
Collaboration diagram for PatchEdgeFaceWaveBase:

Public Member Functions

 ClassName ("PatchEdgeFaceWave")
 Runtime type information.
 PatchEdgeFaceWaveBase (const polyMesh &mesh, const label nEdges, const label nFaces)
 Construct with mesh reference and set initial sizes.
const polyMeshmesh () const noexcept
 Return access to the mesh.
label nChangedEdges () const noexcept
 Current number of changed edges.
label nChangedFaces () const noexcept
 Current number of changed faces.
label nUnvisitedFaces () const noexcept
 Number of unvisited faces, i.e. faces that were not (yet) reached from walking across patch.
label nUnvisitedEdges () const noexcept

Static Public Member Functions

static scalar propagationTol () noexcept
 Access to propagation tolerance.
static scalar setPropagationTol (const scalar tol) noexcept
 Change propagation tolerance, return previous value.

Static Public Attributes

static label dummyTrackData_ = 12345
 Default trackData value (for default template argument).

Protected Attributes

const polyMeshmesh_
 Reference to mesh.
bitSet changedEdge_
 Track if edge has changed.
bitSet changedFace_
 Track if face has changed.
DynamicList< label > changedEdges_
 List of changed edges.
DynamicList< label > changedFaces_
 List of changed faces.
label nUnvisitedEdges_
 Number of unvisited edges.
label nUnvisitedFaces_
 Number of unvisited faces.

Static Protected Attributes

static scalar propagationTol_ = 0.01
 Relative tolerance.

Detailed Description

Definition at line 55 of file PatchEdgeFaceWave.H.

Constructor & Destructor Documentation

◆ PatchEdgeFaceWaveBase()

PatchEdgeFaceWaveBase ( const polyMesh & mesh,
const label nEdges,
const label nFaces )

Construct with mesh reference and set initial sizes.

Definition at line 42 of file PatchEdgeFaceWaveBase.C.

References changedEdge_, changedEdges_, changedFace_, changedFaces_, mesh(), mesh_, nUnvisitedEdges_, and nUnvisitedFaces_.

Referenced by PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::PatchEdgeFaceWave(), and PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::PatchEdgeFaceWave().

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

Member Function Documentation

◆ ClassName()

ClassName ( "PatchEdgeFaceWave" )

Runtime type information.

References mesh().

Here is the call graph for this function:

◆ propagationTol()

scalar propagationTol ( )
inlinestaticnoexcept

Access to propagation tolerance.

Definition at line 140 of file PatchEdgeFaceWave.H.

References Foam::noexcept, and propagationTol_.

◆ setPropagationTol()

scalar setPropagationTol ( const scalar tol)
inlinestaticnoexcept

Change propagation tolerance, return previous value.

Definition at line 148 of file PatchEdgeFaceWave.H.

References propagationTol_.

◆ mesh()

const polyMesh & mesh ( ) const
inlinenoexcept

◆ nChangedEdges()

label nChangedEdges ( ) const
inlinenoexcept

Current number of changed edges.

Definition at line 166 of file PatchEdgeFaceWave.H.

References changedEdges_, and Foam::noexcept.

Referenced by PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::faceToEdge(), and PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::PatchEdgeFaceWave().

Here is the caller graph for this function:

◆ nChangedFaces()

label nChangedFaces ( ) const
inlinenoexcept

Current number of changed faces.

Definition at line 171 of file PatchEdgeFaceWave.H.

References changedFaces_, and Foam::noexcept.

Referenced by PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::edgeToFace(), and PatchEdgeFaceWave< PrimitivePatchType, Type, TrackingData >::PatchEdgeFaceWave().

Here is the caller graph for this function:

◆ nUnvisitedFaces()

label nUnvisitedFaces ( ) const
inlinenoexcept

Number of unvisited faces, i.e. faces that were not (yet) reached from walking across patch.

This can happen from

  • not enough iterations done
  • a disconnected patch
  • a patch without walls in it

Definition at line 183 of file PatchEdgeFaceWave.H.

References Foam::noexcept, and nUnvisitedFaces_.

◆ nUnvisitedEdges()

label nUnvisitedEdges ( ) const
inlinenoexcept

Definition at line 185 of file PatchEdgeFaceWave.H.

References Foam::noexcept, and nUnvisitedEdges_.

Member Data Documentation

◆ propagationTol_

Foam::scalar propagationTol_ = 0.01
staticprotected

Relative tolerance.

Stop propagation if relative changes less than this tolerance (responsibility for checking this is up to Type implementation)

Definition at line 67 of file PatchEdgeFaceWave.H.

Referenced by propagationTol(), and setPropagationTol().

◆ mesh_

◆ changedEdge_

◆ changedFace_

◆ changedEdges_

◆ changedFaces_

◆ nUnvisitedEdges_

◆ nUnvisitedFaces_

label nUnvisitedFaces_
protected

◆ dummyTrackData_

Foam::label dummyTrackData_ = 12345
static

Default trackData value (for default template argument).

Definition at line 113 of file PatchEdgeFaceWave.H.


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