Go to the documentation of this file.
38 void Foam::fvSurfaceMapper::calcAddressing()
const
43 || interpolationAddrPtr_
45 || insertedObjectLabelsPtr_
49 <<
"Addressing already calculated"
71 if (addr[facei] > oldNInternal)
80 interpolationAddrPtr_ =
97 if (
max(addr[facei]) >= oldNInternal)
112 insertedObjectLabelsPtr_ =
new labelList(insFaces.size());
113 labelList& ins = *insertedObjectLabelsPtr_;
120 if (insFaces[facei] <
size())
122 ins[nIns] = insFaces[facei];
132 insertedObjectLabelsPtr_ =
new labelList(0);
137 void Foam::fvSurfaceMapper::clearOut()
149 Foam::fvSurfaceMapper::fvSurfaceMapper
157 directAddrPtr_(
nullptr),
158 interpolationAddrPtr_(
nullptr),
159 weightsPtr_(
nullptr),
160 insertedObjectLabelsPtr_(
nullptr)
179 <<
"Requested direct addressing for an interpolative mapper."
188 return *directAddrPtr_;
197 <<
"Requested interpolative addressing for a direct mapper."
201 if (!interpolationAddrPtr_)
206 return *interpolationAddrPtr_;
215 <<
"Requested interpolative weights for a direct mapper."
230 if (!insertedObjectLabelsPtr_)
235 return *insertedObjectLabelsPtr_;
List< label > labelList
A List of labels.
List< scalarList > scalarListList
A List of scalarList.
List< scalar > scalarList
A List of scalars.
virtual const labelUList & directAddressing() const
Return direct addressing.
static constexpr const zero Zero
Global zero.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const labelUList & directAddressing() const
Return direct addressing.
#define forAll(list, i)
Loop across all elements in list.
void deleteDemandDrivenData(DataPtr &dataPtr)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual label size() const
Return size.
virtual bool direct() const
Is the mapping direct.
virtual ~fvSurfaceMapper()
Destructor.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
SubList< label > subList
Declare type of subList.
virtual const scalarListList & weights() const
Return interpolaion weights.
This object provides mapping and fill-in information for face data between the two meshes after the t...
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual const labelList & insertedObjectLabels() const
Return list of inserted faces.
virtual const labelList & insertedObjectLabels() const
Return list of inserted faces.
virtual bool insertedObjects() const
Are there any inserted faces.
virtual label nOldInternalFaces() const
Return number of old internalFaces.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const scalarListList & weights() const
Return interpolation weights.