OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

PointEdgeWave Class Template Reference

Collaboration diagram for PointEdgeWave:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Type>
class Foam::PointEdgeWave< Type >

Definition at line 97 of file PointEdgeWave.H.


Public Member Functions

 PointEdgeWave (const pointMesh &pMesh, const labelList &initialPoints, const List< Type > &initialPointsInfo, List< Type > &allPointInfo, List< Type > &allEdgeInfo, const label maxIter)
 Construct from mesh, list of changed points with the Type.
 ~PointEdgeWave ()
const List< Type > & allPointInfo () const
 Get allPointInfo.
const List< Type > & allEdgeInfo () const
 Get allEdgeInfo.
label getUnsetEdges () const
 Get number of unvisited edges, i.e. edges that were not (yet).
label getUnsetPoints () const
void setPointInfo (const labelList &changedPoints, const List< Type > &changedPointsInfo)
 Copy initial data into allPointInfo_.
label pointToEdge ()
 Propagate from point to edge. Returns total number of edges.
label edgeToPoint ()
 Propagate from edge to point. Returns total number of points.
label iterate (const label maxIter)
 Iterate until no changes or maxIter reached. Returns actual.

Static Public Member Functions

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

Constructor & Destructor Documentation

PointEdgeWave ( const pointMesh &  pMesh,
const labelList &  initialPoints,
const List< Type > &  initialPointsInfo,
List< Type > &  allPointInfo,
List< Type > &  allEdgeInfo,
const label  maxIter 
)

Construct from mesh, list of changed points with the Type.

for these points. Gets work arrays to operate on, one of size number of mesh points, the other number of mesh edges. Iterates until nothing changes or maxIter reached. (maxIter can be 0)

~PointEdgeWave (  ) 


Member Function Documentation

static scalar propagationTol (  )  [inline, static]

Access to tolerance.

Definition at line 269 of file PointEdgeWave.H.

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

Change tolerance.

Definition at line 275 of file PointEdgeWave.H.

const List<Type>& allPointInfo (  )  const [inline]

Get allPointInfo.

Definition at line 310 of file PointEdgeWave.H.

const List<Type>& allEdgeInfo (  )  const [inline]

Get allEdgeInfo.

Definition at line 316 of file PointEdgeWave.H.

label getUnsetEdges (  )  const

Get 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

label getUnsetPoints (  )  const

void setPointInfo ( const labelList &  changedPoints,
const List< Type > &  changedPointsInfo 
)

Copy initial data into allPointInfo_.

label pointToEdge (  ) 

Propagate from point to edge. Returns total number of edges.

(over all processors) changed.

label edgeToPoint (  ) 

Propagate from edge to point. Returns total number of points.

(over all processors) changed.

label iterate ( const label  maxIter  ) 

Iterate until no changes or maxIter reached. Returns actual.

number of iterations.


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