FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

patchDataWave< TransferType > Class Template Reference

Takes a set of patches to start MeshWave from. More...

#include <meshTools/patchDataWave.H>


Detailed Description

template<class TransferType>
class Foam::patchDataWave< TransferType >

Takes a set of patches to start MeshWave from.

Holds after construction distance at cells and distance at patches (like patchWave), but also additional transported data. It is used, for example, in the y+ calculation.

See also:
The patchWave class.
Source files

Definition at line 64 of file patchDataWave.H.

Inheritance diagram for patchDataWave< TransferType >:
Collaboration diagram for patchDataWave< TransferType >:

List of all members.

Public Member Functions

 patchDataWave (const polyMesh &mesh, const labelHashSet &patchIDs, const UPtrList< Field< Type > > &initialPatchValuePtrs, bool correctWalls=true)
 Construct from mesh, information on patches to initialize and flag.
virtual  ~patchDataWave ()
virtual void  correct ()
 Correct for mesh geom/topo changes.
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 ()
const Field< Type > &  cellData () const
Field< Type > &  cellData ()
const FieldField< Field, Type > &  patchData () const
FieldField< Field, Type > &  patchData ()
label  nUnset () const

Constructor & Destructor Documentation

patchDataWave ( const polyMesh &   mesh,
const labelHashSet &   patchIDs,
const UPtrList< Field< Type > > &   initialPatchValuePtrs,
bool   correctWalls = true  
)

Construct from mesh, information on patches to initialize 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 172 of file patchDataWave.C.

References correct().

~patchDataWave (  ) [virtual]

Definition at line 196 of file patchDataWave.C.


Member Function Documentation

void correct (  ) [virtual]

Correct for mesh geom/topo changes.

Definition at line 204 of file patchDataWave.C.

References MeshWave< Type >::allFaceInfo(), UList< T >::data(), forAll, mesh, and HashTable< T, Key, Hash >::toc().

const scalarField& distance (  ) const [inline]

Definition at line 147 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct().

scalarField& distance (  ) [inline]

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

Definition at line 153 of file patchDataWave.H.

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

Definition at line 158 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct().

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

Definition at line 163 of file patchDataWave.H.

const Field<Type>& cellData (  ) const [inline]

Definition at line 168 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct().

Field<Type>& cellData (  ) [inline]

Definition at line 173 of file patchDataWave.H.

const FieldField<Field, Type>& patchData (  ) const [inline]

Definition at line 178 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct().

FieldField<Field, Type>& patchData (  ) [inline]

Definition at line 183 of file patchDataWave.H.

label nUnset (  ) const [inline]

Definition at line 188 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct().


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