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

patchWave Class Reference

Takes a set of patches to start MeshWave from. After construction holds distance at cells and distance at patches. Is e.g. used by wallDist to construct volScalarField with correct distance to wall. More...

Inheritance diagram for patchWave:
Collaboration diagram for patchWave:

List of all members.


Public Member Functions

 patchWave (const polyMesh &mesh, const labelHashSet &patchIDs, bool correctWalls=true)
 Construct from mesh and patches to initialize to 0 and flag.
virtual ~patchWave ()
virtual void correct ()
 Correct for mesh geom/topo changes.
label nUnset () const
const scalarField & distance () const
scalarField & distance ()
 Non const access so we can 'transfer' contents for efficiency.
const FieldField< Field, scalar > & patchDistance () const
FieldField< Field, scalar > & patchDistance ()

Detailed Description

Takes a set of patches to start MeshWave from. After construction holds distance at cells and distance at patches. Is e.g. used by wallDist to construct volScalarField with correct distance to wall.

Source files

Definition at line 53 of file patchWave.H.


Constructor & Destructor Documentation

patchWave ( const polyMesh &  mesh,
const labelHashSet &  patchIDs,
bool  correctWalls = true 
)

Construct from mesh and patches to initialize to 0 and flag.

whether or not to correct wall. Calculate for all cells. correctWalls : correct wall (face&point) cells for correct distance, searching neighbours.

Definition at line 129 of file patchWave.C.

~patchWave (  )  [virtual]

Definition at line 148 of file patchWave.C.

References patchWave::correct().

Here is the call graph for this function:


Member Function Documentation

void correct (  )  [virtual]

Correct for mesh geom/topo changes.

Definition at line 156 of file patchWave.C.

Referenced by patchWave::~patchWave().

Here is the caller graph for this function:

label nUnset (  )  const [inline]

Definition at line 124 of file patchWave.H.

const scalarField& distance (  )  const [inline]

Definition at line 129 of file patchWave.H.

scalarField& distance (  )  [inline]

Non const access so we can 'transfer' contents for efficiency.

Definition at line 135 of file patchWave.H.

const FieldField<Field, scalar>& patchDistance (  )  const [inline]

Definition at line 140 of file patchWave.H.

FieldField<Field, scalar>& patchDistance (  )  [inline]

Definition at line 145 of file patchWave.H.


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