61 #ifndef Foam_sampledPatch_H 62 #define Foam_sampledPatch_H 88 const wordRes selectionNames_;
97 mutable bool needsUpdate_;
142 return selectionNames_;
163 return patchFaceLabels_;
179 const polyMesh&
mesh,
252 virtual tmp<scalarField>
sample 254 const interpolation<scalar>& sampler
258 virtual tmp<vectorField>
sample 260 const interpolation<vector>& sampler
264 virtual tmp<sphericalTensorField>
sample 266 const interpolation<sphericalTensor>& sampler
270 virtual tmp<symmTensorField>
sample 272 const interpolation<symmTensor>& sampler
276 virtual tmp<tensorField>
sample 278 const interpolation<tensor>& sampler
virtual const pointField & points() const
Points of surface.
bool interpolate() const noexcept
Same as isPointData()
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...
virtual void print(Ostream &os, int level=0) const
Print information.
const vectorField & Sf() const
Face area vectors (normals)
sampledPatch(const word &name, const polyMesh &mesh, const UList< wordRe > &patchNames, const bool triangulate=false)
Construct from components.
virtual bool withSurfaceFields() const
Can it sample surface-fields?
const labelList & patchIndex() const
For each face, the patch ID.
const labelList & patchStart() const
The offset into patchIndex, patchFaceLabels.
Generic GeometricField class.
static const List< label > & null()
Return a null List.
const labelList & patchFaceLabels() const
For each face, the patch local face ID.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
const word & name() const noexcept
Name of surface.
virtual ~sampledPatch()=default
Destructor.
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.
MeshedSurface< face > meshedSurface
virtual bool update()
Update the surface as required.
virtual label triangulate()
Triangulate in-place, returning the number of triangles added.
virtual bool expire()
Mark the surface as needing an update.
A List of wordRe with additional matching capabilities.
const Field< point_type > & points() const noexcept
Return reference to global points.
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 scalarField & magSf() const
Face area magnitudes.
TypeName("sampledPatch")
Runtime type information.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample boundary of volume field onto surface faces.
const labelList & patchIDs() const
The patches selected.
virtual const faceList & faces() const
Faces of surface.
virtual bool needsUpdate() const
Does the surface need an update?
const vectorField & Cf() const
Face centres.
Abstract base class for volume field interpolation.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
A class for managing temporary objects.
virtual const vectorField & Sf() const
Face area vectors.
const wordRes & patchNames() const
The selection (word/regex) of patches.
virtual const labelList & zoneIds() const
Per-face zone/region information.