Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
trackingInverseDistance Class Reference

Inverse-distance-weighted interpolation stencil. More...

Inheritance diagram for trackingInverseDistance:
Inheritance graph
[legend]
Collaboration diagram for trackingInverseDistance:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("trackingInverseDistance")
 
 trackingInverseDistance (const fvMesh &, const dictionary &, const bool)
 
virtual ~trackingInverseDistance ()
 
virtual bool update ()
 
- Public Member Functions inherited from inverseDistance
 TypeName ("inverseDistance")
 
 inverseDistance (const fvMesh &, const dictionary &, const bool)
 
virtual ~inverseDistance ()
 
virtual const labelUListcellTypes () const
 
virtual const labelUListinterpolationCells () const
 
virtual const mapDistributecellInterpolationMap () const
 
virtual const labelListListcellStencil () const
 
virtual const scalarListListcellInterpolationWeights () const
 
virtual const scalarListcellInterpolationWeight () const
 
virtual void stencilWeights (const point &sample, const pointList &donorCcs, scalarList &weights) const
 
- Public Member Functions inherited from cellCellStencil
 TypeName ("cellCellStencil")
 
 declareRunTimeSelectionTable (autoPtr, cellCellStencil, mesh,(const fvMesh &mesh, const dictionary &dict, const bool update),(mesh, dict, update))
 
 cellCellStencil (const fvMesh &)
 
virtual ~cellCellStencil ()
 
virtual const wordHashSetnonInterpolatedFields () const
 
virtual wordHashSetnonInterpolatedFields ()
 
bool localStencil (const labelUList &) const
 
const labelIOListzoneID () const
 
template<class Type >
Foam::tmp< Foam::volScalarFieldcreateField (const fvMesh &mesh, const word &name, const UList< Type > &psi)
 

Protected Member Functions

void markPatchesAsHoles (PstreamBuffers &pBufs, const List< treeBoundBoxList > &patchBb, const List< labelVector > &patchDivisions, const PtrList< PackedList< 2 >> &patchParts, const label srcI, const label tgtI, labelList &allCellTypes) const
 
void markDonors (PstreamBuffers &pBufs, const List< treeBoundBoxList > &meshBb, const PtrList< voxelMeshSearch > &meshSearches, const labelList &allCellTypes, const label srcI, const label tgtI, labelListList &allStencil, labelList &allDonor) const
 
- Protected Member Functions inherited from inverseDistance
void markPatchesAsHoles (PstreamBuffers &pBufs, const PtrList< fvMeshSubset > &meshParts, const List< treeBoundBoxList > &patchBb, const List< labelVector > &patchDivisions, const PtrList< PackedList< 2 >> &patchParts, const label srcI, const label tgtI, labelList &allCellTypes) const
 
bool betterDonor (const label destMesh, const label currentDonorMesh, const label newDonorMesh) const
 
void markDonors (const globalIndex &globalCells, PstreamBuffers &pBufs, const PtrList< fvMeshSubset > &meshParts, const List< treeBoundBoxList > &meshBb, const labelList &allCellTypes, const label srcI, const label tgtI, labelListList &allStencil, labelList &allDonor) const
 
void uncompactedRegionSplit (const fvMesh &mesh, const globalIndex &globalFaces, const label nZones, const labelList &zoneID, const labelList &cellTypes, const boolList &isBlockedFace, labelList &cellRegion) const
 
autoPtr< globalIndexcompactedRegionSplit (const fvMesh &mesh, const globalIndex &globalFaces, labelList &cellRegion) const
 
void findHoles (const globalIndex &globalCells, const fvMesh &mesh, const labelList &zoneID, const labelListList &stencil, labelList &cellTypes) const
 
void seedCell (const label cellI, const scalar wantedFraction, bitSet &isFront, scalarField &fraction) const
 
void walkFront (const scalar layerRelax, const labelListList &allStencil, labelList &allCellTypes, scalarField &allWeight) const
 
virtual void createStencil (const globalIndex &)
 

Static Protected Member Functions

static bool markBoundaries (const fvMesh &mesh, const vector &smallVec, const boundBox &bb, labelVector &nDivs, PackedList< 2 > &patchTypes, const labelList &cellMap, labelList &patchCellTypes)
 
- Static Protected Member Functions inherited from inverseDistance
static label index (const labelVector &nDivs, const labelVector &)
 
static labelVector index3 (const labelVector &nDivs, const label)
 
