38 Foam::sampledIsoSurface::sampleOnFaces
57 Foam::sampledIsoSurface::sampleOnPoints
66 return this->sampleOnIsoSurfacePoints(interpolator);
81 Foam::sampledIsoSurface::sampleOnIsoSurfacePoints
89 <<
"cannot call without an iso-surface" <<
nl 94 const auto& volFld = interpolator.
psi();
96 tmp<VolumeField<Type>> tvolFld(volFld);
97 tmp<PointField<Type>> tpointFld;
102 tvolFld.reset(subMeshPtr_->interpolate(volFld));
113 tvolFld.reset(pointAverage(tpointFld()));
116 return isoSurfacePtr_->interpolate(tvolFld(), tpointFld());
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const volPointInterpolation & New(const fvMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
constexpr char nl
The newline '\n' character (0x0a)
const labelList & meshCells() const
For each face, the original cell in mesh.
static tmp< Field< Type > > sampleOnPoints(const interpolation< Type > &interpolator, const labelUList &elements, const faceList &fcs, const pointField &pts)
Loop for interpolating volume elements to face points.
static tmp< Field< Type > > sampleOnFaces(const interpolation< Type > &sampler, const labelUList &elements, const faceList &fcs, const pointField &pts, const Type &defaultValue=Type(Zero))
Loop for sampling volume elements to faces.
virtual const pointField & points() const
Points of surface.
const meshedSurface & surface() const
The currently created surface geometry.
Abstract base class for volume field interpolation.
A class for managing temporary objects.
const GeometricField< Type, fvPatchField, volMesh > & psi() const noexcept
Return the field to be interpolated.