Go to the documentation of this file.
61 #ifndef sampledPatch_H
62 #define sampledPatch_H
88 const wordRes selectionNames_;
97 mutable bool needsUpdate_;
142 return selectionNames_;
163 return patchFaceLabels_;
List< label > labelList
A List of labels.
virtual bool needsUpdate() const
Does the surface need an update?
virtual const vectorField & Cf() const
Face centres.
static const List< T > & null()
Return a null List.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from Foam::string.
const labelList & patchIDs() const
The patches selected.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
A class for managing temporary objects.
const labelList & patchFaceLabels() const
For each face, the patch local face ID.
const wordRes & patchNames() const
The selection (word/regex) of patches.
virtual const vectorField & Sf() const
Face area vectors.
virtual ~sampledPatch()=default
Destructor.
const vectorField & Sf() const
Face area vectors (normals)
const List< face > & surfFaces() const
Return const access to the faces.
virtual const pointField & points() const
Points of surface.
Mesh consisting of general polyhedral cells.
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual const scalarField & magSf() const
Face area magnitudes.
const labelList & patchStart() const
The offset into patchIndex, patchFaceLabels.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample boundary of volume field onto surface faces.
const scalarField & magSf() const
Face area magnitudes.
bool interpolate() const noexcept
Same as isPointData()
virtual bool withSurfaceFields() const
Can it sample surface-fields?
sampledPatch(const word &name, const polyMesh &mesh, const UList< wordRe > &patchNames, const bool triangulate=false)
Construct from components.
An abstract class for surfaces with sampling.
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 bool update()
Update the surface as required.
virtual const labelList & zoneIds() const
Per-face zone/region information.
MeshedSurface< face > meshedSurface
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
virtual bool expire()
Mark the surface as needing an update.
A List of wordRe with additional matching capabilities.
virtual void print(Ostream &os, int level=0) const
Print information.
const vectorField & Cf() const
Face centres.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
TypeName("sampledPatch")
Runtime type information.
const labelList & patchIndex() const
For each face, the patch ID.
A sampledSurface on patches. Non-triangulated by default.
virtual const faceList & faces() const
Faces of surface.