Mapping class for a fvPatchField. More...
Public Member Functions | |
fvPatchMapper (const fvPatch &patch, const faceMapper &faceMap) | |
Construct from mappers. More... | |
virtual | ~fvPatchMapper () |
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 labelUList & | directAddressing () const |
Return direct addressing. More... | |
virtual const labelListList & | addressing () const |
Return interpolated addressing. More... | |
virtual const scalarListList & | weights () const |
Return interpolaion weights. More... | |
![]() | |
fvPatchFieldMapper () | |
Null constructor. More... | |
![]() | |
FieldMapper () | |
Null constructor. More... | |
virtual | ~FieldMapper () |
Destructor. More... | |
virtual bool | distributed () const |
virtual const mapDistributeBase & | distributeMap () const |
template<class Type > | |
tmp< Field< Type > > | operator() (const Field< Type > &f) const |
Private Member Functions | |
fvPatchMapper (const fvPatchMapper &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const fvPatchMapper &) |
Disallow default bitwise assignment. More... | |
void | calcAddressing () const |
Calculate addressing for mapping with inserted cells. More... | |
void | clearOut () |
Clear out local storage. More... | |
Private Attributes | |
const fvPatch & | patch_ |
Reference to patch. More... | |
const faceMapper & | faceMap_ |
Reference to face mapper. More... | |
const label | sizeBeforeMapping_ |
Size before mapping. More... | |
bool | hasUnmapped_ |
labelList * | directAddrPtr_ |
Direct addressing (only one for of addressing is used) More... | |
labelListList * | interpolationAddrPtr_ |
Interpolated addressing (only one for of addressing is used) More... | |
scalarListList * | weightsPtr_ |
Interpolation weights. More... | |
|
private |
Disallow default bitwise copy construct.
fvPatchMapper | ( | const fvPatch & | patch, |
const faceMapper & | faceMap | ||
) |
Construct from mappers.
Definition at line 216 of file fvPatchMapper.C.
|
virtual |
Destructor.
Definition at line 233 of file fvPatchMapper.C.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate addressing for mapping with inserted cells.
Definition at line 35 of file fvPatchMapper.C.
References Foam::abort(), faceMapper::addressing(), fvSchemes::debug, fvPatchMapper::direct(), faceMapper::directAddressing(), fvPatchMapper::directAddrPtr_, Foam::endl(), fvPatchMapper::faceMap_, Foam::FatalError, FatalErrorInFunction, forAll, fvPatchMapper::hasUnmapped_, fvPatch::index(), fvPatchMapper::interpolationAddrPtr_, Foam::max(), Foam::min(), fvPatch::name(), faceMapper::oldPatchSizes(), faceMapper::oldPatchStarts(), fvPatchMapper::patch_, fvPatch::patchSlice(), List::setSize(), List::size(), Foam::sum(), w(), WarningInFunction, faceMapper::weights(), and fvPatchMapper::weightsPtr_.
|
private |
Clear out local storage.
Definition at line 203 of file fvPatchMapper.C.
References Foam::deleteDemandDrivenData().
|
inlinevirtual |
Return size.
Implements FieldMapper.
Definition at line 125 of file fvPatchMapper.H.
References fvPatchMapper::patch_, and fvPatch::size().
|
inlinevirtual |
Return size of field before mapping.
Definition at line 131 of file fvPatchMapper.H.
References fvPatchMapper::sizeBeforeMapping_.
|
inlinevirtual |
Is the mapping direct.
Implements FieldMapper.
Definition at line 137 of file fvPatchMapper.H.
References faceMapper::direct(), and fvPatchMapper::faceMap_.
Referenced by fvPatchMapper::calcAddressing().
|
inlinevirtual |
Are there unmapped values? I.e. do all size() elements get.
get value
Implements FieldMapper.
Definition at line 142 of file fvPatchMapper.H.
References fvPatchMapper::hasUnmapped_.
|
virtual |
Return direct addressing.
Reimplemented from FieldMapper.
Definition at line 241 of file fvPatchMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolated addressing.
Reimplemented from FieldMapper.
Definition at line 259 of file fvPatchMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolaion weights.
Reimplemented from FieldMapper.
Definition at line 277 of file fvPatchMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
private |
Reference to patch.
Definition at line 62 of file fvPatchMapper.H.
Referenced by fvPatchMapper::calcAddressing(), and fvPatchMapper::size().
|
private |
Reference to face mapper.
Definition at line 65 of file fvPatchMapper.H.
Referenced by fvPatchMapper::calcAddressing(), and fvPatchMapper::direct().
|
private |
Size before mapping.
Definition at line 68 of file fvPatchMapper.H.
Referenced by fvPatchMapper::sizeBeforeMapping().
|
mutableprivate |
Definition at line 73 of file fvPatchMapper.H.
Referenced by fvPatchMapper::calcAddressing(), and fvPatchMapper::hasUnmapped().
|
mutableprivate |
Direct addressing (only one for of addressing is used)
Definition at line 76 of file fvPatchMapper.H.
Referenced by fvPatchMapper::calcAddressing().
|
mutableprivate |
Interpolated addressing (only one for of addressing is used)
Definition at line 79 of file fvPatchMapper.H.
Referenced by fvPatchMapper::calcAddressing().
|
mutableprivate |
Interpolation weights.
Definition at line 82 of file fvPatchMapper.H.
Referenced by fvPatchMapper::calcAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.