43 #ifndef pointMVCWeight_H 44 #define pointMVCWeight_H 60 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
123 const label faceI = -1
const scalarField & weights() const
Interpolation weights (in order of cellPoints)
scalarField weights_
Weights applied to cell vertices.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Mesh representing a set of points created from polyMesh.
static int debug
Debug switch.
A face is a list of labels corresponding to mesh vertices.
Abstract base class for point-mesh patch fields.
label cell() const
Cell index.
Generic GeometricField class.
Mesh consisting of general polyhedral cells.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Container to calculate weights for interpolating directly from vertices of cell using Mean Value Coor...
static scalar tol
Tolerance used in calculating barycentric co-ordinates.
const label cellIndex_
Cell index.
pointMVCWeight(const polyMesh &mesh, const vector &position, const label cellI, const label faceI=-1)
Construct from components.
Type interpolate(const GeometricField< Type, pointPatchField, pointMesh > &psip) const
Interpolate field.
void calcWeights(const Map< label > &toLocal, const face &f, const DynamicList< point > &u, const scalarField &dist, scalarField &weights) const
Calculate weights from single face's vertices only.