distributedWeightedFvPatchFieldMapper Class Reference

FieldMapper with weighted mapping from (optionally remote) quantities. More...

Inheritance diagram for distributedWeightedFvPatchFieldMapper:
Collaboration diagram for distributedWeightedFvPatchFieldMapper:

Public Member Functions

 distributedWeightedFvPatchFieldMapper (const label singlePatchProc, const distributionMapBase *distMapPtr, const labelListList &addressing, const scalarListList &weights)
 Construct given addressing. More...
 
virtual ~distributedWeightedFvPatchFieldMapper ()
 Destructor. More...
 
virtual bool hasUnmapped () const
 Are there unmapped values? I.e. do all size() elements get. More...
 
virtual const labelListListaddressing () const
 
virtual const scalarListListweights () const
 
 FOR_ALL_FIELD_TYPES (DEFINE_FIELD_MAPPER_OPERATOR,)
 Map a field. More...
 
 DEFINE_FIELD_MAPPER_OPERATOR (label,)
 Map a label field. More...
 
template<class Type >
void operator() (Field< Type > &f, const tmp< Field< Type >> &tmapF) const
 Map a temporary field. More...
 
template<class Type >
tmp< Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 Map a temporary field. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > map (const Field< Type > &mapF) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 
- Public Member Functions inherited from fvPatchFieldMapper
 fvPatchFieldMapper ()
 Null constructor. More...
 
- Public Member Functions inherited from fieldMapper
 fieldMapper ()
 Null constructor. More...
 
virtual ~fieldMapper ()
 Destructor. More...
 
 FOR_ALL_FIELD_TYPES (DEFINE_FIELD_MAPPER_OPERATOR,=0)
 Map a field. More...
 
virtual void operator() (Field< label > &f, const Field< label > &mapF) const =0
 Map a label field. More...
 
virtual tmp< Field< label > > operator() (const Field< label > &mapF) const =0
 
template<class Type >
void operator() (Field< Type > &f, const tmp< Field< Type >> &tmapF) const
 Map a temporary field. More...
 
template<class Type >
tmp< Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 Map a temporary field. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > operator() (const tmp< Field< Type >> &tmapF) const
 

Detailed Description

FieldMapper with weighted mapping from (optionally remote) quantities.

Definition at line 46 of file distributedWeightedFvPatchFieldMapper.H.

Constructor & Destructor Documentation

◆ distributedWeightedFvPatchFieldMapper()

distributedWeightedFvPatchFieldMapper ( const label  singlePatchProc,
const distributionMapBase distMapPtr,
const labelListList addressing,
const scalarListList weights 
)
inline

Construct given addressing.

Definition at line 90 of file distributedWeightedFvPatchFieldMapper.H.

References Foam::exit(), Foam::FatalError, FatalErrorIn, and forAll.

Here is the call graph for this function:

◆ ~distributedWeightedFvPatchFieldMapper()

virtual ~distributedWeightedFvPatchFieldMapper ( )
inlinevirtual

Destructor.

Definition at line 127 of file distributedWeightedFvPatchFieldMapper.H.

Member Function Documentation

◆ hasUnmapped()

virtual bool hasUnmapped ( ) const
inlinevirtual

◆ addressing()

const Foam::labelListList & addressing ( ) const
virtual

Definition at line 31 of file distributedWeightedFvPatchFieldMapper.C.

Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().

Here is the caller graph for this function:

◆ weights()

const Foam::scalarListList & weights ( ) const
virtual

Definition at line 38 of file distributedWeightedFvPatchFieldMapper.C.

References distributedWeightedFvPatchFieldMapper::FOR_ALL_FIELD_TYPES(), and IMPLEMENT_FIELD_MAPPER_OPERATOR.

Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().

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

◆ FOR_ALL_FIELD_TYPES()

FOR_ALL_FIELD_TYPES ( DEFINE_FIELD_MAPPER_OPERATOR  )

Map a field.

Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped(), and distributedWeightedFvPatchFieldMapper::weights().

Here is the caller graph for this function:

◆ DEFINE_FIELD_MAPPER_OPERATOR()

DEFINE_FIELD_MAPPER_OPERATOR ( label  )

Map a label field.

Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().

Here is the caller graph for this function:

◆ operator()() [1/3]

void operator() ( Field< Type > &  f,
const tmp< Field< Type >> &  tmapF 
) const

Map a temporary field.

Definition at line 76 of file distributedWeightedFvPatchFieldMapperTemplates.C.

Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().

Here is the caller graph for this function:

◆ operator()() [2/3]

tmp<Field<Type> > operator() ( const tmp< Field< Type >> &  tmapF) const

Map a temporary field.

◆ map()

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

Definition at line 64 of file distributedWeightedFvPatchFieldMapperTemplates.C.

References tmp< T >::ref(), and tf.

Here is the call graph for this function:

◆ operator()() [3/3]

Foam::tmp<Foam::Field<Type> > operator() ( const tmp< Field< Type >> &  tmapF) const

Definition at line 89 of file distributedWeightedFvPatchFieldMapperTemplates.C.

References tf.


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