37void 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);
136void Foam::fvSurfaceMapper::clearOut()
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_;
SubList< label > subList
Declare type of subList.
This object provides mapping and fill-in information for face data between the two meshes after the t...
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const scalarListList & weights() const
Return interpolaion weights.
virtual const labelUList & directAddressing() const
Return direct addressing.
virtual const labelList & insertedObjectLabels() const
Return list of inserted faces.
virtual label nOldInternalFaces() const
Return number of old internalFaces.
Mesh data needed to do the Finite Volume discretisation.
virtual label size() const
Return size.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const scalarListList & weights() const
Return interpolation weights.
virtual const labelUList & directAddressing() const
Return direct addressing.
virtual const labelList & insertedObjectLabels() const
Return list of inserted faces.
virtual ~fvSurfaceMapper()
Destructor.
virtual bool insertedObjects() const
Are there any inserted faces.
virtual bool direct() const
Is the mapping direct.
Template functions to aid in the implementation of demand driven data.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< label > labelList
A List of labels.
List< scalar > scalarList
A List of scalars.
List< labelList > labelListList
A List of labelList.
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0)
List< scalarList > scalarListList
A List of scalarList.
void deleteDemandDrivenData(DataPtr &dataPtr)
#define forAll(list, i)
Loop across all elements in list.