This object provides mapping and fill-in information for cell data between the two meshes after the topological change. It is constructed from mapPolyMesh. More...
Public Member Functions | |
cellMapper (const mapPolyMesh &mpm) | |
Construct from mapPolyMesh. More... | |
virtual | ~cellMapper () |
Destructor. More... | |
virtual label | size () const |
Return size. More... | |
virtual label | sizeBeforeMapping () const |
Return size before mapping. More... | |
virtual bool | direct () const |
Is the mapping direct. More... | |
virtual bool | hasUnmapped () const |
Are there unmapped values? I.e. do all size() elements get. More... | |
virtual const labelUList & | directAddressing () const |
Return direct addressing. More... | |
virtual const labelListList & | addressing () const |
Return interpolated addressing. More... | |
virtual const scalarListList & | weights () const |
Return interpolaion weights. More... | |
virtual bool | insertedObjects () const |
Are there any inserted cells. More... | |
const virtual labelList & | insertedObjectLabels () const |
Return list of inserted cells. More... | |
![]() | |
morphFieldMapper () | |
Null constructor. More... | |
virtual | ~morphFieldMapper () |
Destructor. More... | |
![]() | |
FieldMapper () | |
Null constructor. More... | |
virtual | ~FieldMapper () |
Destructor. More... | |
virtual bool | distributed () const |
virtual const mapDistributeBase & | distributeMap () const |
template<class Type > | |
tmp< Field< Type > > | operator() (const Field< Type > &f) const |
Private Member Functions | |
cellMapper (const cellMapper &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const cellMapper &) |
Disallow default bitwise assignment. More... | |
void | calcAddressing () const |
Calculate addressing for mapping with inserted cells. More... | |
void | clearOut () |
Clear out local storage. More... | |
Private Attributes | |
const polyMesh & | mesh_ |
Reference to polyMesh. More... | |
const mapPolyMesh & | mpm_ |
Reference to mapPolyMesh. More... | |
bool | insertedCells_ |
Are there any inserted (unmapped) cells. More... | |
bool | direct_ |
Is the mapping direct. More... | |
labelList * | directAddrPtr_ |
Direct addressing (only one for of addressing is used) More... | |
labelListList * | interpolationAddrPtr_ |
Interpolated addressing (only one for of addressing is used) More... | |
scalarListList * | weightsPtr_ |
Interpolation weights. More... | |
labelList * | insertedCellLabelsPtr_ |
Inserted cells. More... | |
This object provides mapping and fill-in information for cell data between the two meshes after the topological change. It is constructed from mapPolyMesh.
Definition at line 54 of file cellMapper.H.
|
private |
Disallow default bitwise copy construct.
cellMapper | ( | const mapPolyMesh & | mpm | ) |
Construct from mapPolyMesh.
Definition at line 290 of file cellMapper.C.
References mapPolyMesh::cellMap(), mapPolyMesh::cellsFromCellsMap(), mapPolyMesh::cellsFromEdgesMap(), mapPolyMesh::cellsFromFacesMap(), mapPolyMesh::cellsFromPointsMap(), cellMapper::direct_, forAll, cellMapper::insertedCells_, cellMapper::mesh_, Foam::min(), cellMapper::mpm_, and primitiveMesh::nCells().
|
virtual |
Destructor.
Definition at line 369 of file cellMapper.C.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate addressing for mapping with inserted cells.
Definition at line 33 of file cellMapper.C.
References Foam::abort(), mapPolyMesh::cellMap(), mapPolyMesh::cellsFromCellsMap(), mapPolyMesh::cellsFromEdgesMap(), mapPolyMesh::cellsFromFacesMap(), mapPolyMesh::cellsFromPointsMap(), cellMapper::direct(), cellMapper::directAddrPtr_, Foam::FatalError, FatalErrorInFunction, forAll, mapPolyMesh::hasOldCellVolumes(), cellMapper::insertedCellLabelsPtr_, cellMapper::interpolationAddrPtr_, cellMapper::mesh_, cellMapper::mpm_, primitiveMesh::nCells(), mapPolyMesh::oldCellVolumes(), List::setSize(), List::size(), cellMapper::size(), cellMapper::sizeBeforeMapping(), w(), and cellMapper::weightsPtr_.
|
private |
Clear out local storage.
Definition at line 278 of file cellMapper.C.
References Foam::deleteDemandDrivenData().
|
virtual |
Return size.
Implements FieldMapper.
Definition at line 377 of file cellMapper.C.
Referenced by cellMapper::calcAddressing().
|
virtual |
Return size before mapping.
Implements morphFieldMapper.
Definition at line 383 of file cellMapper.C.
Referenced by cellMapper::calcAddressing().
|
inlinevirtual |
Is the mapping direct.
Implements FieldMapper.
Definition at line 127 of file cellMapper.H.
References cellMapper::direct_.
Referenced by cellMapper::calcAddressing().
|
inlinevirtual |
Are there unmapped values? I.e. do all size() elements get.
get value
Implements FieldMapper.
Definition at line 132 of file cellMapper.H.
References cellMapper::insertedObjects().
|
virtual |
Return direct addressing.
Reimplemented from FieldMapper.
Definition at line 389 of file cellMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolated addressing.
Reimplemented from FieldMapper.
Definition at line 415 of file cellMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolaion weights.
Reimplemented from FieldMapper.
Definition at line 433 of file cellMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inlinevirtual |
Are there any inserted cells.
Implements morphFieldMapper.
Definition at line 147 of file cellMapper.H.
References cellMapper::insertedCells_.
Referenced by cellMapper::hasUnmapped().
|
virtual |
Return list of inserted cells.
Implements morphFieldMapper.
Definition at line 451 of file cellMapper.C.
|
private |
Reference to polyMesh.
Definition at line 61 of file cellMapper.H.
Referenced by cellMapper::calcAddressing(), and cellMapper::cellMapper().
|
private |
Reference to mapPolyMesh.
Definition at line 64 of file cellMapper.H.
Referenced by cellMapper::calcAddressing(), and cellMapper::cellMapper().
|
private |
Are there any inserted (unmapped) cells.
Definition at line 67 of file cellMapper.H.
Referenced by cellMapper::cellMapper(), and cellMapper::insertedObjects().
|
private |
Is the mapping direct.
Definition at line 70 of file cellMapper.H.
Referenced by cellMapper::cellMapper(), and cellMapper::direct().
|
mutableprivate |
Direct addressing (only one for of addressing is used)
Definition at line 76 of file cellMapper.H.
Referenced by cellMapper::calcAddressing().
|
mutableprivate |
Interpolated addressing (only one for of addressing is used)
Definition at line 79 of file cellMapper.H.
Referenced by cellMapper::calcAddressing().
|
mutableprivate |
Interpolation weights.
Definition at line 82 of file cellMapper.H.
Referenced by cellMapper::calcAddressing().
|
mutableprivate |
Inserted cells.
Definition at line 85 of file cellMapper.H.
Referenced by cellMapper::calcAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.