Inverse-distance-weighted interpolation stencil. More...
Protected Member Functions | |
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< globalIndex > | compactedRegionSplit (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 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 labelList | count (const label size, const labelUList &lst) |
template<class Type > | |
static tmp< volScalarField > | createField (const fvMesh &mesh, const word &name, const UList< Type > &) |
Protected Attributes | |
const dictionary | dict_ |
vector | smallVec_ |
labelList | cellTypes_ |
labelList | interpolationCells_ |
autoPtr< mapDistribute > | cellInterpolationMap_ |
labelListList | cellStencil_ |
scalarListList | cellInterpolationWeights_ |
volScalarField | cellInterpolationWeight_ |
![]() | |
const fvMesh & | mesh_ |
wordHashSet | nonInterpolatedFields_ |
Additional Inherited Members | |
![]() | |
enum | patchCellType { OTHER = 0, PATCH = 1, OVERSET = 2 } |
enum | cellType { CALCULATED = 0, INTERPOLATED = 1, HOLE = 2 } |
![]() | |
static autoPtr< cellCellStencil > | New (const fvMesh &, const dictionary &dict, const bool update=true) |
static const labelIOList & | zoneID (const fvMesh &) |
static void | globalCellCells (const globalIndex &gi, const polyMesh &mesh, const boolList &isValidDonor, const labelList &selectedCells, labelListList &cellCells, pointListList &cellCellCentres) |
![]() | |
static const Enum< cellType > | cellTypeNames_ |
Inverse-distance-weighted interpolation stencil.
Definition at line 63 of file inverseDistanceCellCellStencil.H.
inverseDistance | ( | const fvMesh & | mesh, |
const dictionary & | dict, | ||
const bool | doUpdate | ||
) |
Definition at line 1651 of file inverseDistanceCellCellStencil.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Pout, IOobject::typeHeaderOk(), update(), and zoneID.
|
virtual |
Definition at line 1731 of file inverseDistanceCellCellStencil.C.
|
staticprotected |
Definition at line 53 of file inverseDistanceCellCellStencil.C.
|
staticprotected |
Definition at line 63 of file inverseDistanceCellCellStencil.C.
References k.
|
staticprotected |
Definition at line 78 of file inverseDistanceCellCellStencil.C.
References boundBox::min(), and boundBox::span().
|
staticprotected |
Definition at line 97 of file inverseDistanceCellCellStencil.C.
References boundBox::min(), and boundBox::span().
|
staticprotected |
Definition at line 114 of file inverseDistanceCellCellStencil.C.
References k, boundBox::max(), Foam::max(), boundBox::min(), and Foam::min().
|
staticprotected |
Definition at line 264 of file inverseDistanceCellCellStencil.C.
References k, boundBox::max(), Foam::max(), boundBox::min(), and Foam::min().
|
staticprotected |
Definition at line 152 of file inverseDistanceCellCellStencil.C.
References fvPatch::faceCells(), forAll, boundBox::max(), mesh, boundBox::min(), boundBox::overlaps(), fvPatch::patch(), patchTypes(), and PrimitivePatch< FaceList, PointField >::points().
|
staticprotected |
Definition at line 230 of file inverseDistanceCellCellStencil.C.
References cells, f(), forAll, boundBox::max(), Foam::max(), mesh, boundBox::min(), Foam::min(), p, and points.
|
protected |
Definition at line 308 of file inverseDistanceCellCellStencil.C.
References PstreamBuffers::clear(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, PstreamBuffers::finishedSends(), forAll, boundBox::max(), meshParts(), boundBox::min(), os(), and treeBoundBox::overlaps().
|
protected |
Definition at line 434 of file inverseDistanceCellCellStencil.C.
References Foam::mag().
|
protected |
Definition at line 476 of file inverseDistanceCellCellStencil.C.
References Foam::abort(), List::append(), DynamicList::append(), primitiveMesh::cellCentres(), PstreamBuffers::clear(), Foam::FatalError, FatalErrorInFunction, polyMesh::findCell(), PstreamBuffers::finishedSends(), forAll, boundBox::max(), meshBb(), meshParts(), boundBox::min(), primitiveMesh::nCells(), os(), treeBoundBox::overlaps(), samples(), List::setSize(), polyMesh::tetBasePtIs(), and globalIndex::toGlobal().
|
protected |
|
protected |
|
protected |
Definition at line 938 of file inverseDistanceCellCellStencil.C.
References cellTypes, DebugInfo, mapDistribute::distribute(), Foam::endl(), fvPatch::faceCells(), Foam::findIndices(), forAll, FUNCTION_NAME, mesh, regionSplit::nRegions(), reduce(), and Foam::Zero.
|
protected |
Definition at line 1220 of file inverseDistanceCellCellStencil.C.
References forAll, and bitSet::set().
|
protected |
Definition at line 1241 of file inverseDistanceCellCellStencil.C.
References bitSet::any(), fvBoundaryMesh::faceCells(), forAll, Foam::returnReduce(), bitSet::set(), bitSet::test(), bitSet::transfer(), and Foam::Zero.
|
protectedvirtual |
Definition at line 1463 of file inverseDistanceCellCellStencil.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, nSamples(), Foam::returnReduce(), samples(), bitSet::set(), and List::transfer().
TypeName | ( | "inverseDistance" | ) |
|
virtual |
Implements cellCellStencil.
Reimplemented in trackingInverseDistance.
Definition at line 1737 of file inverseDistanceCellCellStencil.C.
References DynamicList::append(), Foam::cbrt(), List::clear(), dynamicOversetFvMesh::correctBoundaryConditions(), Foam::BitOps::count(), Foam::expressions::patchExpr::debug, Foam::decrIndent(), Foam::constant::electromagnetic::e, Foam::endl(), forAll, Pstream::gatherList(), Foam::gMax(), Foam::incrIndent(), Foam::indent(), Foam::Info, Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::mag(), meshBb(), meshParts(), boundBox::min(), Foam::mkDir(), UPstream::myProcNo(), OFstream::name(), Foam::name(), nCellsPerZone(), polyMesh::nGeometricD(), Foam::nl, UPstream::nonBlocking, primitiveMesh::nPoints(), UPstream::nProcs(), nZones, polyMesh::points(), Foam::Pout, Foam::reduce(), tmp::ref(), Foam::returnReduce(), Pstream::scatterList(), PtrList::set(), List::setSize(), boundBox::span(), Foam::sqrt(), List::transfer(), Foam::type(), OBJstream::write(), oversetFvPatchField< Type >::write(), Foam::Zero, and zoneID.
Referenced by inverseDistance::cellInterpolationMap().
|
inlinevirtual |
Implements cellCellStencil.
Definition at line 288 of file inverseDistanceCellCellStencil.H.
References inverseDistance::cellTypes_.
|
inlinevirtual |
Implements cellCellStencil.
Definition at line 294 of file inverseDistanceCellCellStencil.H.
References inverseDistance::interpolationCells_.
|
inlinevirtual |
Implements cellCellStencil.
Definition at line 300 of file inverseDistanceCellCellStencil.H.
References inverseDistance::cellInterpolationMap_, and inverseDistance::update().
|
inlinevirtual |
Implements cellCellStencil.
Definition at line 311 of file inverseDistanceCellCellStencil.H.
References inverseDistance::cellStencil_.
|
inlinevirtual |
Implements cellCellStencil.
Definition at line 317 of file inverseDistanceCellCellStencil.H.
References inverseDistance::cellInterpolationWeights_.
|
inlinevirtual |
Implements cellCellStencil.
Definition at line 324 of file inverseDistanceCellCellStencil.H.
References inverseDistance::cellInterpolationWeight_.
|
virtual |
Implements cellCellStencil.
Reimplemented in leastSquares.
Definition at line 1428 of file inverseDistanceCellCellStencil.C.
References forAll, Foam::mag(), List::setSize(), and Foam::sum().
|
protected |
Definition at line 72 of file inverseDistanceCellCellStencil.H.
|
protected |
Definition at line 75 of file inverseDistanceCellCellStencil.H.
|
protected |
Definition at line 78 of file inverseDistanceCellCellStencil.H.
Referenced by inverseDistance::cellTypes().
|
protected |
Definition at line 81 of file inverseDistanceCellCellStencil.H.
Referenced by inverseDistance::interpolationCells().
|
protected |
Definition at line 84 of file inverseDistanceCellCellStencil.H.
Referenced by inverseDistance::cellInterpolationMap().
|
protected |
Definition at line 87 of file inverseDistanceCellCellStencil.H.
Referenced by inverseDistance::cellStencil().
|
protected |
Definition at line 90 of file inverseDistanceCellCellStencil.H.
Referenced by inverseDistance::cellInterpolationWeights().
|
protected |
Definition at line 93 of file inverseDistanceCellCellStencil.H.
Referenced by inverseDistance::cellInterpolationWeight().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.