Go to the documentation of this file.
38 Foam::sampledCuttingPlane::sampleOnFaces
55 Foam::sampledCuttingPlane::sampleOnIsoSurfacePoints
63 <<
"cannot call without an iso-surface" <<
nl
68 const auto& volFld = interpolator.
psi();
70 tmp<GeometricField<Type, fvPatchField, volMesh>> tvolFld(volFld);
71 tmp<GeometricField<Type, pointPatchField, pointMesh>> tpointFld;
76 tvolFld.reset(subMeshPtr_->interpolate(volFld));
87 tvolFld.reset(pointAverage(tpointFld()));
90 return isoSurfacePtr_->interpolate(tvolFld(), tpointFld());
96 Foam::sampledCuttingPlane::sampleOnPoints
103 return this->sampleOnIsoSurfacePoints(interpolator);
virtual const pointField & points() const
const meshedSurface & surface() const
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)
const GeometricField< Type, fvPatchField, volMesh > & psi() const
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
const labelList & meshCells() const
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)