FV surface mapper. More...
Public Member Functions | |
fvSurfaceMapper (const fvMesh &mesh, const faceMapper &fMapper) | |
Construct from components. More... | |
virtual | ~fvSurfaceMapper () |
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 |
Has unmapped elements. 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... | |
virtual bool | insertedObjects () const |
Are there any inserted faces. More... | |
virtual const labelList & | insertedObjectLabels () const |
Return list of inserted faces. More... | |
const labelHashSet & | flipFaceFlux () const |
Return flux flip map. More... | |
![]() | |
morphFieldMapper () | |
Null constructor. More... | |
virtual | ~morphFieldMapper () |
Destructor. 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 | |
fvSurfaceMapper (const fvSurfaceMapper &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const fvSurfaceMapper &) |
Disallow default bitwise assignment. More... | |
void | calcAddressing () const |
Calculate addressing. More... | |
void | clearOut () |
Clear out local storage. More... | |
Private Attributes | |
const fvMesh & | mesh_ |
Reference to mesh. More... | |
const faceMapper & | faceMap_ |
Reference to face mapper. More... | |
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... | |
labelList * | insertedObjectLabelsPtr_ |
Inserted faces. More... | |
|
private |
Disallow default bitwise copy construct.
fvSurfaceMapper | ( | const fvMesh & | mesh, |
const faceMapper & | fMapper | ||
) |
Construct from components.
Definition at line 149 of file fvSurfaceMapper.C.
|
virtual |
Destructor.
Definition at line 165 of file fvSurfaceMapper.C.
|
private |
Disallow default bitwise assignment.
|
private |
Calculate addressing.
Definition at line 36 of file fvSurfaceMapper.C.
References Foam::abort(), faceMapper::addressing(), fvSurfaceMapper::direct(), faceMapper::directAddressing(), fvSurfaceMapper::directAddrPtr_, fvSurfaceMapper::faceMap_, Foam::FatalError, FatalErrorInFunction, forAll, faceMapper::insertedObjectLabels(), fvSurfaceMapper::insertedObjectLabelsPtr_, fvSurfaceMapper::insertedObjects(), fvSurfaceMapper::interpolationAddrPtr_, Foam::max(), faceMapper::nOldInternalFaces(), List::setSize(), List::size(), fvSurfaceMapper::size(), w(), faceMapper::weights(), and fvSurfaceMapper::weightsPtr_.
|
private |
Clear out local storage.
Definition at line 135 of file fvSurfaceMapper.C.
References Foam::deleteDemandDrivenData().
|
inlinevirtual |
Return size.
Implements FieldMapper.
Definition at line 118 of file fvSurfaceMapper.H.
References fvSurfaceMapper::mesh_, and primitiveMesh::nInternalFaces().
Referenced by fvSurfaceMapper::calcAddressing().
|
inlinevirtual |
Return size of field before mapping.
Implements morphFieldMapper.
Definition at line 124 of file fvSurfaceMapper.H.
References fvSurfaceMapper::faceMap_, and faceMapper::internalSizeBeforeMapping().
|
inlinevirtual |
Is the mapping direct.
Implements FieldMapper.
Definition at line 130 of file fvSurfaceMapper.H.
References faceMapper::direct(), and fvSurfaceMapper::faceMap_.
Referenced by fvSurfaceMapper::calcAddressing().
|
inlinevirtual |
Has unmapped elements.
Implements FieldMapper.
Definition at line 136 of file fvSurfaceMapper.H.
References fvSurfaceMapper::insertedObjects().
|
virtual |
Return direct addressing.
Reimplemented from FieldMapper.
Definition at line 173 of file fvSurfaceMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolated addressing.
Reimplemented from FieldMapper.
Definition at line 191 of file fvSurfaceMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
virtual |
Return interpolaion weights.
Reimplemented from FieldMapper.
Definition at line 209 of file fvSurfaceMapper.C.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inlinevirtual |
Are there any inserted faces.
Implements morphFieldMapper.
Definition at line 151 of file fvSurfaceMapper.H.
References fvSurfaceMapper::faceMap_, and faceMapper::insertedObjects().
Referenced by fvSurfaceMapper::calcAddressing(), and fvSurfaceMapper::hasUnmapped().
|
virtual |
Return list of inserted faces.
Implements morphFieldMapper.
Definition at line 227 of file fvSurfaceMapper.C.
|
inline |
Return flux flip map.
Definition at line 160 of file fvSurfaceMapper.H.
References fvSurfaceMapper::faceMap_, and faceMapper::flipFaceFlux().
|
private |
Reference to mesh.
Definition at line 61 of file fvSurfaceMapper.H.
Referenced by fvSurfaceMapper::size().
|
private |
Reference to face mapper.
Definition at line 64 of file fvSurfaceMapper.H.
Referenced by fvSurfaceMapper::calcAddressing(), fvSurfaceMapper::direct(), fvSurfaceMapper::flipFaceFlux(), fvSurfaceMapper::insertedObjects(), and fvSurfaceMapper::sizeBeforeMapping().
|
mutableprivate |
Direct addressing (only one for of addressing is used)
Definition at line 70 of file fvSurfaceMapper.H.
Referenced by fvSurfaceMapper::calcAddressing().
|
mutableprivate |
Interpolated addressing (only one for of addressing is used)
Definition at line 73 of file fvSurfaceMapper.H.
Referenced by fvSurfaceMapper::calcAddressing().
|
mutableprivate |
Interpolation weights.
Definition at line 76 of file fvSurfaceMapper.H.
Referenced by fvSurfaceMapper::calcAddressing().
|
mutableprivate |
Inserted faces.
Definition at line 79 of file fvSurfaceMapper.H.
Referenced by fvSurfaceMapper::calcAddressing().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.