Go to the documentation of this file.
38 #ifndef meshToMeshMethod_H
39 #define meshToMeshMethod_H
101 const label tgtCelli,
151 const word& methodName,
186 inline scalar
V()
const;
A class for handling words, derived from Foam::string.
virtual ~meshToMeshMethod()
Destructor.
virtual void appendNbrCells(const label tgtCelli, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const
Append target cell neighbour cells to cellIDs list.
virtual Tuple2< scalar, point > interVolAndCentroid(const label srcCellI, const label tgtCellI)
Return the intersection volume and centroid between two cells.
virtual scalar interVol(const label srcCelli, const label tgtCelli) const
Return the intersection volume between two cells.
static scalar tolerance_
Tolerance used in volume overlap calculations.
scalar V() const
Return const access to the overlap volume.
Mesh consisting of general polyhedral cells.
Base class for mesh-to-mesh calculation methods.
static autoPtr< meshToMeshMethod > New(const word &methodName, const polyMesh &src, const polyMesh &tgt)
Selector.
void writeConnectivity(const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const
Write the connectivity (debugging)
const polyMesh & src() const
Return const access to the source mesh.
virtual bool intersect(const label srcCelli, const label tgtCelli) const
Return the true if cells intersect.
scalar V_
Cell total volume in overlap region [m3].
const polyMesh & tgt_
Reference to the target mesh.
virtual void calculate(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)=0
Calculate addressing and weights and optionally offset vectors.
const polyMesh & tgt() const
Return const access to the target mesh.
const polyMesh & src_
Reference to the source mesh.
labelList maskCells() const
Return src cell IDs for the overlap region.
declareRunTimeSelectionTable(autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt))
Declare runtime constructor selection table.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual bool initialise(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const
TypeName("meshToMeshMethod")
Run-time type information.