MeshWave< Type, TrackingData > Class Template Reference

FaceCellWave plus data. More...

Inheritance diagram for MeshWave< Type, TrackingData >:
[legend]
Collaboration diagram for MeshWave< Type, TrackingData >:
[legend]

Public Member Functions

 MeshWave (const polyMesh &mesh, const labelList &initialChangedFaces, const List< Type > &changedFacesInfo, const label maxIter, TrackingData &td=dummyTrackData_)
 
 MeshWave (const polyMesh &mesh, const labelList &initialChangedFaces, const List< Type > &changedFacesInfo, const List< Type > &allCellInfo, const label maxIter, TrackingData &td=dummyTrackData_)
 
const List< Type > & allFaceInfo () const
 Get allFaceInfo. More...
 
const List< Type > & allCellInfo () const
 Get allCellInfo. More...
 
const TrackingData & data () const
 Additional data to be passed into container. More...
 
label iterate (const label maxIter)
 Iterate until no changes or maxIter reached. More...
 
label nUnvisitedCells () const
 
label nUnvisitedFaces () const
 Number of unvisited faces. More...
 

Detailed Description

template<class Type, class TrackingData = int>
class Foam::MeshWave< Type, TrackingData >

FaceCellWave plus data.

Source files

Definition at line 59 of file MeshWave.H.

Constructor & Destructor Documentation

◆ MeshWave() [1/2]

MeshWave ( const polyMesh mesh,
const labelList initialChangedFaces,
const List< Type > &  changedFacesInfo,
const label  maxIter,
TrackingData &  td = dummyTrackData_ 
)

Construct from mesh and list of changed faces with the Type for these faces.

Iterates until nothing changes or maxIter reached. (maxIter can be 0)

Definition at line 44 of file MeshWave.C.

◆ MeshWave() [2/2]

MeshWave ( const polyMesh mesh,
const labelList initialChangedFaces,
const List< Type > &  changedFacesInfo,
const List< Type > &  allCellInfo,
const label  maxIter,
TrackingData &  td = dummyTrackData_ 
)

Construct from mesh, list of changed faces with the Type for these faces and initial field.

Iterates until nothing changes or maxIter reached. (maxIter can be 0)

Definition at line 71 of file MeshWave.C.

Member Function Documentation

◆ allFaceInfo()

const List<Type>& allFaceInfo ( ) const
inline

Get allFaceInfo.

Definition at line 125 of file MeshWave.H.

Referenced by inverseFaceDistanceDiffusivity::correct(), patchDataWave< TransferType, TrackingData >::correct(), and wallLayerCells::wallLayerCells().

Here is the caller graph for this function:

◆ allCellInfo()

const List<Type>& allCellInfo ( ) const
inline

Get allCellInfo.

Definition at line 131 of file MeshWave.H.

Referenced by inverseFaceDistanceDiffusivity::correct(), and wallLayerCells::wallLayerCells().

Here is the caller graph for this function:

◆ data()

const TrackingData& data ( ) const
inline

Additional data to be passed into container.

Definition at line 137 of file MeshWave.H.

References FaceCellWave< Type, TrackingData >::data().

Referenced by wallLayerCells::wallLayerCells().

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

◆ iterate()

label iterate ( const label  maxIter)
inline

Iterate until no changes or maxIter reached.

Returns
actual number of iterations.

Definition at line 144 of file MeshWave.H.

Referenced by wallLayerCells::wallLayerCells().

Here is the caller graph for this function:

◆ nUnvisitedCells()

label nUnvisitedCells ( ) const
inline

Number of unvisited cells, i.e. cells 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 156 of file MeshWave.H.

◆ nUnvisitedFaces()

label nUnvisitedFaces ( ) const
inline

Number of unvisited faces.

Definition at line 162 of file MeshWave.H.

References FaceCellWave< Type, TrackingData >::nUnvisitedFaces().

Here is the call graph for this function:

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