Go to the documentation of this file.
38 Foam::sampledDistanceSurface::sampleOnFaces
55 Foam::sampledDistanceSurface::sampleOnPoints
60 if (this->hasIsoSurface())
62 return this->sampleOnIsoSurfacePoints(interpolator);
77 Foam::sampledDistanceSurface::sampleOnIsoSurfacePoints
82 if (!this->hasIsoSurface())
85 <<
"cannot call without an iso-surface" <<
nl
90 const auto& volFld = interpolator.
psi();
92 tmp<GeometricField<Type, fvPatchField, volMesh>> tvolFld(volFld);
93 tmp<GeometricField<Type, pointPatchField, pointMesh>> tpointFld;
103 tvolFld.reset(pointAverage(tpointFld()));
106 return this->isoSurfaceInterpolate(tvolFld(), tpointFld());
static tmp< Field< Type > > sampleOnFaces(const interpolation< Type > &sampler, const labelUList &elements, const faceList &fcs, const pointField &pts, const Type &defaultValue=Type(Zero))
A class for managing temporary objects.
static const volPointInterpolation & New(const fvMesh &mesh, Args &&... args)
virtual const faceList & faces() const
const GeometricField< Type, fvPatchField, volMesh > & psi() const
virtual const pointField & points() const
const labelList & meshCells() const
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
void reset(tmp< T > &&other) noexcept
#define FatalErrorInFunction
static tmp< Field< Type > > sampleOnPoints(const interpolation< Type > &interpolator, const labelUList &elements, const faceList &fcs, const pointField &pts)
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)