Class to calculate interpolative addressing and weights between the cells and patches of two overlapping meshes. More...
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 polyMesh & | srcMesh () const |
Return const access to the source mesh. More... | |
const polyMesh & | tgtMesh () 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 cellsToCells & | cellsInterpolation () const |
Return the interpolation engine between source and target cells. More... | |
const cellsToCellsStabilisation & | srcCellsStabilisation () const |
Return the stabilisation engine for the source cells. More... | |
const cellsToCellsStabilisation & | tgtCellsStabilisation () const |
Return the stabilisation engine for the target cells. More... | |
const List< labelPair > & | patchIndices () const |
Return the list of corresponding source and target patch indices. More... | |
const patchToPatch & | patchInterpolation (const label i) const |
Return the interpolation engine between a source and a target. More... | |
const patchToPatchStabilisation & | srcPatchStabilisation (const label i) const |
Return the stabilisation engine for a source patch. More... | |
const patchToPatchStabilisation & | tgtPatchStabilisation (const label i) const |
Return the stabilisation engine for a target patch. More... | |
Class to calculate interpolative addressing and weights between the cells and patches of two overlapping meshes.
Definition at line 53 of file meshToMesh.H.
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 DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), polyMesh::boundaryMesh(), Foam::decrIndent(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findIndex(), forAll, forAllConstIter, Foam::incrIndent(), Foam::Info, Foam::isNull(), IOobject::name(), patchIdentifier::name(), polyBoundaryMesh::names(), cellsToCells::New(), patchToPatch::New(), PatchTools::pointNormals(), and HashTable< T, Key, Hash >::size().
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 190 of file meshToMesh.C.
|
inlineprotected |
Return the interpolation engine between source and target cells.
Definition at line 30 of file meshToMeshI.H.
|
inlineprotected |
Return the stabilisation engine for the source cells.
Definition at line 37 of file meshToMeshI.H.
References cellsToCellsStabilisation::update().
|
inlineprotected |
Return the stabilisation engine for the target cells.
Definition at line 54 of file meshToMeshI.H.
References cellsToCellsStabilisation::update().
|
inlineprotected |
Return the list of corresponding source and target patch indices.
Definition at line 70 of file meshToMeshI.H.
|
inlineprotected |
Return the interpolation engine between a source and a target.
patch
Definition at line 76 of file meshToMeshI.H.
|
inlineprotected |
Return the stabilisation engine for a source patch.
Definition at line 86 of file meshToMeshI.H.
References polyPatch::boundaryMesh(), and PtrList< T >::set().
|
inlineprotected |
Return the stabilisation engine for a target patch.
Definition at line 106 of file meshToMeshI.H.
References polyPatch::boundaryMesh(), and PtrList< T >::set().
TypeName | ( | "meshToMesh" | ) |
Run-time type information.
|
inline |
Return const access to the source mesh.
Definition at line 127 of file meshToMeshI.H.
Referenced by fvMeshToFvMesh::fvMeshToFvMesh().
|
inline |
Return const access to the target mesh.
Definition at line 133 of file meshToMeshI.H.
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().
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().
|
delete |
Disallow default bitwise assignment.