Go to the documentation of this file.
45 #ifndef pointMVCWeight_H
46 #define pointMVCWeight_H
62 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
125 const label facei = -1
132 inline label
cell()
const
static int debug
Debug switch.
scalarField weights_
Weights applied to cell vertices.
Type interpolate(const GeometricField< Type, pointPatchField, pointMesh > &psip) const
Interpolate field.
Abstract base class for point-mesh patch fields.
Mesh consisting of general polyhedral cells.
static scalar tol
Tolerance used in calculating barycentric coordinates.
pointMVCWeight(const polyMesh &mesh, const vector &position, const label celli, const label facei=-1)
Construct from components.
Container to calculate weights for interpolating directly from vertices of cell using Mean Value Coor...
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Mesh representing a set of points created from polyMesh.
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.
const scalarField & weights() const
Interpolation weights (in order of cellPoints)
A face is a list of labels corresponding to mesh vertices.
Generic GeometricField class.