39 #ifndef cellPoint_interpolation_H
40 #define cellPoint_interpolation_H
50 namespace interpolations
130 const label facei = -1
138 const label facei = -1
178 const label facei = -1
186 const label facei = -1
197 typename std::conditional
Templated 4x3 tensor derived from VectorSpace. Has 12 components. Can represent a barycentric transfo...
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Abstract base class for interpolation.
barycentric y0() const
Return the barycentric origin for the above transforms.
cellPointBase(const VolField< Type > &psi)
Construct from components.
void tetFaceTriTransform(const tetIndices &tetIs, vector &x0, scalar &detA, barycentricTensor &T) const
Return the transform associated with the face-triangle of the given.
tetIndices findTet(const point &x, const label celli, const label facei, vector &x0, scalar &detA, barycentricTensor &T) const
Find the tetrahedron (or triangle) containing the given point, and.
Type interpolate(const vector &position, const label celli, const label facei=-1) const
Interpolate to the given point in the given cell.
void tetTransform(const tetIndices &tetIs, vector &x0, scalar &detA, barycentricTensor &T) const
Return the transform associated with the given tetrahedron.
interpolationGradType< Type > interpolateGrad(const tetIndices &tetIs, const scalar detA, const barycentricTensor T) const
Interpolate the gradient to the given point in the given cell.
Piecewise-linear interpolation method. Uses volPointInterpolation to create values on the points....
virtual autoPtr< interpolation< Type > > clone() const
Clone.
TypeName("cellPoint")
Runtime type information.
Base class for interpolations that require a vol-point interpolated field.
const PointField< Type > & psip() const
Access the point field.
Traits class for primitives.
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
A class for managing temporary objects.
const volScalarField & psi
typename std::conditional<(pTraits< Type >::rank > 1), cellPointBase< Type >, cellPointGradBase< Type > >::type cellPointBaseOrGradBase
barycentric coordinates(const polyMesh &mesh, const point &position, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the coordinates given the position and tet topology.
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
typename outerProduct< Type, vector >::type interpolationGradType
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.