OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

FaceCellWave< Type > Class Template Reference

Wave propagation of information through grid. Every iteration information goes through one layer of cells. Templated on information that is transferred. More...

Collaboration diagram for FaceCellWave< Type >:

List of all members.


Public Member Functions

 FaceCellWave (const polyMesh &, UList< Type > &allFaceInfo, UList< Type > &allCellInfo)
 FaceCellWave (const polyMesh &, const labelList &initialChangedFaces, const List< Type > &changedFacesInfo, UList< Type > &allFaceInfo, UList< Type > &allCellInfo, const label maxIter)
 Construct from mesh and list of changed faces with the Type.
UList< Type > & allFaceInfo ()
 Access allFaceInfo.
UList< Type > & allCellInfo ()
 Access allCellInfo.
const polyMesh & mesh () const
 Access mesh.
label getUnsetCells () const
 Get number of unvisited cells, i.e. cells that were not (yet).
label getUnsetFaces () const
 Get number of unvisited faces.
void setFaceInfo (const labelList &changedFaces, const List< Type > &changedFacesInfo)
 Set initial changed faces.
label faceToCell ()
 Propagate from face to cell. Returns total number of cells.
label cellToFace ()
 Propagate from cell to face. Returns total number of faces.
label iterate (const label maxIter)
 Iterate until no changes or maxIter reached. Returns number of.

Static Public Member Functions

static scalar propagationTol ()
 Access to tolerance.
static void setPropagationTol (const scalar tol)
 Change tolerance.

Detailed Description

template<class Type>
class Foam::FaceCellWave< Type >

Wave propagation of information through grid. Every iteration information goes through one layer of cells. Templated on information that is transferred.

Handles parallel and cyclics and non-parallel cyclics.

Note: whether to propagate depends on the return value of Type::update which returns true (i.e. propagate) if the value changes by more than a certain tolerance. This tolerance can be very strict for normal face-cell and parallel cyclics (we use a value of 0.01 just to limit propagation of small changes) but for non-parallel cyclics this tolerance can be critical and if chosen too small can lead to non-convergence.

Source files

Definition at line 70 of file FaceCellWave.H.


Constructor & Destructor Documentation

FaceCellWave ( const polyMesh &  mesh,
UList< Type > &  allFaceInfo,
UList< Type > &  allCellInfo 
) [inline]

Definition at line 790 of file FaceCellWave.C.

FaceCellWave ( const polyMesh &  mesh,
const labelList &  initialChangedFaces,
const List< Type > &  changedFacesInfo,
UList< Type > &  allFaceInfo,
UList< Type > &  allCellInfo,
const label  maxIter 
) [inline]

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 817 of file FaceCellWave.C.


Member Function Documentation

static scalar propagationTol (  )  [inline, static]

Access to tolerance.

Definition at line 279 of file FaceCellWave.H.

static void setPropagationTol ( const scalar  tol  )  [inline, static]

Change tolerance.

Definition at line 285 of file FaceCellWave.H.

UList<Type>& allFaceInfo (  )  [inline]

Access allFaceInfo.

Definition at line 323 of file FaceCellWave.H.

UList<Type>& allCellInfo (  )  [inline]

Access allCellInfo.

Definition at line 329 of file FaceCellWave.H.

const polyMesh& mesh (  )  const [inline]

Access mesh.

Definition at line 335 of file FaceCellWave.H.

Foam::label getUnsetCells (  )  const [inline]

Get 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 868 of file FaceCellWave.C.

Foam::label getUnsetFaces (  )  const [inline]

Get number of unvisited faces.

Definition at line 875 of file FaceCellWave.C.

void setFaceInfo ( const labelList &  changedFaces,
const List< Type > &  changedFacesInfo 
) [inline]

Set initial changed faces.

Definition at line 294 of file FaceCellWave.C.

Referenced by hexRef8::consistentSlowRefinement().

Here is the caller graph for this function:

Foam::label faceToCell (  )  [inline]

Propagate from face to cell. Returns total number of cells.

(over all processors) changed.

Definition at line 884 of file FaceCellWave.C.

Foam::label cellToFace (  )  [inline]

Propagate from cell to face. Returns total number of faces.

(over all processors) changed. (Faces on processorpatches are counted double)

Definition at line 969 of file FaceCellWave.C.

Foam::label iterate ( const label  maxIter  )  [inline]

Iterate until no changes or maxIter reached. Returns number of.

unset cells (see getUnsetCells)

Definition at line 1045 of file FaceCellWave.C.

Referenced by hexRef8::consistentSlowRefinement().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd