Go to the documentation of this file.
37 void Foam::fvSurfaceMapper::calcAddressing()
const
42 || interpolationAddrPtr_
44 || insertedObjectLabelsPtr_
48 <<
"Addressing already calculated"
70 if (addr[facei] > oldNInternal)
79 interpolationAddrPtr_ =
96 if (
max(addr[facei]) >= oldNInternal)
111 insertedObjectLabelsPtr_ =
new labelList(insFaces.size());
112 labelList& ins = *insertedObjectLabelsPtr_;
119 if (insFaces[facei] <
size())
121 ins[nIns] = insFaces[facei];
131 insertedObjectLabelsPtr_ =
new labelList(0);
136 void Foam::fvSurfaceMapper::clearOut()
148 Foam::fvSurfaceMapper::fvSurfaceMapper
156 directAddrPtr_(nullptr),
157 interpolationAddrPtr_(nullptr),
158 weightsPtr_(nullptr),
159 insertedObjectLabelsPtr_(nullptr)
178 <<
"Requested direct addressing for an interpolative mapper."
187 return *directAddrPtr_;
196 <<
"Requested interpolative addressing for a direct mapper."
200 if (!interpolationAddrPtr_)
205 return *interpolationAddrPtr_;
214 <<
"Requested interpolative weights for a direct mapper."
229 if (!insertedObjectLabelsPtr_)
234 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
static constexpr const zero Zero
Template functions to aid in the implementation of demand driven data.
virtual const labelListList & addressing() const
virtual const labelUList & directAddressing() const
void deleteDemandDrivenData(DataPtr &dataPtr)
virtual label size() const
virtual bool direct() const
virtual ~fvSurfaceMapper()
label max(const labelHashSet &set, label maxValue=labelMin)
virtual const scalarListList & weights() const
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
virtual const labelList & insertedObjectLabels() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual const labelList & insertedObjectLabels() const
virtual bool insertedObjects() const
virtual label nOldInternalFaces() const
virtual const labelListList & addressing() const
virtual const scalarListList & weights() const