Base class for mesh-to-mesh calculation methods. More...


Public Member Functions | |
| 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... | |
| virtual void | calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)=0 |
| Calculate addressing and weights and optionally offset vectors. 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... | |
Static Public Member Functions | |
| static autoPtr< meshToMeshMethod > | New (const word &methodName, const polyMesh &src, const polyMesh &tgt) |
| Selector. More... | |
Protected Member Functions | |
| labelList | maskCells () const |
| Return src cell IDs for the overlap region. More... | |
| virtual bool | intersect (const label srcCelli, const label tgtCelli) const |
| Return the true if cells intersect. 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 neighbour cells to cellIDs list. More... | |
| virtual bool | initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const |
Protected Attributes | |
| 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 Protected Attributes | |
| static scalar | tolerance_ = 1e-6 |
| Tolerance used in volume overlap calculations. More... | |
Base class for mesh-to-mesh calculation methods.
Definition at line 47 of file meshToMeshMethod.H.
| meshToMeshMethod | ( | const polyMesh & | src, |
| const polyMesh & | tgt | ||
| ) |
Construct from source and target meshes.
Definition at line 205 of file meshToMeshMethod.C.
References Foam::ensightOutput::debug, Foam::endl(), and Foam::Pout.

|
virtual |
Destructor.
Definition at line 228 of file meshToMeshMethod.C.
|
protected |
Return src cell IDs for the overlap region.
Definition at line 40 of file meshToMeshMethod.C.
References polyMesh::bounds(), primitiveMesh::cellBb(), cells, Foam::ensightOutput::debug, Foam::endl(), boundBox::inflate(), primitiveMesh::nCells(), Foam::Pout, meshToMeshMethod::src_, and meshToMeshMethod::tgt_.

|
protectedvirtual |
Return the true if cells intersect.
Reimplemented in directMethod.
Definition at line 67 of file meshToMeshMethod.C.
|
protectedvirtual |
Return the intersection volume between two cells.
Definition at line 91 of file meshToMeshMethod.C.
References tetOverlapVolume::cellCellOverlapVolumeMinDecomp().

|
protectedvirtual |
Return the intersection volume and centroid between two cells.
Definition at line 115 of file meshToMeshMethod.C.
References tetOverlapVolume::cellCellOverlapMomentMinDecomp(), Tuple2< T1, T2 >::first(), and Foam::Zero.

|
protectedvirtual |
Append target cell neighbour cells to cellIDs list.
Definition at line 150 of file meshToMeshMethod.C.
References primitiveMesh::cellCells(), UList< T >::contains(), mesh, and DynamicList< T, SizeMin >::push_uniq().

|
protectedvirtual |
Definition at line 171 of file meshToMeshMethod.C.
References Foam::ensightOutput::debug, Foam::endl(), Foam::Pout, and List< T >::setSize().

| TypeName | ( | "meshToMeshMethod" | ) |
Run-time type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| meshToMeshMethod | , | ||
| components | , | ||
| (const polyMesh &src, const polyMesh &tgt) | , | ||
| (src, tgt) | |||
| ) |
Declare runtime constructor selection table.
|
static |
Selector.
Definition at line 27 of file meshToMeshMethodNew.C.
References DebugInfo, Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInLookup.

|
pure virtual |
Calculate addressing and weights and optionally offset vectors.
Implemented in mapNearestMethod, directMethod, cellVolumeWeightMethod, correctedCellVolumeWeightMethod, and waveMethod.
|
inline |
Return const access to the source mesh.
Definition at line 21 of file meshToMeshMethodI.H.
References meshToMeshMethod::src_.
|
inline |
Return const access to the target mesh.
Definition at line 27 of file meshToMeshMethodI.H.
|
inline |
Return const access to the overlap volume.
Definition at line 33 of file meshToMeshMethodI.H.
| void writeConnectivity | ( | const polyMesh & | mesh1, |
| const polyMesh & | mesh2, | ||
| const labelListList & | mesh1ToMesh2Addr | ||
| ) | const |
Write the connectivity (debugging)
Definition at line 235 of file meshToMeshMethod.C.
References Foam::constant::universal::c, primitiveMesh::cellCentres(), primitiveMesh::cells(), Foam::endl(), polyMesh::faces(), forAll, UPstream::myProcNo(), Foam::name(), IOobject::name(), primitiveMesh::nCells(), Foam::nl, os(), p, UPstream::parRun(), polyMesh::points(), Foam::Pout, and pts.

|
protected |
Reference to the source mesh.
Definition at line 57 of file meshToMeshMethod.H.
Referenced by meshToMeshMethod::maskCells(), and meshToMeshMethod::src().
|
protected |
Reference to the target mesh.
Definition at line 62 of file meshToMeshMethod.H.
Referenced by meshToMeshMethod::maskCells().
|
protected |
Cell total volume in overlap region [m3].
Definition at line 67 of file meshToMeshMethod.H.
|
staticprotected |
Tolerance used in volume overlap calculations.
Definition at line 72 of file meshToMeshMethod.H.