Loading...
Searching...
No Matches
PointEdgeWaveBase Class Reference

#include <PointEdgeWave.H>

Inheritance diagram for PointEdgeWaveBase:
Collaboration diagram for PointEdgeWaveBase:

Public Member Functions

 ClassName ("PointEdgeWave")
 Runtime type information.
 PointEdgeWaveBase (const polyMesh &mesh)
 Construct with mesh reference and set initial sizes.
const polyMeshmesh () const noexcept
 Return access to the mesh.
label nChangedPoints () const noexcept
 Current number of changed points.
label nChangedEdges () const noexcept
 Current number of changed edges.
label nUnvisitedEdges () const noexcept
 Number of unvisited edges, i.e. edges that were not (yet) reached from walking across mesh.
label nUnvisitedPoints () const noexcept
 Get number of unvisited points.

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 int dummyTrackData_ = 12345
 Default trackData value (for default template argument).

Protected Attributes

const polyMeshmesh_
 Reference to mesh.
PstreamBuffers pBufs_
 Buffers when updating processor patches.
bitSet changedPoint_
 Track if point has changed.
bitSet changedEdge_
 Track if edge has changed.
DynamicList< label > changedPoints_
 List of changed points.
DynamicList< label > changedEdges_
 List of changed edges.
label nUnvisitedPoints_
 Number of unvisited points.
label nUnvisitedEdges_
 Number of unvisited edges.

Static Protected Attributes

static scalar propagationTol_ = 0.01
 Relative tolerance.

Detailed Description

Definition at line 77 of file PointEdgeWave.H.

Constructor & Destructor Documentation

◆ PointEdgeWaveBase()

PointEdgeWaveBase ( const polyMesh & mesh)
explicit

Construct with mesh reference and set initial sizes.

Definition at line 40 of file PointEdgeWaveBase.C.

References changedEdge_, changedEdges_, changedPoint_, changedPoints_, mesh(), mesh_, nPoints, nUnvisitedEdges_, nUnvisitedPoints_, and pBufs_.

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

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

Member Function Documentation

◆ ClassName()

ClassName ( "PointEdgeWave" )

Runtime type information.

References mesh().

Here is the call graph for this function:

◆ propagationTol()

scalar propagationTol ( )
inlinestaticnoexcept

Access to propagation tolerance.

Definition at line 162 of file PointEdgeWave.H.

References Foam::noexcept, and propagationTol_.

◆ setPropagationTol()

scalar setPropagationTol ( const scalar tol)
inlinestaticnoexcept

Change propagation tolerance, return previous value.

Definition at line 170 of file PointEdgeWave.H.

References propagationTol_.

◆ mesh()

const polyMesh & mesh ( ) const
inlinenoexcept

Return access to the mesh.

Definition at line 183 of file PointEdgeWave.H.

References mesh_, and Foam::noexcept.

Referenced by ClassName(), PointEdgeWave< Type, TrackingData >::PointEdgeWave(), PointEdgeWave< Type, TrackingData >::PointEdgeWave(), and PointEdgeWaveBase().

Here is the caller graph for this function:

◆ nChangedPoints()

label nChangedPoints ( ) const
inlinenoexcept

Current number of changed points.

Definition at line 188 of file PointEdgeWave.H.

References changedPoints_, and Foam::noexcept.

Referenced by PointEdgeWave< Type, TrackingData >::edgeToPoint(), and PointEdgeWave< Type, TrackingData >::PointEdgeWave().

Here is the caller graph for this function:

◆ nChangedEdges()

label nChangedEdges ( ) const
inlinenoexcept

Current number of changed edges.

Definition at line 193 of file PointEdgeWave.H.

References changedEdges_, and Foam::noexcept.

Referenced by PointEdgeWave< Type, TrackingData >::PointEdgeWave(), and PointEdgeWave< Type, TrackingData >::pointToEdge().

Here is the caller graph for this function:

◆ nUnvisitedEdges()

label nUnvisitedEdges ( ) const
inlinenoexcept

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

This can happen from

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

Definition at line 204 of file PointEdgeWave.H.

References Foam::noexcept, and nUnvisitedEdges_.

◆ nUnvisitedPoints()

label nUnvisitedPoints ( ) const
inlinenoexcept

Get number of unvisited points.

Definition at line 209 of file PointEdgeWave.H.

References Foam::noexcept, and nUnvisitedPoints_.

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 89 of file PointEdgeWave.H.

Referenced by propagationTol(), and setPropagationTol().

◆ mesh_

◆ pBufs_

PstreamBuffers pBufs_
protected

Buffers when updating processor patches.

Definition at line 102 of file PointEdgeWave.H.

Referenced by PointEdgeWaveBase().

◆ changedPoint_

bitSet changedPoint_
protected

◆ changedEdge_

bitSet changedEdge_
protected

Track if edge has changed.

Definition at line 112 of file PointEdgeWave.H.

Referenced by PointEdgeWave< Type, TrackingData >::edgeToPoint(), and PointEdgeWaveBase().

◆ changedPoints_

◆ changedEdges_

DynamicList<label> changedEdges_
protected

List of changed edges.

Definition at line 122 of file PointEdgeWave.H.

Referenced by PointEdgeWave< Type, TrackingData >::edgeToPoint(), nChangedEdges(), and PointEdgeWaveBase().

◆ nUnvisitedPoints_

label nUnvisitedPoints_
protected

◆ nUnvisitedEdges_

label nUnvisitedEdges_
protected

Number of unvisited edges.

Definition at line 132 of file PointEdgeWave.H.

Referenced by PointEdgeWave< Type, TrackingData >::iterate(), nUnvisitedEdges(), and PointEdgeWaveBase().

◆ dummyTrackData_

int dummyTrackData_ = 12345
static

Default trackData value (for default template argument).

Definition at line 140 of file PointEdgeWave.H.


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