faAreaMapper Class Reference

FA area mapper. More...

Inheritance diagram for faAreaMapper:
Collaboration diagram for faAreaMapper:

Public Member Functions

 faAreaMapper (const faAreaMapper &)=delete
 No copy construct. More...
 
void operator= (const faAreaMapper &)=delete
 No copy assignment. More...
 
 faAreaMapper (const faMesh &mesh, const mapPolyMesh &mpm)
 Construct from components. More...
 
virtual ~faAreaMapper ()
 Destructor. More...
 
const labelListnewFaceLabels () const
 Return new face labels. More...
 
const labelListnewFaceLabelsMap () const
 Return new face labels map. 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 labelUListdirectAddressing () const
 Return direct addressing. More...
 
virtual const labelListListaddressing () const
 Return interpolated addressing. More...
 
virtual const scalarListListweights () const
 Return interpolation weights. More...
 
virtual bool insertedObjects () const
 Are there any inserted faces. More...
 
virtual const labelListinsertedObjectLabels () const
 Return list of inserted faces. More...
 
- Public Member Functions inherited from morphFieldMapper
 morphFieldMapper ()=default
 Default construct. More...
 
virtual ~morphFieldMapper ()=default
 Destructor. 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 mapDistributeBasedistributeMap () 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...
 

Detailed Description

FA area mapper.

Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.

Source files

Definition at line 51 of file faAreaMapper.H.

Constructor & Destructor Documentation

◆ faAreaMapper() [1/2]

faAreaMapper ( const faAreaMapper )
delete

No copy construct.

◆ faAreaMapper() [2/2]

faAreaMapper ( const faMesh mesh,
const mapPolyMesh mpm 
)

Construct from components.

Definition at line 223 of file faAreaMapper.C.

◆ ~faAreaMapper()

~faAreaMapper ( )
virtual

Destructor.

Definition at line 246 of file faAreaMapper.C.

Member Function Documentation

◆ operator=()

void operator= ( const faAreaMapper )
delete

No copy assignment.

◆ newFaceLabels()

const Foam::labelList & newFaceLabels ( ) const

Return new face labels.

Definition at line 252 of file faAreaMapper.C.

Referenced by faAreaMapper::size(), and faMesh::updateMesh().

Here is the caller graph for this function:

◆ newFaceLabelsMap()

const Foam::labelList & newFaceLabelsMap ( ) const

Return new face labels map.

For new faces return old face index if it exists If the face has been added, index will be -1

Definition at line 263 of file faAreaMapper.C.

Referenced by faMesh::mapOldAreas(), and faMesh::updateMesh().

Here is the caller graph for this function:

◆ size()

virtual label size ( ) const
inlinevirtual

Return size.

Implements FieldMapper.

Definition at line 173 of file faAreaMapper.H.

References faAreaMapper::newFaceLabels(), and UList< T >::size().

Here is the call graph for this function:

◆ sizeBeforeMapping()

virtual label sizeBeforeMapping ( ) const
inlinevirtual

Return size of field before mapping.

Implements morphFieldMapper.

Definition at line 181 of file faAreaMapper.H.

◆ direct()

virtual bool direct ( ) const
inlinevirtual

Is the mapping direct.

Implements FieldMapper.

Definition at line 189 of file faAreaMapper.H.

◆ hasUnmapped()

virtual bool hasUnmapped ( ) const
inlinevirtual

Any unmapped values?

I.e. do all size() elements get value

Implements FieldMapper.

Definition at line 194 of file faAreaMapper.H.

◆ directAddressing()

const Foam::labelUList & directAddressing ( ) const
virtual

Return direct addressing.

Reimplemented from FieldMapper.

Definition at line 274 of file faAreaMapper.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ addressing()

const Foam::labelListList & addressing ( ) const
virtual

Return interpolated addressing.

Reimplemented from FieldMapper.

Definition at line 292 of file faAreaMapper.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ weights()

const Foam::scalarListList & weights ( ) const
virtual

Return interpolation weights.

Reimplemented from FieldMapper.

Definition at line 310 of file faAreaMapper.C.

References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ insertedObjects()

virtual bool insertedObjects ( ) const
inlinevirtual

Are there any inserted faces.

Implements morphFieldMapper.

Definition at line 217 of file faAreaMapper.H.

References UList< T >::empty(), and faAreaMapper::insertedObjectLabels().

Here is the call graph for this function:

◆ insertedObjectLabels()

const Foam::labelList & insertedObjectLabels ( ) const
virtual

Return list of inserted faces.

Implements morphFieldMapper.

Definition at line 328 of file faAreaMapper.C.

Referenced by faAreaMapper::insertedObjects().

Here is the caller graph for this function:

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