Go to the documentation of this file.
35 #ifndef sampledPatch_H
36 #define sampledPatch_H
labelList patchStart_
Start indices (in patchFaceLabels_) of patches.
virtual bool needsUpdate() const
Does the surface need an update?
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
const labelList & patchIDs() const
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
A class for managing temporary objects.
const labelList & patchFaceLabels() const
MeshedSurface< face > MeshStorage
Private typedefs for convenience.
const wordReList & patchNames() const
virtual const pointField & points() const
Points of surface.
bool needsUpdate_
Track if the surface needs an update.
const List< Face > & faces() const
Return const access to the faces.
Mesh consisting of general polyhedral cells.
labelList patchIDs_
Corresponding patchIDs.
bool triangulate_
Triangulated faces or keep faces as is.
const labelList & patchStart() const
virtual void print(Ostream &) const
Write.
Pre-declare SubField and related Field type.
virtual ~sampledPatch()
Destructor.
An abstract class for surfaces with sampling.
virtual void remapFaces(const labelUList &faceMap)
Re-map action on triangulation or cleanup.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool update()
Update the surface as required.
sampledPatch(const word &name, const polyMesh &mesh, const wordReList &patchNames, const bool triangulate=false)
Construct from components.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
tmp< Field< Type > > sampleField(const GeometricField< Type, fvPatchField, volMesh > &vField) const
Sample field on faces.
tmp< Field< Type > > interpolateField(const interpolation< Type > &) const
const word & name() const
Name of surface.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual bool expire()
Mark the surface as needing an update.
const wordReList patchNames_
Name of patches.
labelList patchFaceLabels_
For every face (or triangle) the index in the originating patch.
const polyMesh & mesh() const
Access to the underlying mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
bool interpolate() const
Interpolation requested for surface.
TypeName("sampledPatch")
Runtime type information.
labelList patchIndex_
For every face (or triangle) the originating patch.
A sampledSurface on patches. Non-triangulated by default.
virtual const faceList & faces() const
Faces of surface.