Base class for mesh-to-mesh calculation methods. More...
Public Member Functions | |
TypeName ("meshToMeshMethod") | |
declareRunTimeSelectionTable (autoPtr, meshToMeshMethod, components,(const polyMesh &src, const polyMesh &tgt),(src, tgt)) | |
meshToMeshMethod (const polyMesh &src, const polyMesh &tgt) | |
virtual | ~meshToMeshMethod () |
virtual void | calculate (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)=0 |
const polyMesh & | src () const |
const polyMesh & | tgt () const |
scalar | V () const |
void | writeConnectivity (const polyMesh &mesh1, const polyMesh &mesh2, const labelListList &mesh1ToMesh2Addr) const |
Static Public Member Functions | |
static autoPtr< meshToMeshMethod > | New (const word &methodName, const polyMesh &src, const polyMesh &tgt) |
Protected Member Functions | |
labelList | maskCells () const |
virtual bool | intersect (const label srcCelli, const label tgtCelli) const |
virtual scalar | interVol (const label srcCelli, const label tgtCelli) const |
virtual Tuple2< scalar, point > | interVolAndCentroid (const label srcCellI, const label tgtCellI) |
virtual void | appendNbrCells (const label tgtCelli, const polyMesh &mesh, const DynamicList< label > &visitedTgtCells, DynamicList< label > &nbrTgtCellIDs) const |
virtual bool | initialise (labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, labelListList &tgtToTgtAddr, scalarListList &tgtToTgtWght) const |
Protected Attributes | |
const polyMesh & | src_ |
const polyMesh & | tgt_ |
scalar | V_ |
Static Protected Attributes | |
static scalar | tolerance_ = 1e-6 |
Base class for mesh-to-mesh calculation methods.
Definition at line 47 of file meshToMeshMethod.H.
meshToMeshMethod | ( | const polyMesh & | src, |
const polyMesh & | tgt | ||
) |
Definition at line 233 of file meshToMeshMethod.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Pout.
|
virtual |
Definition at line 256 of file meshToMeshMethod.C.
|
protected |
Definition at line 40 of file meshToMeshMethod.C.
References polyMesh::bounds(), cells, primitiveMesh::cells(), Foam::expressions::patchExpr::debug, Foam::endl(), polyMesh::faces(), forAll, boundBox::inflate(), boundBox::max(), Foam::max(), boundBox::min(), Foam::min(), primitiveMesh::nCells(), boundBox::overlaps(), points, polyMesh::points(), Foam::Pout, meshToMeshMethod::src_, and meshToMeshMethod::tgt_.
|
protectedvirtual |
Reimplemented in directMethod.
Definition at line 74 of file meshToMeshMethod.C.
References boundBox::add(), and UList::size().
|
protectedvirtual |
Definition at line 105 of file meshToMeshMethod.C.
References boundBox::add(), tetOverlapVolume::cellCellOverlapVolumeMinDecomp(), and UList::size().
|
protectedvirtual |
Definition at line 136 of file meshToMeshMethod.C.
References boundBox::add(), tetOverlapVolume::cellCellOverlapMomentMinDecomp(), Tuple2::first(), Tuple2::second(), UList::size(), and Foam::Zero.
|
protectedvirtual |
Definition at line 178 of file meshToMeshMethod.C.
References DynamicList::appendUniq(), primitiveMesh::cellCells(), and mesh.
|
protectedvirtual |
Definition at line 199 of file meshToMeshMethod.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), Foam::Pout, and List::setSize().
TypeName | ( | "meshToMeshMethod" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
meshToMeshMethod | , | ||
components | , | ||
(const polyMesh &src, const polyMesh &tgt) | , | ||
(src, tgt) | |||
) |
|
static |
Definition at line 27 of file meshToMeshMethodNew.C.
References DebugInfo, Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInLookup.
|
pure virtual |
Implemented in mapNearestMethod, directMethod, cellVolumeWeightMethod, correctedCellVolumeWeightMethod, and waveMethod.
|
inline |
Definition at line 21 of file meshToMeshMethodI.H.
References meshToMeshMethod::src_.
|
inline |
Definition at line 27 of file meshToMeshMethodI.H.
|
inline |
Definition at line 33 of file meshToMeshMethodI.H.
void writeConnectivity | ( | const polyMesh & | mesh1, |
const polyMesh & | mesh2, | ||
const labelListList & | mesh1ToMesh2Addr | ||
) | const |
Definition at line 263 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, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
protected |
Definition at line 55 of file meshToMeshMethod.H.
Referenced by meshToMeshMethod::maskCells(), and meshToMeshMethod::src().
|
protected |
Definition at line 58 of file meshToMeshMethod.H.
Referenced by meshToMeshMethod::maskCells().
|
protected |
Definition at line 61 of file meshToMeshMethod.H.
|
staticprotected |
Definition at line 64 of file meshToMeshMethod.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.