Go to the documentation of this file.
38 #ifndef sampledPlane_H
39 #define sampledPlane_H
virtual bool update()
Update the surface as required.
A class for handling words, derived from string.
const labelList & cutCells() const
Return List of cells cut by the plane.
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 plane through mesh.
tmp< Field< Type > > sampleField(const GeometricField< Type, fvPatchField, volMesh > &vField) const
Sample field on faces.
bool needsUpdate_
Track if the surface needs an update.
sampledPlane(const word &name, const polyMesh &mesh, const plane &planeDesc, const keyType &zoneKey=word::null, const bool triangulate=true)
Construct from components.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
TypeName("sampledPlane")
Runtime type information.
const List< Face > & faces() const
Return const access to the faces.
Mesh consisting of general polyhedral cells.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
virtual const faceList & faces() const
Faces of surface.
A class for handling keywords in dictionaries.
virtual const pointField & points() const
Points of surface.
const plane & planeDesc() const
Return plane used.
virtual bool needsUpdate() const
Does the surface need an update?
Pre-declare SubField and related Field type.
const bool triangulate_
Triangulated faces or keep faces as is.
An abstract class for surfaces with sampling.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const labelList & meshCells() const
For every face original cell in mesh.
virtual void print(Ostream &) const
Write.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const word & name() const
Name of surface.
tmp< Field< Type > > interpolateField(const interpolation< Type > &) const
static const word null
An empty word.
const polyMesh & mesh() const
Access to the underlying mesh.
virtual ~sampledPlane()
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A sampledSurface defined by a cuttingPlane. Triangulated by default.
Generic GeometricField class.
bool interpolate() const
Interpolation requested for surface.
keyType zoneKey_
If restricted to zones, name of this zone or a regular expression.