Direct (one-to-one cell correspondence) mesh-to-mesh interpolation class. More...
Public Member Functions | |
TypeName ("direct") | |
Run-time type information. More... | |
directMethod (const polyMesh &src, const polyMesh &tgt) | |
Construct from source and target meshes. More... | |
virtual | ~directMethod () |
Destructor. More... | |
virtual void | calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec) |
Calculate addressing and weights and optionally offset vectors. More... | |
![]() | |
TypeName ("meshToMeshMethod") | |
Run-time type information. More... | |
declareRunTimeSelectionTable (autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt)) | |
Declare runtime constructor selection table. More... | |
meshToMeshMethod (const polyMesh &src, const polyMesh &tgt) | |
Construct from source and target meshes. More... | |
virtual | ~meshToMeshMethod () |
Destructor. More... | |
const polyMesh & | src () const |
Return const access to the source mesh. More... | |
const polyMesh & | tgt () const |
Return const access to the target mesh. More... | |
scalar | V () const |
Return const access to the overlap volume. More... | |
void | writeConnectivity (const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const |
Write the connectivity (debugging) More... | |
Protected Member Functions | |
virtual bool | intersect (const label srcCellI, const label tgtCellI) const |
Return the true if cells intersect. More... | |
virtual bool | findInitialSeeds (const labelList &srcCellIDs, const boolList &mapFlag, const label startSeedI, label &srcSeedI, label &tgtSeedI) const |
Find indices of overlapping cells in src and tgt meshes - returns. More... | |
virtual void | calculateAddressing (labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI) |
Calculate the mesh-to-mesh addressing and weights. More... | |
virtual void | appendToDirectSeeds (boolList &mapFlag, labelList &srcTgtSeed, DynamicList< label > &srcSeeds, label &srcSeedI, label &tgtSeedI) const |
Append to list of src mesh seed indices. More... | |
directMethod (const directMethod &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const directMethod &) |
Disallow default bitwise assignment. More... | |
![]() | |
labelList | maskCells () const |
Return src cell IDs for the overlap region. More... | |
virtual scalar | interVol (const label srcCellI, const label tgtCellI) const |
Return the intersection volume between two cells. More... | |
virtual Tuple2< scalar, point > | interVolAndCentroid (const label srcCellI, const label tgtCellI) |
Return the intersection volume and centroid between two cells. More... | |
virtual void | appendNbrCells (const label tgtCellI, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const |
Append target cell neihgbour cells to cellIDs list. More... | |
virtual bool | initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const |
meshToMeshMethod (const meshToMeshMethod &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const meshToMeshMethod &) |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< meshToMeshMethod > | New (const word &methodName, const polyMesh &src, const polyMesh &tgt) |
Selector. More... | |
![]() | |
const polyMesh & | src_ |
Reference to the source mesh. More... | |
const polyMesh & | tgt_ |
Reference to the target mesh. More... | |
scalar | V_ |
Cell total volume in overlap region [m3]. More... | |
![]() | |
static scalar | tolerance_ = 1e-6 |
Tolerance used in volume overlap calculations. More... | |
Direct (one-to-one cell correspondence) mesh-to-mesh interpolation class.
Definition at line 50 of file directMethod.H.
|
protected |
Disallow default bitwise copy construct.
directMethod | ( | const polyMesh & | src, |
const polyMesh & | tgt | ||
) |
Construct from source and target meshes.
Definition at line 224 of file directMethod.C.
|
virtual |
Destructor.
Definition at line 235 of file directMethod.C.
Return the true if cells intersect.
Reimplemented from meshToMeshMethod.
Definition at line 42 of file directMethod.C.
|
protectedvirtual |
Find indices of overlapping cells in src and tgt meshes - returns.
true if found a matching pair
Definition at line 57 of file directMethod.C.
References Foam::endl(), intersect(), Foam::Pout, and List::size().
|
protectedvirtual |
Calculate the mesh-to-mesh addressing and weights.
Definition at line 98 of file directMethod.C.
References List::append(), forAll, and List::transfer().
|
protectedvirtual |
Append to list of src mesh seed indices.
Definition at line 164 of file directMethod.C.
References DynamicList::append(), forAll, found, intersect(), and DynamicList::remove().
|
protected |
Disallow default bitwise assignment.
TypeName | ( | "direct" | ) |
Run-time type information.
|
virtual |
Calculate addressing and weights and optionally offset vectors.
Implements meshToMeshMethod.
Definition at line 242 of file directMethod.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.