Go to the documentation of this file.
79 #ifndef sampledPlane_H
80 #define sampledPlane_H
96 public sampledSurface,
105 const boundBox bounds_;
108 const bool triangulate_;
111 mutable bool needsUpdate_;
120 bitSet cellSelection(
const bool warn=
false)
const;
125 tmp<Field<Type>> sampleOnFaces
127 const interpolation<Type>& sampler
132 tmp<Field<Type>> sampleOnPoints
sampledPlane(const word &name, const polyMesh &mesh, const plane &planeDesc, const wordRes &zones=wordRes(), const bool triangulate=true)
Construct from components.
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual bool update()
Update the surface as required.
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 bool expire()
Mark the surface as needing an update.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
A class for managing temporary objects.
Constructs cutting plane through a mesh.
const vectorField & Sf() const
Face area vectors (normals)
virtual const scalarField & magSf() const
Face area magnitudes.
const List< Face > & surfFaces() const
Return const access to the faces.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
TypeName("sampledPlane")
Runtime type information.
Mesh consisting of general polyhedral cells.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
virtual const faceList & faces() const
Faces of surface.
virtual const pointField & points() const
Points of surface.
virtual void print(Ostream &os, int level=0) const
Print information.
const plane & planeDesc() const
The plane used.
const scalarField & magSf() const
Face area magnitudes.
virtual ~sampledPlane()=default
Destructor.
bool interpolate() const noexcept
Same as isPointData()
virtual bool needsUpdate() const
Does the surface need an update?
virtual const vectorField & Cf() const
Face centres.
An abstract class for surfaces with sampling.
virtual const labelList & zoneIds() const
Per-face zone/region information.
Abstract base class for interpolation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
const word & name() const noexcept
Name of surface.
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A sampledSurface defined by a plane which cuts the mesh using the cuttingPlane alorithm....