36 void Foam::fvSurfaceMapper::calcAddressing()
const 41 || interpolationAddrPtr_
43 || insertedObjectLabelsPtr_
47 <<
"Addressing already calculated" 69 if (addr[facei] > oldNInternal)
78 interpolationAddrPtr_ =
95 if (
max(addr[facei]) >= oldNInternal)
110 insertedObjectLabelsPtr_ =
new labelList(insFaces.size());
111 labelList& ins = *insertedObjectLabelsPtr_;
118 if (insFaces[facei] <
size())
120 ins[nIns] = insFaces[facei];
130 insertedObjectLabelsPtr_ =
new labelList(0);
135 void Foam::fvSurfaceMapper::clearOut()
147 Foam::fvSurfaceMapper::fvSurfaceMapper
155 directAddrPtr_(
nullptr),
156 interpolationAddrPtr_(
nullptr),
157 weightsPtr_(
nullptr),
158 insertedObjectLabelsPtr_(
nullptr)
177 <<
"Requested direct addressing for an interpolative mapper." 186 return *directAddrPtr_;
195 <<
"Requested interpolative addressing for a direct mapper." 199 if (!interpolationAddrPtr_)
204 return *interpolationAddrPtr_;
213 <<
"Requested interpolative weights for a direct mapper." 228 if (!insertedObjectLabelsPtr_)
233 return *insertedObjectLabelsPtr_;
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual bool insertedObjects() const
Are there any inserted faces.
This object provides mapping and fill-in information for face data between the two meshes after the t...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual bool direct() const
Is the mapping direct.
virtual const labelList & insertedObjectLabels() const
Return list of inserted faces.
SubList< label > subList
Declare type of subList.
virtual label size() const
Return size.
virtual ~fvSurfaceMapper()
Destructor.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const labelUList & directAddressing() const
Return direct addressing.
List< scalarList > scalarListList
List< scalar > scalarList
A List of scalars.
virtual const scalarListList & weights() const
Return interpolaion weights.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
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
Return list of inserted faces.
Mesh data needed to do the Finite Volume discretisation.
virtual const scalarListList & weights() const
Return interpolaion weights.
virtual label nOldInternalFaces() const
Return number of old internalFaces.
void deleteDemandDrivenData(DataPtr &dataPtr)
virtual const labelUList & directAddressing() const
Return direct addressing.
virtual const labelListList & addressing() const
Return interpolated addressing.