43 #ifndef Foam_pointMVCWeight_H 44 #define Foam_pointMVCWeight_H 62 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
124 const label facei = -1
A face is a list of labels corresponding to mesh vertices.
Container to calculate weights for interpolating directly from vertices of cell using Mean Value Coor...
static int debug
Debug switch.
Generic GeometricField class.
static scalar tol
Tolerance used in calculating barycentric coordinates.
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.
pointMVCWeight(const polyMesh &mesh, const vector &position, const label celli, const label facei=-1)
Construct from components.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
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 noexcept
Cell index.
Mesh consisting of general polyhedral cells.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
const scalarField & weights() const noexcept
Interpolation weights (in order of cellPoints)