Go to the documentation of this file.
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_;
187 dictionary defaultValues_;
224 const word& surfaceName,
const labelList & faceIds() const
Return const access to faces ids.
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual void print(Ostream &os, int level=0) const
Print information.
virtual bool needsUpdate() const
Does the surface need an update?
A class for handling words, derived from Foam::string.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
sampledMeshedSurface(const word &name, const polyMesh &mesh, const word &surfaceName, const samplingSource sampleSource)
Construct from components.
A class for managing temporary objects.
Standard boundBox with extra functionality for use in octree.
virtual const labelList & faceIds() const
Per-face identifier (eg, element Id)
const vectorField & Sf() const
Face area vectors (normals)
const List< face > & surfFaces() const
Return const access to the faces.
virtual const vectorField & Sf() const
Face area vectors.
Surface face within a cell, or trim.
virtual bool update()
Update the surface as required.
bool onBoundary() const
Sampling boundary values instead of cell values.
Mesh consisting of general polyhedral cells.
Field< vector > vectorField
Specialisation of Field<T> for vector.
const scalarField & magSf() const
Face area magnitudes.
bool interpolate() const noexcept
Same as isPointData()
An abstract class for surfaces with sampling.
Abstract base class for interpolation.
virtual bool hasFaceIds() const
If element ids/order of the original surface are kept.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
const word & name() const noexcept
Name of surface.
A sampledSurface from a meshed surface. It samples on the points/faces of the meshed surface.
virtual ~sampledMeshedSurface()=default
Destructor.
virtual const pointField & points() const
Points of surface.
MeshedSurface< face > meshedSurface
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
virtual const faceList & faces() const
Faces of surface.
const vectorField & Cf() const
Face centres.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
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.
Use nearest boundary face values.
virtual const labelList & zoneIds() const
Per-face zone/region information.
virtual const vectorField & Cf() const
Face centres.
TypeName("sampledMeshedSurface")
Declare type-name, virtual type (with debug switch)
samplingSource
Types of sampling regions.