faPatchMapper Class Reference

Mapping class for a faPatchField. Edge mapping is calculated based on faceCells comparison of old and new patch. More...

Inheritance diagram for faPatchMapper:
[legend]
Collaboration diagram for faPatchMapper:
[legend]

Public Member Functions

 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
 Are there unmapped values? I.e. do all size() elements get. More...
 
virtual const labelUListdirectAddressing () const
 Return direct addressing. More...
 
virtual const labelListListaddressing () const
 Return interpolated addressing. More...
 
virtual const scalarListListweights () const
 Return interpolation weights. More...
 
- Public Member Functions inherited from faPatchFieldMapper
 faPatchFieldMapper ()
 Null constructor. More...
 
- Public Member Functions inherited from FieldMapper
 FieldMapper ()
 Null constructor. More...
 
virtual ~FieldMapper ()=default
 Destructor. More...
 
virtual bool distributed () const
 
virtual const mapDistributeBasedistributeMap () const
 
template<class Type >
tmp< Field< Type > > operator() (const Field< Type > &f) const
 

Detailed Description

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.

Source files

Definition at line 62 of file faPatchMapper.H.

Constructor & Destructor Documentation

◆ faPatchMapper()

faPatchMapper ( const faPatch patch,
const mapPolyMesh mpm 
)

Construct from mappers.

Definition at line 101 of file faPatchMapper.C.

◆ ~faPatchMapper()

~faPatchMapper ( )
virtual

Destructor.

Definition at line 117 of file faPatchMapper.C.

Member Function Documentation

◆ size()

virtual label size ( ) const
inlinevirtual

Return size.

Implements FieldMapper.

Definition at line 122 of file faPatchMapper.H.

References faPatch::size().

Here is the call graph for this function:

◆ sizeBeforeMapping()

virtual label sizeBeforeMapping ( ) const
inlinevirtual

Return size of field before mapping.

Definition at line 128 of file faPatchMapper.H.

◆ direct()

virtual bool direct ( ) const
inlinevirtual

Is the mapping direct.

Implements FieldMapper.

Definition at line 134 of file faPatchMapper.H.

◆ hasUnmapped()

virtual bool hasUnmapped ( ) const
inlinevirtual

Are there unmapped values? I.e. do all size() elements get.

get value

Implements FieldMapper.

Definition at line 139 of file faPatchMapper.H.

◆ directAddressing()

const Foam::labelUList & directAddressing ( ) const
virtual

Return direct addressing.

Reimplemented from FieldMapper.

Definition at line 125 of file faPatchMapper.C.

◆ addressing()

const Foam::labelListList & addressing ( ) const
virtual

Return interpolated addressing.

Reimplemented from FieldMapper.

Definition at line 136 of file faPatchMapper.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< labelList >::null().

Here is the call graph for this function:

◆ weights()

const Foam::scalarListList & weights ( ) const
virtual

Return interpolation weights.

Reimplemented from FieldMapper.

Definition at line 146 of file faPatchMapper.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List< scalarList >::null().

Here is the call graph for this function:

The documentation for this class was generated from the following files: