36 void Foam::fvSurfaceMapper::calcAddressing()
const 41 || interpolationAddrPtr_
43 || insertedObjectLabelsPtr_
47 <<
"Addressing already calculated" 73 if (addr[facei] > oldNInternal)
82 interpolationAddrPtr_ =
107 if (
max(addr[facei]) >= oldNInternal)
122 insertedObjectLabelsPtr_ =
new labelList(insFaces.size());
123 labelList& ins = *insertedObjectLabelsPtr_;
132 ins[nIns] = insFaces[facei];
142 insertedObjectLabelsPtr_ =
new labelList(0);
147 void Foam::fvSurfaceMapper::clearOut()
167 directAddrPtr_(
nullptr),
168 interpolationAddrPtr_(
nullptr),
169 weightsPtr_(
nullptr),
170 insertedObjectLabelsPtr_(
nullptr)
189 <<
"Requested direct addressing for an interpolative mapper." 198 return *directAddrPtr_;
207 <<
"Requested interpolative addressing for a direct mapper." 211 if (!interpolationAddrPtr_)
216 return *interpolationAddrPtr_;
225 <<
"Requested interpolative weights for a direct mapper." 240 if (!insertedObjectLabelsPtr_)
245 return *insertedObjectLabelsPtr_;
List< labelList > labelListList
A List of labelList.
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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 nInternalFaces() const
fvSurfaceMapper(const fvMesh &mesh, const faceMapper &fMapper)
Construct from components.
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 ~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 interpolation 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 interpolation 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.