Go to the documentation of this file.
55 #ifndef sampledCuttingSurface_H
56 #define sampledCuttingSurface_H
70 class sampledCuttingSurface
72 public sampledSurface,
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
107 tmp<Field<Type>> sampleOnPoints
125 const word& surfaceType,
134 const word& defaultSurfaceName,
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const labelList & meshCells() const
The mesh cells cut.
static const List< T > & null()
Return a null List.
A class for handling words, derived from Foam::string.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
A class for managing temporary objects.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
const vectorField & Sf() const
Face area vectors (normals)
const List< Face > & surfFaces() const
Return const access to the faces.
sampledCuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName, const bool triangulate=true, const boundBox &bounds=boundBox::invertedBox)
Construct from components.
Mesh consisting of general polyhedral cells.
virtual const vectorField & Cf() const
Face centres.
Field< vector > vectorField
Specialisation of Field<T> for vector.
const scalarField & magSf() const
Face area magnitudes.
TypeName("surfaceCut")
Runtime type information.
bool interpolate() const noexcept
Same as isPointData()
virtual const labelList & zoneIds() const
Per-face zone/region information.
virtual ~sampledCuttingSurface()=default
Destructor.
virtual bool needsUpdate() const
Does the surface need an update?
virtual const pointField & points() const
Points of surface.
const word & surfaceName() const
The name of the underlying searchableSurface.
An abstract class for surfaces with sampling.
A surface define by using an input surface to cut the mesh cells.
Abstract base class for interpolation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool expire()
Mark the surface as needing an update.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual bool update()
Update the surface as required.
virtual const faceList & faces() const
Faces of surface.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual const vectorField & Sf() const
Face area magnitudes.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A List of wordRe with additional matching capabilities.
A bounding box defined in terms of min/max extrema points.
const vectorField & Cf() const
Face centres.
Constructs a cutting surface through a mesh.