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
134 const word& defaultSurfaceName,
203 virtual tmp<scalarField>
sample 205 const interpolation<scalar>& sampler
209 virtual tmp<vectorField>
sample 211 const interpolation<vector>& sampler
215 virtual tmp<sphericalTensorField>
sample 217 const interpolation<sphericalTensor>& sampler
221 virtual tmp<symmTensorField>
sample 223 const interpolation<symmTensor>& sampler
227 virtual tmp<tensorField>
sample
static const boundBox & null() noexcept
The null boundBox is the same as an inverted box.
sampledCuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName, const bool triangulate=true, const boundBox &bounds=boundBox::null())
Construct from components.
const word & surfaceName() const
The name of the underlying searchableSurface.
bool interpolate() const noexcept
Same as isPointData()
virtual const vectorField & Cf() const
Face centres.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const vectorField & Sf() const
Face area vectors (normals)
virtual ~sampledCuttingSurface()=default
Destructor.
virtual const pointField & points() const
Points of surface.
A bounding box defined in terms of min/max extrema points.
static const List< label > & null()
Return a null List.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
A class for handling words, derived from Foam::string.
const scalarField & magSf() const
Face area magnitudes.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
const Field< point_type > & points() const noexcept
Return reference to global points.
virtual const labelList & zoneIds() const
Per-face zone/region information.
virtual const vectorField & Sf() const
Face area magnitudes.
const List< Face > & surfFaces() const
Return const access to the faces.
TypeName("surfaceCut")
Runtime type information.
surfaceTopo surfaceType(labelHashSet *badEdgesPtr=nullptr) const
Calculate surface type formed by patch, optionally recording the indices of illegal edges...
virtual bool needsUpdate() const
Does the surface need an update?
const labelList & meshCells() const
The mesh cells cut.
virtual bool expire()
Mark the surface as needing an update.
const vectorField & Cf() const
Face centres.
Abstract base class for volume field interpolation.
virtual const faceList & faces() const
Faces of surface.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
A class for managing temporary objects.
virtual bool update()
Update the surface as required.