43#ifndef Foam_pointMVCWeight_H
44#define Foam_pointMVCWeight_H
62template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
124 const label facei = -1
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
A HashTable to objects of type <T> with a label key.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A face is a list of labels corresponding to mesh vertices.
Type interpolate(const GeometricField< Type, pointPatchField, pointMesh > &psip) const
Interpolate field.
const label cellIndex_
Cell index.
static scalar tol
Tolerance used in calculating barycentric coordinates.
scalarField weights_
Weights applied to cell vertices.
label cell() const noexcept
Cell index.
static int debug
Debug switch.
const scalarField & weights() const noexcept
Interpolation weights (in order of cellPoints).
pointMVCWeight(const polyMesh &mesh, const vector &position, const label celli, const label facei=-1)
Construct from components.
void calcWeights(const Map< label > &toLocal, const face &f, const UList< point > &u, const scalarField &dist, scalarField &weights) const
Calculate weights from single face's vertices only.
Mesh representing a set of points created from polyMesh.
Abstract base class for point-mesh patch fields.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.