38 #ifndef Foam_fvPatchMapper_H 39 #define Foam_fvPatchMapper_H 72 const label sizeBeforeMapping_;
77 mutable bool hasUnmapped_;
80 mutable std::unique_ptr<labelList> directAddrPtr_;
83 mutable std::unique_ptr<labelListList> interpAddrPtr_;
86 mutable std::unique_ptr<scalarListList> weightsPtr_;
99 void calcAddressing()
const;
121 virtual label
size()
const 123 return patch_.
size();
129 return sizeBeforeMapping_;
133 virtual bool direct()
const
virtual label sizeBeforeMapping() const
Return size of field before mapping.
This object provides mapping and fill-in information for face data between the two meshes after the t...
virtual bool hasUnmapped() const
Any unmapped values?
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual ~fvPatchMapper()
Destructor.
virtual bool direct() const
Is the mapping direct.
virtual const labelUList & directAddressing() const
Return direct addressing.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
virtual label size() const
Return size.
virtual const labelListList & addressing() const
Return interpolated addressing.
A FieldMapper for finite-volume patch fields.
virtual label size() const
Patch size is the number of faces, but can be overloaded.
virtual bool direct() const
Is the mapping direct.
Specialisations of Field<T> for scalar, vector and tensor.
virtual const scalarListList & weights() const
Return interpolation weights.
const std::string patch
OpenFOAM patch number as a std::string.
Mapping class for a fvPatchField.