Go to the documentation of this file.
35 #ifndef meshToMeshMethod_H
36 #define meshToMeshMethod_H
143 const word& methodName,
178 inline scalar
V()
const;
A class for handling words, derived from string.
virtual ~meshToMeshMethod()
Destructor.
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.
void operator=(const meshToMeshMethod &)
Disallow default bitwise assignment.
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.
scalar V_
Cell total volume in overlap region [m3].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.
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.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool initialise(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const
meshToMeshMethod(const meshToMeshMethod &)
Disallow default bitwise copy construct.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 2-tuple for storing two objects of different types.
virtual bool intersect(const label srcCellI, const label tgtCellI) const
Return the true if cells intersect.
TypeName("meshToMeshMethod")
Run-time type information.