meshToMesh Class Reference

Class to calculate interpolative addressing and weights between the cells and patches of two overlapping meshes. More...

Inheritance diagram for meshToMesh:

Public Member Functions

 TypeName ("meshToMesh")
 Run-time type information. More...
 
 meshToMesh (const polyMesh &srcMesh, const polyMesh &tgtMesh, const word &engineType, const HashTable< word > &patchMap=NullObjectRef< HashTable< word >>())
 Construct from source and target meshes. If a patchMap is supplied,. More...
 
 meshToMesh (const meshToMesh &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~meshToMesh ()
 Destructor. More...
 
const polyMeshsrcMesh () const
 Return const access to the source mesh. More...
 
const polyMeshtgtMesh () const
 Return const access to the target mesh. More...
 
bool consistent () const
 Is the interpolation between consistent meshes? I.e., are all. More...
 
remote srcToTgtPoint (const label srcCelli, const point &p) const
 Find the target processor and cell associated with a point in a. More...
 
void operator= (const meshToMesh &)=delete
 Disallow default bitwise assignment. More...
 

Protected Member Functions

const cellsToCellscellsInterpolation () const
 Return the interpolation engine between source and target cells. More...
 
const cellsToCellsStabilisationsrcCellsStabilisation () const
 Return the stabilisation engine for the source cells. More...
 
const cellsToCellsStabilisationtgtCellsStabilisation () const
 Return the stabilisation engine for the target cells. More...
 
const List< labelPair > & patchIDs () const
 Return the list of corresponding source and target patch indices. More...
 
const patchToPatchpatchInterpolation (const label i) const
 Return the interpolation engine between a source and a target. More...
 
const patchToPatchStabilisationsrcPatchStabilisation (const label i) const
 Return the stabilisation engine for a source patch. More...
 
const patchToPatchStabilisationtgtPatchStabilisation (const label i) const
 Return the stabilisation engine for a target patch. More...
 

Detailed Description

Class to calculate interpolative addressing and weights between the cells and patches of two overlapping meshes.

Source files

Definition at line 53 of file meshToMesh.H.

Constructor & Destructor Documentation

◆ meshToMesh() [1/2]

meshToMesh ( const polyMesh srcMesh,
const polyMesh tgtMesh,
const word engineType,
const HashTable< word > &  patchMap = NullObjectRef<HashTable<word>>() 
)

Construct from source and target meshes. If a patchMap is supplied,.

then interpolate between the specified patches. If not, then assume a consistent mesh with consistently named patches and interpolate 1-to-1 between patches with the same name.

Definition at line 42 of file meshToMesh.C.

References polyMesh::boundaryMesh(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), forAll, forAllConstIter, Foam::isNull(), patchIdentifier::name(), polyBoundaryMesh::names(), meshToMesh::patchIDs(), and HashTable< T, Key, Hash >::size().

Here is the call graph for this function:

◆ meshToMesh() [2/2]

meshToMesh ( const meshToMesh )
delete

Disallow default bitwise copy construction.

◆ ~meshToMesh()

~meshToMesh ( )
virtual

Destructor.

Definition at line 190 of file meshToMesh.C.

Member Function Documentation

◆ cellsInterpolation()

const Foam::cellsToCells & cellsInterpolation ( ) const
inlineprotected

Return the interpolation engine between source and target cells.

Definition at line 30 of file meshToMeshI.H.

◆ srcCellsStabilisation()

const Foam::cellsToCellsStabilisation & srcCellsStabilisation ( ) const
inlineprotected

Return the stabilisation engine for the source cells.

Definition at line 37 of file meshToMeshI.H.

References cellsToCellsStabilisation::update().

Here is the call graph for this function:

◆ tgtCellsStabilisation()

const Foam::cellsToCellsStabilisation & tgtCellsStabilisation ( ) const
inlineprotected

Return the stabilisation engine for the target cells.

Definition at line 54 of file meshToMeshI.H.

References cellsToCellsStabilisation::update().

Here is the call graph for this function:

◆ patchIDs()

const Foam::List< Foam::labelPair > & patchIDs ( ) const
inlineprotected

Return the list of corresponding source and target patch indices.

Definition at line 70 of file meshToMeshI.H.

Referenced by meshToMesh::meshToMesh().

Here is the caller graph for this function:

◆ patchInterpolation()

const Foam::patchToPatch & patchInterpolation ( const label  i) const
inlineprotected

Return the interpolation engine between a source and a target.

patch

Definition at line 76 of file meshToMeshI.H.

◆ srcPatchStabilisation()

const Foam::patchToPatchStabilisation & srcPatchStabilisation ( const label  i) const
inlineprotected

Return the stabilisation engine for a source patch.

Definition at line 86 of file meshToMeshI.H.

References polyPatch::boundaryMesh(), and PtrList< T >::set().

Here is the call graph for this function:

◆ tgtPatchStabilisation()

const Foam::patchToPatchStabilisation & tgtPatchStabilisation ( const label  i) const
inlineprotected

Return the stabilisation engine for a target patch.

Definition at line 106 of file meshToMeshI.H.

References polyPatch::boundaryMesh(), and PtrList< T >::set().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "meshToMesh"  )

Run-time type information.

◆ srcMesh()

const Foam::polyMesh & srcMesh ( ) const
inline

Return const access to the source mesh.

Definition at line 127 of file meshToMeshI.H.

◆ tgtMesh()

const Foam::polyMesh & tgtMesh ( ) const
inline

Return const access to the target mesh.

Definition at line 133 of file meshToMeshI.H.

Referenced by fvMeshToFvMesh::srcToTgt().

Here is the caller graph for this function:

◆ consistent()

bool consistent ( ) const

Is the interpolation between consistent meshes? I.e., are all.

(non-processor) patches coupled one-to-one?

Definition at line 196 of file meshToMesh.C.

References polyPatch::boundaryMesh(), Foam::findIndex(), forAll, and patchIdentifier::index().

Here is the call graph for this function:

◆ srcToTgtPoint()

Foam::remote srcToTgtPoint ( const label  srcCelli,
const point p 
) const

Find the target processor and cell associated with a point in a.

source cell. See cellsToCells::srcToTgtPoint.

Definition at line 248 of file meshToMesh.C.

References p.

Referenced by Cloud< ParticleType >::mapMesh().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const meshToMesh )
delete

Disallow default bitwise assignment.


The documentation for this class was generated from the following files: