Mapping class for a pointPatchField. More...
Public Member Functions | |
pointPatchMapper (const pointPatch &patch, const pointMapper &pointMap, const mapPolyMesh &mpm) | |
Construct from mappers. More... | |
virtual | ~pointPatchMapper () |
Destructor. More... | |
virtual label | size () const |
Return size. More... | |
virtual bool | hasUnmapped () const |
Are there unmapped values? I.e. do all size() elements get. More... | |
virtual label | sizeBeforeMapping () const |
Return size of field before mapping. More... | |
virtual bool | direct () const |
Is the mapping direct. 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... | |
![]() | |
pointPatchFieldMapper () | |
Null constructor. 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 | |
pointPatchMapper (const pointPatchMapper &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const pointPatchMapper &) |
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 pointPatch & | patch_ |
Reference to patch. More... | |
const morphFieldMapper & | pointMapper_ |
Reference to point mapper for internal field. More... | |
const mapPolyMesh & | mpm_ |
Reference to mapping data. More... | |
const label | sizeBeforeMapping_ |
Size before mapping. More... | |
bool | hasUnmapped_ |
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... | |
|
private |
Disallow default bitwise copy construct.
pointPatchMapper | ( | const pointPatch & | patch, |
const pointMapper & | pointMap, | ||
const mapPolyMesh & | mpm | ||
) |
Construct from mappers.
Definition at line 114 of file pointPatchMapper.C.
|
virtual |
Destructor.
Definition at line 139 of file pointPatchMapper.C.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate addressing for mapping with inserted cells.
Definition at line 34 of file pointPatchMapper.C.
References Foam::abort(), pointPatchMapper::direct(), pointPatchMapper::directAddrPtr_, Foam::FatalError, FatalErrorInFunction, forAll, pointPatchMapper::hasUnmapped_, pointPatch::index(), pointPatchMapper::interpolationAddrPtr_, pointPatchMapper::mpm_, pointPatchMapper::patch_, mapPolyMesh::patchPointMap(), List::size(), pointPatchMapper::size(), w(), and pointPatchMapper::weightsPtr_.
|
private |
Clear out local storage.
Definition at line 101 of file pointPatchMapper.C.
References Foam::deleteDemandDrivenData().
|
inlinevirtual |
Return size.
Implements FieldMapper.
Definition at line 129 of file pointPatchMapper.H.
References pointPatchMapper::patch_, and pointPatch::size().
Referenced by pointPatchMapper::calcAddressing().
|
inlinevirtual |
Are there unmapped values? I.e. do all size() elements get.
get value
Implements FieldMapper.
Definition at line 134 of file pointPatchMapper.H.
References pointPatchMapper::hasUnmapped_.
|
inlinevirtual |
Return size of field before mapping.
Definition at line 140 of file pointPatchMapper.H.
References pointPatchMapper::sizeBeforeMapping_.
|
inlinevirtual |
Is the mapping direct.
Implements FieldMapper.
Definition at line 146 of file pointPatchMapper.H.
References FieldMapper::direct(), and pointPatchMapper::pointMapper_.
Referenced by pointPatchMapper::calcAddressing().
|
virtual |
Return direct addressing.
Reimplemented from FieldMapper.
Definition at line 147 of file pointPatchMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolated addressing.
Reimplemented from FieldMapper.
Definition at line 165 of file pointPatchMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolaion weights.
Reimplemented from FieldMapper.
Definition at line 183 of file pointPatchMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
private |
Reference to patch.
Definition at line 62 of file pointPatchMapper.H.
Referenced by pointPatchMapper::calcAddressing(), and pointPatchMapper::size().
|
private |
Reference to point mapper for internal field.
Definition at line 65 of file pointPatchMapper.H.
Referenced by pointPatchMapper::direct().
|
private |
Reference to mapping data.
Definition at line 68 of file pointPatchMapper.H.
Referenced by pointPatchMapper::calcAddressing().
|
private |
Size before mapping.
Definition at line 71 of file pointPatchMapper.H.
Referenced by pointPatchMapper::sizeBeforeMapping().
|
mutableprivate |
Definition at line 76 of file pointPatchMapper.H.
Referenced by pointPatchMapper::calcAddressing(), and pointPatchMapper::hasUnmapped().
|
mutableprivate |
Direct addressing (only one for of addressing is used)
Definition at line 79 of file pointPatchMapper.H.
Referenced by pointPatchMapper::calcAddressing().
|
mutableprivate |
Interpolated addressing (only one for of addressing is used)
Definition at line 82 of file pointPatchMapper.H.
Referenced by pointPatchMapper::calcAddressing().
|
mutableprivate |
Interpolation weights.
Definition at line 85 of file pointPatchMapper.H.
Referenced by pointPatchMapper::calcAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.