61#ifndef Foam_sampledPatch_H
62#define Foam_sampledPatch_H
88 const wordRes selectionNames_;
97 mutable bool needsUpdate_;
142 return selectionNames_;
163 return patchFaceLabels_;
Minimal example by using system/controlDict.functions:
Generic GeometricField class.
static const List< label > & null()
Return a null List.
const vectorField & Sf() const
Face area vectors (normals)
const scalarField & magSf() const
Face area magnitudes.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
const vectorField & Cf() const
Face centres.
const List< face > & surfFaces() const
Return const access to the faces.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for volume field interpolation.
Mesh consisting of general polyhedral cells.
A sampledSurface on patches. Non-triangulated by default.
const labelList & patchStart() const
The offset into patchIndex, patchFaceLabels.
virtual const pointField & points() const
Points of surface.
virtual void print(Ostream &os, int level=0) const
Print information.
const labelList & patchIDs() const
The patches selected.
virtual ~sampledPatch()=default
Destructor.
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 withSurfaceFields() const
Can it sample surface-fields?
virtual bool update()
Update the surface as required.
virtual const vectorField & Sf() const
Face area vectors.
const wordRes & patchNames() const
The selection (word/regex) of patches.
const labelList & patchFaceLabels() const
For each face, the patch local face ID.
TypeName("sampledPatch")
Runtime type information.
const labelList & patchIndex() const
For each face, the patch ID.
An abstract class for surfaces with sampling.
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)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
List< label > labelList
A List of labels.
MeshedSurface< face > meshedSurface
Field< vector > vectorField
Specialisation of Field<T> for vector.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.