77#ifndef Foam_sampledPlane_H
78#define Foam_sampledPlane_H
103 const boundBox bounds_;
106 const bool triangulate_;
109 mutable bool needsUpdate_;
122 bitSet cellSelection(
const bool warn=
false)
const;
127 tmp<Field<Type>> sampleOnFaces
129 const interpolation<Type>& sampler
230 virtual tmp<scalarField>
sample
232 const interpolation<scalar>& sampler
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
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const Field< point_type > & points() const noexcept
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.
Constructs cutting plane through a mesh.
cuttingPlane(const plane &pln)
Construct from a plane description without any cutting.
const plane & planeDesc() const
The plane used.
const labelList & meshCells() const
The mesh cells cut.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for volume field interpolation.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
plane()
Construct zero-initialised.
Mesh consisting of general polyhedral cells.
A sampledSurface defined by a plane which cuts the mesh using the cuttingPlane alorithm....
virtual const pointField & points() const
Points of surface.
TypeName("sampledPlane")
Runtime type information.
virtual void print(Ostream &os, int level=0) const
Print 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.
sampledPlane(const word &name, const polyMesh &mesh, const plane &planeDesc, const wordRes &zones=wordRes(), const bool triangulate=true)
Construct from components.
virtual ~sampledPlane()=default
Destructor.
An abstract class for surfaces with sampling.
sampledSurface(const word &name, std::nullptr_t)
Construct null.
const word & name() const noexcept
Name of surface.
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.
OBJstream os(runTime.globalPath()/outputName)
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.