77 #ifndef Foam_sampledPlane_H 78 #define Foam_sampledPlane_H 94 public sampledSurface,
103 const boundBox bounds_;
106 const bool triangulate_;
109 mutable bool needsUpdate_;
116 static plane definePlane(
const polyMesh&
mesh,
const dictionary&
dict);
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
236 virtual tmp<vectorField>
sample 238 const interpolation<vector>& sampler
242 virtual tmp<sphericalTensorField>
sample 244 const interpolation<sphericalTensor>& sampler
248 virtual tmp<symmTensorField>
sample 250 const interpolation<symmTensor>& sampler
254 virtual tmp<tensorField>
sample 256 const interpolation<tensor>& sampler
bool interpolate() const noexcept
Same as isPointData()
virtual void print(Ostream &os, int level=0) const
Print information.
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 tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
virtual bool expire()
Mark the surface as needing an update.
virtual const labelList & zoneIds() const
Per-face zone/region information.
const word & name() const noexcept
Name of surface.
virtual ~sampledPlane()=default
Destructor.
virtual bool needsUpdate() const
Does the surface need an update?
virtual const vectorField & Cf() const
Face centres.
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.
sampledPlane(const word &name, const polyMesh &mesh, const plane &planeDesc, const wordRes &zones=wordRes(), const bool triangulate=true)
Construct from components.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
A List of wordRe with additional matching capabilities.
virtual bool update()
Update the surface as required.
const Field< point_type > & points() const noexcept
Return reference to global points.
virtual const pointField & points() const
Points of surface.
plane()
Construct zero-initialised.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const List< Face > & surfFaces() const
Return const access to the faces.
OBJstream os(runTime.globalPath()/outputName)
virtual const vectorField & Sf() const
Face area magnitudes.
const labelList & meshCells() const
The mesh cells cut.
const vectorField & Cf() const
Face centres.
Abstract base class for volume field interpolation.
Field< vector > vectorField
Specialisation of Field<T> for vector.
const plane & planeDesc() const
The plane used.
Mesh consisting of general polyhedral cells.
virtual const scalarField & magSf() const
Face area magnitudes.
List< label > labelList
A List of labels.
A class for managing temporary objects.
TypeName("sampledPlane")
Runtime type information.
static const List< label > & null() noexcept
Return a null List (reference to a nullObject). Behaves like an empty List.
virtual const faceList & faces() const
Faces of surface.