generalFieldMapper Class Referenceabstract

General field mapper supporting both direct and weighted mapping. More...

Inheritance diagram for generalFieldMapper:
Collaboration diagram for generalFieldMapper:

Public Member Functions

 generalFieldMapper ()
 Null constructor. More...
 
virtual ~generalFieldMapper ()
 Destructor. More...
 
virtual bool direct () const =0
 
virtual bool hasUnmapped () const =0
 Are there unmapped values? I.e. do all size() elements get. More...
 
virtual const labelUListdirectAddressing () const
 
virtual const labelListListaddressing () const
 
virtual const scalarListListweights () const
 
virtual void operator() (Field< scalar > &f, const Field< scalar > &mapF) const
 
virtual void operator() (Field< vector > &f, const Field< vector > &mapF) const
 
virtual void operator() (Field< sphericalTensor > &f, const Field< sphericalTensor > &mapF) const
 
virtual void operator() (Field< symmTensor > &f, const Field< symmTensor > &mapF) const
 
virtual void operator() (Field< tensor > &f, const Field< tensor > &mapF) const
 
virtual tmp< Field< scalar > > operator() (const Field< scalar > &mapF) const
 
virtual tmp< Field< vector > > operator() (const Field< vector > &mapF) const
 
virtual tmp< Field< sphericalTensor > > operator() (const Field< sphericalTensor > &mapF) const
 
virtual tmp< Field< symmTensor > > operator() (const Field< symmTensor > &mapF) const
 
virtual tmp< Field< tensor > > operator() (const Field< tensor > &mapF) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > map (const Field< Type > &mapF) const
 
- Public Member Functions inherited from fieldMapper
 fieldMapper ()
 Null constructor. More...
 
virtual ~fieldMapper ()
 Destructor. More...
 
template<class Type >
void operator() (Field< Type > &f, const tmp< Field< Type >> &tmapF) const
 
template<class Type >
tmp< Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 

Detailed Description

General field mapper supporting both direct and weighted mapping.

Definition at line 45 of file generalFieldMapper.H.

Constructor & Destructor Documentation

◆ generalFieldMapper()

generalFieldMapper ( )
inline

Null constructor.

Definition at line 63 of file generalFieldMapper.H.

◆ ~generalFieldMapper()

virtual ~generalFieldMapper ( )
inlinevirtual

Member Function Documentation

◆ direct()

◆ hasUnmapped()

virtual bool hasUnmapped ( ) const
pure virtual

◆ directAddressing()

const Foam::labelUList & directAddressing ( ) const
virtual

◆ addressing()

const Foam::labelListList & addressing ( ) const
virtual

◆ weights()

const Foam::scalarListList & weights ( ) const
virtual

Reimplemented in pointPatchMapper, fvPatchMapper, faceMapper, fvSurfaceMapper, pointMapper, singleCellFvMesh::agglomPatchFieldMapper, cellMapper, and weightedFvPatchFieldMapper.

Definition at line 50 of file generalFieldMapper.C.

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

Referenced by meshToMesh0::V(), and generalFieldMapper::~generalFieldMapper().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [1/10]

void operator() ( Field< scalar > &  f,
const Field< scalar > &  mapF 
) const
virtual

Implements fieldMapper.

Definition at line 63 of file generalFieldMapper.C.

◆ operator()() [2/10]

void operator() ( Field< vector > &  f,
const Field< vector > &  mapF 
) const
virtual

Implements fieldMapper.

Definition at line 73 of file generalFieldMapper.C.

◆ operator()() [3/10]

void operator() ( Field< sphericalTensor > &  f,
const Field< sphericalTensor > &  mapF 
) const
virtual

Implements fieldMapper.

Definition at line 83 of file generalFieldMapper.C.

◆ operator()() [4/10]

void operator() ( Field< symmTensor > &  f,
const Field< symmTensor > &  mapF 
) const
virtual

Implements fieldMapper.

Definition at line 93 of file generalFieldMapper.C.

◆ operator()() [5/10]

void operator() ( Field< tensor > &  f,
const Field< tensor > &  mapF 
) const
virtual

Implements fieldMapper.

Definition at line 103 of file generalFieldMapper.C.

◆ operator()() [6/10]

Foam::tmp< Foam::Field< Foam::scalar > > operator() ( const Field< scalar > &  mapF) const
virtual

Implements fieldMapper.

Definition at line 113 of file generalFieldMapper.C.

◆ operator()() [7/10]

Foam::tmp< Foam::Field< Foam::vector > > operator() ( const Field< vector > &  mapF) const
virtual

Implements fieldMapper.

Definition at line 122 of file generalFieldMapper.C.

◆ operator()() [8/10]

Foam::tmp< Foam::Field< Foam::sphericalTensor > > operator() ( const Field< sphericalTensor > &  mapF) const
virtual

Implements fieldMapper.

Definition at line 132 of file generalFieldMapper.C.

◆ operator()() [9/10]

Foam::tmp< Foam::Field< Foam::symmTensor > > operator() ( const Field< symmTensor > &  mapF) const
virtual

Implements fieldMapper.

Definition at line 141 of file generalFieldMapper.C.

◆ operator()() [10/10]

Foam::tmp< Foam::Field< Foam::tensor > > operator() ( const Field< tensor > &  mapF) const
virtual

Implements fieldMapper.

Definition at line 150 of file generalFieldMapper.C.

◆ map()

Foam::tmp<Foam::Field<Type> > map ( const Field< Type > &  mapF) const

Definition at line 64 of file generalFieldMapperTemplates.C.

References generalFieldMapper::addressing(), generalFieldMapper::direct(), generalFieldMapper::directAddressing(), tmp< T >::ref(), and tf.

Here is the call graph for this function:

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