61 #ifndef Foam_sampledFaceZone_H 62 #define Foam_sampledFaceZone_H 88 const wordRes selectionNames_;
97 mutable bool needsUpdate_;
224 virtual tmp<scalarField>
sample 226 const interpolation<scalar>& sampler
230 virtual tmp<vectorField>
sample 232 const interpolation<vector>& sampler
236 virtual tmp<sphericalTensorField>
sample 238 const interpolation<sphericalTensor>& sampler
bool interpolate() const noexcept
Same as isPointData()
virtual bool withSurfaceFields() const
Can it sample surface-fields?
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 const pointField & points() const
Points of surface.
const vectorField & Sf() const
Face area vectors (normals)
virtual bool update()
Update the surface as required.
virtual ~sampledFaceZone()=default
Destructor.
virtual bool expire()
Mark the surface as needing an update.
Generic GeometricField class.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
TypeName("faceZone")
Runtime type information.
const word & name() const noexcept
Name of surface.
virtual const vectorField & Sf() const
Face area vectors (normals)
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 label triangulate()
Triangulate in-place, returning the number of triangles added.
virtual bool needsUpdate() const
Does the surface need an update?
const Field< point_type > & points() const noexcept
Return reference to global points.
virtual const vectorField & Cf() const
Face centres.
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 tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual const scalarField & magSf() const
Face area magnitudes.
const vectorField & Cf() const
Face centres.
sampledFaceZone(const word &name, const polyMesh &mesh, const UList< wordRe > &zoneNames, const bool triangulate=false)
Construct from components.
Abstract base class for volume field interpolation.
virtual const faceList & faces() const
Faces of surface.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
virtual const labelList & zoneIds() const
Per-face zone/region information.
List< label > labelList
A List of labels.
A class for managing temporary objects.
const labelList & zoneIDs() const
The selected face zones (sorted)
static const List< label > & null() noexcept
Return a null List (reference to a nullObject). Behaves like an empty List.
virtual void print(Ostream &os, int level=0) const
Print information.