This object provides mapping and fill-in information for point data between the two meshes after the topological change. It is constructed from mapPolyMesh. More...
Public Member Functions | |
pointMapper (const pointMesh &, const mapPolyMesh &mpm) | |
Construct from mapPolyMesh. More... | |
virtual | ~pointMapper () |
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... | |
bool | insertedObjects () const |
Are there any inserted points. More... | |
const labelList & | insertedObjectLabels () const |
Return list of inserted points. 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 | |
pointMapper (const pointMapper &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const pointMapper &) |
Disallow default bitwise assignment. More... | |
void | calcAddressing () const |
Calculate addressing for mapping with inserted points. More... | |
void | clearOut () |
Clear out local storage. More... | |
Private Attributes | |
const pointMesh & | pMesh_ |
Reference to pointMesh. More... | |
const mapPolyMesh & | mpm_ |
Reference to mapPolyMesh. More... | |
bool | insertedPoints_ |
Are there any inserted (unmapped) points. 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 * | insertedPointLabelsPtr_ |
Inserted points. More... | |
This object provides mapping and fill-in information for point data between the two meshes after the topological change. It is constructed from mapPolyMesh.
Definition at line 55 of file pointMapper.H.
|
private |
Disallow default bitwise copy construct.
pointMapper | ( | const pointMesh & | pMesh, |
const mapPolyMesh & | mpm | ||
) |
Construct from mapPolyMesh.
Definition at line 165 of file pointMapper.C.
References pointMapper::direct_, forAll, pointMapper::insertedPoints_, Foam::min(), pointMapper::mpm_, pointMapper::pMesh_, mapPolyMesh::pointMap(), mapPolyMesh::pointsFromPointsMap(), and pointMesh::size().
|
virtual |
Destructor.
Definition at line 216 of file pointMapper.C.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate addressing for mapping with inserted points.
Definition at line 36 of file pointMapper.C.
References Foam::abort(), pointMapper::direct(), pointMapper::directAddrPtr_, Foam::FatalError, FatalErrorInFunction, forAll, pointMapper::insertedPointLabelsPtr_, pointMapper::interpolationAddrPtr_, pointMapper::mpm_, pointMapper::pMesh_, mapPolyMesh::pointMap(), mapPolyMesh::pointsFromPointsMap(), List::setSize(), List::size(), pointMesh::size(), pointMapper::size(), w(), and pointMapper::weightsPtr_.
|
private |
Clear out local storage.
Definition at line 153 of file pointMapper.C.
References Foam::deleteDemandDrivenData().
|
virtual |
Return size.
Implements FieldMapper.
Definition at line 224 of file pointMapper.C.
Referenced by pointMapper::calcAddressing().
|
virtual |
Return size before mapping.
Implements morphFieldMapper.
Definition at line 230 of file pointMapper.C.
|
inlinevirtual |
Is the mapping direct.
Implements FieldMapper.
Definition at line 126 of file pointMapper.H.
References pointMapper::direct_.
Referenced by pointMapper::calcAddressing().
|
inlinevirtual |
Are there unmapped values? I.e. do all size() elements get.
get value
Implements FieldMapper.
Definition at line 133 of file pointMapper.H.
|
virtual |
Return direct addressing.
Reimplemented from FieldMapper.
Definition at line 236 of file pointMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolated addressing.
Reimplemented from FieldMapper.
Definition at line 262 of file pointMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolaion weights.
Reimplemented from FieldMapper.
Definition at line 280 of file pointMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inlinevirtual |
Are there any inserted points.
Implements morphFieldMapper.
Definition at line 148 of file pointMapper.H.
References pointMapper::insertedPoints_.
|
virtual |
Return list of inserted points.
Implements morphFieldMapper.
Definition at line 298 of file pointMapper.C.
|
private |
Reference to pointMesh.
Definition at line 62 of file pointMapper.H.
Referenced by pointMapper::calcAddressing(), and pointMapper::pointMapper().
|
private |
Reference to mapPolyMesh.
Definition at line 65 of file pointMapper.H.
Referenced by pointMapper::calcAddressing(), and pointMapper::pointMapper().
|
private |
Are there any inserted (unmapped) points.
Definition at line 68 of file pointMapper.H.
Referenced by pointMapper::insertedObjects(), and pointMapper::pointMapper().
|
private |
Is the mapping direct.
Definition at line 71 of file pointMapper.H.
Referenced by pointMapper::direct(), and pointMapper::pointMapper().
|
mutableprivate |
Direct addressing (only one for of addressing is used)
Definition at line 77 of file pointMapper.H.
Referenced by pointMapper::calcAddressing().
|
mutableprivate |
Interpolated addressing (only one for of addressing is used)
Definition at line 80 of file pointMapper.H.
Referenced by pointMapper::calcAddressing().
|
mutableprivate |
Interpolation weights.
Definition at line 83 of file pointMapper.H.
Referenced by pointMapper::calcAddressing().
|
mutableprivate |
Inserted points.
Definition at line 86 of file pointMapper.H.
Referenced by pointMapper::calcAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.