116 #ifndef sampledMeshedSurface_H 117 #define sampledMeshedSurface_H 134 class sampledMeshedSurface
136 public sampledSurface,
157 static const Enum<samplingSource> samplingSourceNames_;
169 mutable bool needsUpdate_;
184 scalar maxDistanceSqr_;
224 const word& surfaceName,
318 virtual tmp<scalarField>
sample 320 const interpolation<scalar>& sampler
324 virtual tmp<vectorField>
sample 326 const interpolation<vector>& sampler
330 virtual tmp<sphericalTensorField>
sample 332 const interpolation<sphericalTensor>& sampler
336 virtual tmp<symmTensorField>
sample 338 const interpolation<symmTensor>& sampler
342 virtual tmp<tensorField>
sample 344 const interpolation<tensor>& sampler
353 const interpolation<scalar>& interpolator
359 const interpolation<vector>& interpolator
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search...
virtual bool hasFaceIds() const
If element ids/order of the original surface are kept.
bool interpolate() const noexcept
Same as isPointData()
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
virtual const pointField & points() const
Points of surface.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual ~sampledMeshedSurface()=default
Destructor.
const vectorField & Sf() const
Face area vectors (normals)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
Surface face within a cell, or trim.
virtual bool expire()
Mark the surface as needing an update.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual const labelList & zoneIds() const
Per-face zone/region information.
const word & name() const noexcept
Name of surface.
virtual const vectorField & Cf() const
Face centres.
TypeName("sampledMeshedSurface")
Declare type-name, virtual type (with debug switch)
virtual const faceList & faces() const
Faces of surface.
samplingSource
Types of sampling regions.
vectorField pointField
pointField is a vectorField.
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 void print(Ostream &os, int level=0) const
Print information.
virtual const scalarField & magSf() const
Face area magnitudes.
const Field< point_type > & points() const noexcept
Return reference to global points.
sampledMeshedSurface(const word &name, const polyMesh &mesh, const word &surfaceName, const samplingSource sampleSource)
Construct from components.
const labelList & faceIds() const
Return const access to faces ids.
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.
virtual bool needsUpdate() const
Does the surface need an update?
OBJstream os(runTime.globalPath()/outputName)
virtual const vectorField & Sf() const
Face area vectors.
virtual bool update()
Update the surface as required.
virtual const labelList & faceIds() const
Per-face identifier (eg, element Id)
const vectorField & Cf() const
Face centres.
Abstract base class for volume field interpolation.
Standard boundBox with extra functionality for use in octree.
Field< vector > vectorField
Specialisation of Field<T> for vector.
bool onBoundary() const
Sampling boundary values instead of cell values.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
A class for managing temporary objects.
Use nearest boundary face values.