32 Foam::sampledSurfaces::triSurfaceMesh::sampleField
41 if (sampleSource_ ==
cells || sampleSource_ == insideCells)
45 forAll(sampleElements_, triI)
47 values[triI] = vField[sampleElements_[triI]];
75 forAll(sampleElements_, triI)
77 label facei = sampleElements_[triI];
78 values[triI] = bVals[facei-
mesh().nInternalFaces()];
88 Foam::sampledSurfaces::triSurfaceMesh::interpolateField
97 if (sampleSource_ ==
cells || sampleSource_ == insideCells)
101 forAll(sampleElements_, pointi)
105 samplePoints_[pointi],
106 sampleElements_[pointi]
114 forAll(samplePoints_, pointi)
116 label facei = sampleElements_[pointi];
120 samplePoints_[pointi],
121 mesh().faceOwner()[facei],
#define forAll(list, i)
Loop across all elements in list.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
Generic GeometricField class.
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0
Interpolate field to the given point in the given cell.
Pre-declare SubField and related Field type.
label size() const
Return the number of elements in the UPtrList.
Abstract base class for interpolation.
A class for managing temporary objects.