35 #ifndef meshToMeshMethod_H 36 #define meshToMeshMethod_H 136 const word& methodName,
169 inline scalar
V()
const;
scalar V() const
Return const access to the overlap volume.
meshToMeshMethod(const meshToMeshMethod &)
Disallow default bitwise copy construct.
const polyMesh & src() const
Return const access to the source mesh.
const polyMesh & src_
Reference to the source mesh.
labelList maskCells() const
Return src cell IDs for the overlap region.
const polyMesh & tgt_
Reference to the target mesh.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual bool intersect(const label srcCellI, const label tgtCellI) const
Return the true if cells intersect.
void writeConnectivity(const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const
Write the connectivity (debugging)
Base class for mesh-to-mesh calculation methods.
virtual void calculate(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght)=0
Calculate addressing and weights.
declareRunTimeSelectionTable(autoPtr, meshToMeshMethod, components,( const polyMesh &src, const polyMesh &tgt ),(src, tgt))
Declare runtime constructor selection table.
virtual bool initialise(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const
static scalar tolerance_
Tolerance used in volume overlap calculations.
void operator=(const meshToMeshMethod &)
Disallow default bitwise assignment.
Mesh consisting of general polyhedral cells.
virtual ~meshToMeshMethod()
Destructor.
static autoPtr< meshToMeshMethod > New(const word &methodName, const polyMesh &src, const polyMesh &tgt)
Selector.
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.
scalar V_
Cell total volume in overlap region [m3].
const polyMesh & tgt() const
Return const access to the target mesh.
virtual scalar interVol(const label srcCellI, const label tgtCellI) const
Return the intersection volume between two cells.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
TypeName("meshToMeshMethod")
Run-time type information.