Go to the documentation of this file.
38 void Foam::faPatchMapper::calcAddressing()
const
43 <<
"Addressing already calculated"
57 Map<label> edgeIndexLookup;
61 forAll(oldEdgeFaces_, oefI)
63 if (reverseFaceMap[oldEdgeFaces_[oefI]] > -1)
66 edgeIndexLookup.insert(reverseFaceMap[oldEdgeFaces_[oefI]], oefI);
75 if (edgeIndexLookup.found(ef[efI]))
77 addr[efI] = edgeIndexLookup[ef[efI]];
91 void Foam::faPatchMapper::clearOut()
100 Foam::faPatchMapper::faPatchMapper
108 sizeBeforeMapping_(
patch.size()),
109 oldEdgeFaces_(
patch.edgeFaces()),
111 directAddrPtr_(
nullptr)
132 return *directAddrPtr_;
139 <<
"Requested interpolative addressing for a direct mapper."
149 <<
"Requested interpolative weights for a direct mapper."
List< label > labelList
A List of labels.
static const List< labelList > & null()
Return a null List.
virtual const labelUList & directAddressing() const
Return direct addressing.
virtual const scalarListList & weights() const
Return interpolation weights.
static constexpr const zero Zero
Global zero (0)
virtual ~faPatchMapper()
Destructor.
Template functions to aid in the implementation of demand driven data.
virtual const labelListList & addressing() const
Return interpolated addressing.
#define forAll(list, i)
Loop across all elements in list.
const labelUList & edgeFaces() const
Return edge-face addressing.
void deleteDemandDrivenData(DataPtr &dataPtr)
errorManip< error > abort(error &err)
const labelList & reverseFaceMap() const
Reverse face map.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
virtual label size() const
Patch size.