Mapping class for a faPatchField. Edge mapping is calculated based on faceCells comparison of old and new patch. More...
Public Member Functions | |
faPatchMapper (const faPatchMapper &)=delete | |
No copy construct. More... | |
void | operator= (const faPatchMapper &)=delete |
No copy assignment. More... | |
faPatchMapper (const faPatch &patch, const mapPolyMesh &mpm) | |
Construct from mappers. More... | |
virtual | ~faPatchMapper () |
Destructor. More... | |
virtual label | size () const |
Return size. More... | |
virtual label | sizeBeforeMapping () const |
Return size of field before mapping. More... | |
virtual bool | direct () const |
Is the mapping direct. More... | |
virtual bool | hasUnmapped () const |
Any unmapped values? 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 interpolation weights. More... | |
Public Member Functions inherited from faPatchFieldMapper | |
faPatchFieldMapper ()=default | |
Default construct. More... | |
Public Member Functions inherited from FieldMapper | |
FieldMapper ()=default | |
Default construct. More... | |
virtual | ~FieldMapper ()=default |
Destructor. More... | |
virtual bool | distributed () const |
Does the mapper have remote contributions? More... | |
virtual const mapDistributeBase & | distributeMap () const |
Return the distribution map. More... | |
template<class Type > | |
tmp< Field< Type > > | operator() (const Field< Type > &fld) const |
Perform mapping on the given field. More... | |
Mapping class for a faPatchField. Edge mapping is calculated based on faceCells comparison of old and new patch.
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
Definition at line 57 of file faPatchMapper.H.
|
delete |
No copy construct.
faPatchMapper | ( | const faPatch & | patch, |
const mapPolyMesh & | mpm | ||
) |
Construct from mappers.
Definition at line 91 of file faPatchMapper.C.
|
virtual |
Destructor.
Definition at line 106 of file faPatchMapper.C.
|
delete |
No copy assignment.
|
inlinevirtual |
Return size.
Implements FieldMapper.
Definition at line 136 of file faPatchMapper.H.
References faPatch::size().
|
inlinevirtual |
Return size of field before mapping.
Definition at line 144 of file faPatchMapper.H.
|
inlinevirtual |
|
inlinevirtual |
Any unmapped values?
I.e. do all size() elements get value
Implements FieldMapper.
Definition at line 157 of file faPatchMapper.H.
|
virtual |
Return direct addressing.
Reimplemented from FieldMapper.
Definition at line 112 of file faPatchMapper.C.
|
virtual |
Return interpolated addressing.
Reimplemented from FieldMapper.
Definition at line 123 of file faPatchMapper.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< labelList >::null().
|
virtual |
Return interpolation weights.
Reimplemented from FieldMapper.
Definition at line 133 of file faPatchMapper.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< scalarList >::null().