55#ifndef sampledCuttingSurface_H
56#define sampledCuttingSurface_H
81 const boundBox bounds_;
84 const bool triangulate_;
87 mutable bool needsUpdate_;
95 bitSet cellSelection(
const bool warn=
false)
const;
100 tmp<Field<Type>> sampleOnFaces
102 const interpolation<Type>& sampler
134 const word& defaultSurfaceName,
static const List< label > & null() noexcept
const vectorField & Sf() const
const scalarField & magSf() const
virtual label triangulate()
const vectorField & Cf() const
const List< face > & surfFaces() const
const Field< point_type > & points() const noexcept
surfaceTopo surfaceType(labelHashSet *badEdgesPtr=nullptr) const
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A bounding box defined in terms of min/max extrema points.
static const boundBox & null() noexcept
The null boundBox is the same as an inverted box.
const labelList & meshCells() const
The mesh cells cut.
Constructs a cutting surface through a mesh.
const word & surfaceName() const
The name of the underlying searchableSurface.
cuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for volume field interpolation.
Mesh consisting of general polyhedral cells.
A surface define by using an input surface to cut the mesh cells.
virtual const pointField & points() const
Points of surface.
TypeName("surfaceCut")
Runtime type information.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual const faceList & faces() const
Faces of surface.
virtual const vectorField & Cf() const
Face centres.
virtual const labelList & zoneIds() const
Per-face zone/region information.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual bool expire()
Mark the surface as needing an update.
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool update()
Update the surface as required.
virtual const vectorField & Sf() const
Face area magnitudes.
virtual ~sampledCuttingSurface()=default
Destructor.
sampledCuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName, const bool triangulate=true, const boundBox &bounds=boundBox::null())
Construct from components.
An abstract class for surfaces with sampling.
sampledSurface(const word &name, std::nullptr_t)
Construct null.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
bool interpolate() const noexcept
Same as isPointData().
A class for managing temporary objects.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
Namespace for bounding specifications. At the moment, mostly for tables.
List< label > labelList
A List of labels.
List< face > faceList
List of faces.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Field< vector > vectorField
Specialisation of Field<T> for vector.
vectorField pointField
pointField is a vectorField.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.