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