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< scalar > scalarList
List of scalar.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
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.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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.
List< labelList > labelListList
List of labelList.
#define forAll(list, i)
Loop across all elements in list.
virtual ~fvSurfaceMapper()
Destructor.
virtual const labelListList & addressing() const
Return interpolated addressing.
virtual const labelUList & directAddressing() const
Return direct addressing.
List< scalarList > scalarListList
List of scalarList.
virtual const scalarListList & weights() const
Return interpolaion weights.
errorManip< error > abort(error &err)
virtual const labelList & insertedObjectLabels() const
Return list of inserted faces.
Template functions to aid in the implementation of demand driven data.
Mesh data needed to do the Finite Volume discretisation.
virtual const scalarListList & weights() const
Return interpolation weights.
virtual label nOldInternalFaces() const
Return number of old internalFaces.
List< label > labelList
A List of labels.
void deleteDemandDrivenData(DataPtr &dataPtr)
virtual const labelUList & directAddressing() const
Return direct addressing.
virtual const labelListList & addressing() const
Return interpolated addressing.
static constexpr const zero Zero
Global zero (0)