Cell-volume-weighted mesh-to-mesh interpolation class. More...
Public Member Functions | |
TypeName ("cellVolumeWeight") | |
cellVolumeWeightMethod (const polyMesh &src, const polyMesh &tgt) | |
virtual | ~cellVolumeWeightMethod () |
virtual void | calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec) |
![]() | |
TypeName ("meshToMeshMethod") | |
declareRunTimeSelectionTable (autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt)) | |
meshToMeshMethod (const polyMesh &src, const polyMesh &tgt) | |
virtual | ~meshToMeshMethod () |
const polyMesh & | src () const |
const polyMesh & | tgt () const |
scalar | V () const |
void | writeConnectivity (const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const |
Protected Member Functions | |
bool | findInitialSeeds (const labelList &srcCellIDs, const boolList &mapFlag, const label startSeedI, label &srcSeedI, label &tgtSeedI) const |
void | calculateAddressing (labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI) |
void | setNextCells (label &startSeedI, label &srcCelli, label &tgtCelli, const labelList &srcCellIDs, const boolList &mapFlag, const DynamicList< label > &visitedCells, labelList &seedCells) const |
![]() | |
labelList | maskCells () const |
virtual bool | intersect (const label srcCelli, const label tgtCelli) const |
virtual scalar | interVol (const label srcCelli, const label tgtCelli) const |
virtual Tuple2< scalar, point > | interVolAndCentroid (const label srcCellI, const label tgtCellI) |
virtual void | appendNbrCells (const label tgtCelli, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const |
virtual bool | initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const |
Additional Inherited Members | |
![]() | |
static autoPtr< meshToMeshMethod > | New (const word &methodName, const polyMesh &src, const polyMesh &tgt) |
![]() | |
const polyMesh & | src_ |
const polyMesh & | tgt_ |
scalar | V_ |
![]() | |
static scalar | tolerance_ = 1e-6 |
Cell-volume-weighted mesh-to-mesh interpolation class.
Definition at line 48 of file cellVolumeWeightMethod.H.
cellVolumeWeightMethod | ( | const polyMesh & | src, |
const polyMesh & | tgt | ||
) |
Definition at line 329 of file cellVolumeWeightMethod.C.
|
virtual |
Definition at line 340 of file cellVolumeWeightMethod.C.
|
protected |
Definition at line 43 of file cellVolumeWeightMethod.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), points, and Foam::Pout.
|
protected |
Definition at line 88 of file cellVolumeWeightMethod.C.
References List::append(), DynamicList::append(), DynamicList::clear(), Foam::expressions::patchExpr::debug, Foam::constant::electromagnetic::e, Foam::endl(), forAll, Foam::mag(), DynamicList::remove(), Foam::sum(), List::transfer(), and WarningInFunction.
|
protected |
Definition at line 225 of file cellVolumeWeightMethod.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, and Foam::Pout.
TypeName | ( | "cellVolumeWeight" | ) |
|
virtual |
Implements meshToMeshMethod.
Reimplemented in correctedCellVolumeWeightMethod.
Definition at line 347 of file cellVolumeWeightMethod.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.