static labelVector index3 (const boundBox &bb, const labelVector &nDivs, const point &pt)
 
static point position (const boundBox &bb, const labelVector &nDivs, const label boxI)
 
static void fill (PackedList< 2 > &elems, const boundBox &bb, const labelVector &nDivs, const boundBox &subBb, const unsigned int val)
 
static bool overlaps (const boundBox &bb, const labelVector &nDivs, const PackedList< 2 > &voxels, const treeBoundBox &subBb, const unsigned int val)
 
static void markBoundaries (const fvMesh &mesh, const vector &smallVec, const boundBox &bb, const labelVector &nDivs, PackedList< 2 > &patchTypes, const labelList &cellMap, labelList &patchCellTypes)
 
static treeBoundBox cellBb (const primitiveMesh &mesh, const label celli)
 
- Static Protected Member Functions inherited from cellCellStencil
static labelList count (const label size, const labelUList &lst)
 
template<class Type >
static tmp< volScalarFieldcreateField (const fvMesh &mesh, const word &name, const UList< Type > &)
 

Protected Attributes

globalIndex globalCells_
 
labelList globalDonor_
 
PtrList< fvMeshSubsetmeshParts_
 
- Protected Attributes inherited from inverseDistance
const dictionary dict_
 
vector smallVec_
 
labelList cellTypes_
 
labelList interpolationCells_
 
autoPtr< mapDistributecellInterpolationMap_
 
labelListList cellStencil_
 
scalarListList cellInterpolationWeights_
 
volScalarField cellInterpolationWeight_
 
- Protected Attributes inherited from cellCellStencil
const fvMeshmesh_
 
wordHashSet nonInterpolatedFields_
 

Additional Inherited Members

- Public Types inherited from cellCellStencil
enum  patchCellType { OTHER = 0, PATCH = 1, OVERSET = 2 }
 
enum  cellType { CALCULATED = 0, INTERPOLATED = 1, HOLE = 2 }
 
- Static Public Member Functions inherited from cellCellStencil
static autoPtr< cellCellStencilNew (const fvMesh &, const dictionary &dict, const bool update=true)
 
static const labelIOListzoneID (const fvMesh &)
 
static void globalCellCells (const globalIndex &gi, const polyMesh &mesh, const boolList &isValidDonor, const labelList &selectedCells, labelListList &cellCells, pointListList &cellCellCentres)
 
- Static Protected Attributes inherited from cellCellStencil
static const Enum< cellTypecellTypeNames_
 

Detailed Description

Inverse-distance-weighted interpolation stencil.

Source files

Definition at line 52 of file trackingInverseDistanceCellCellStencil.H.

Constructor & Destructor Documentation

◆ trackingInverseDistance()

trackingInverseDistance ( const fvMesh mesh,
const dictionary dict,
const bool  doUpdate 
)

◆ ~trackingInverseDistance()

Definition at line 556 of file trackingInverseDistanceCellCellStencil.C.

Member Function Documentation

◆ markBoundaries()

bool markBoundaries ( const fvMesh mesh,
const vector smallVec,
const boundBox bb,
labelVector nDivs,
PackedList< 2 > &  patchTypes,
const labelList cellMap,
labelList patchCellTypes 
)
staticprotected

◆ markPatchesAsHoles()

void markPatchesAsHoles ( PstreamBuffers pBufs,
const List< treeBoundBoxList > &  patchBb,
const List< labelVector > &  patchDivisions,
const PtrList< PackedList< 2 >> &  patchParts,
const label  srcI,
const label  tgtI,
labelList allCellTypes 
) const
protected

◆ markDonors()

void markDonors ( PstreamBuffers pBufs,
const List< treeBoundBoxList > &  meshBb,
const PtrList< voxelMeshSearch > &  meshSearches,
const labelList allCellTypes,
const label  srcI,
const label  tgtI,
labelListList allStencil,
labelList allDonor 
) const
protected

◆ TypeName()

TypeName ( "trackingInverseDistance"  )

◆ update()

bool update ( )
virtual

Member Data Documentation

◆ globalCells_

globalIndex globalCells_
protected

Definition at line 61 of file trackingInverseDistanceCellCellStencil.H.

◆ globalDonor_

labelList globalDonor_
protected

Definition at line 64 of file trackingInverseDistanceCellCellStencil.H.

◆ meshParts_

PtrList<fvMeshSubset> meshParts_
protected

Definition at line 67 of file trackingInverseDistanceCellCellStencil.H.


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