FieldMapper with weighted mapping from (optionally remote) quantities. More...
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 labelListList & | addressing () const |
virtual const scalarListList & | weights () 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 |
FieldMapper with weighted mapping from (optionally remote) quantities.
Definition at line 46 of file distributedWeightedFvPatchFieldMapper.H.
|
inline |
Construct given addressing.
Definition at line 90 of file distributedWeightedFvPatchFieldMapper.H.
References Foam::exit(), Foam::FatalError, FatalErrorIn, and forAll.
|
inlinevirtual |
Destructor.
Definition at line 127 of file distributedWeightedFvPatchFieldMapper.H.
|
inlinevirtual |
Are there unmapped values? I.e. do all size() elements get.
get value
Implements fieldMapper.
Definition at line 133 of file distributedWeightedFvPatchFieldMapper.H.
References distributedWeightedFvPatchFieldMapper::addressing(), distributedWeightedFvPatchFieldMapper::DEFINE_FIELD_MAPPER_OPERATOR(), distributedWeightedFvPatchFieldMapper::FOR_ALL_FIELD_TYPES(), distributedWeightedFvPatchFieldMapper::operator()(), and distributedWeightedFvPatchFieldMapper::weights().
|
virtual |
Definition at line 31 of file distributedWeightedFvPatchFieldMapper.C.
Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().
|
virtual |
Definition at line 38 of file distributedWeightedFvPatchFieldMapper.C.
References distributedWeightedFvPatchFieldMapper::FOR_ALL_FIELD_TYPES(), and IMPLEMENT_FIELD_MAPPER_OPERATOR.
Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().
FOR_ALL_FIELD_TYPES | ( | DEFINE_FIELD_MAPPER_OPERATOR | ) |
Map a field.
Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped(), and distributedWeightedFvPatchFieldMapper::weights().
DEFINE_FIELD_MAPPER_OPERATOR | ( | label | ) |
Map a label field.
Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().
Map a temporary field.
Definition at line 76 of file distributedWeightedFvPatchFieldMapperTemplates.C.
Referenced by distributedWeightedFvPatchFieldMapper::hasUnmapped().
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.
Foam::tmp<Foam::Field<Type> > operator() | ( | const tmp< Field< Type >> & | tmapF | ) | const |
Definition at line 89 of file distributedWeightedFvPatchFieldMapperTemplates.C.
References tf.