116#ifndef sampledMeshedSurface_H
117#define sampledMeshedSurface_H
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
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
const vectorField & Sf() const
const scalarField & magSf() const
const vectorField & Cf() const
const labelList & faceIds() const
const List< face > & surfFaces() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
labelList boundaryFaces() const
const Field< point_type > & points() const noexcept
bool empty() const noexcept
True if List is empty (ie, size() is zero).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for volume field interpolation.
Various (local, not parallel) searches on polyMesh; uses (demand driven) octree to search.
Mesh consisting of general polyhedral cells.
A sampledSurface from a meshed surface. It samples on the points/faces of the meshed surface.
virtual const pointField & points() const
Points of surface.
bool onBoundary() const
Sampling boundary values instead of cell values.
sampledMeshedSurface(const word &name, const polyMesh &mesh, const word &surfaceName, const samplingSource sampleSource)
Construct from components.
virtual void print(Ostream &os, int level=0) const
Print information.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual const labelList & faceIds() const
Per-face identifier (eg, element Id).
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 bool hasFaceIds() const
If element ids/order of the original surface are kept.
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 update()
Update the surface as required.
virtual const vectorField & Sf() const
Face area vectors.
samplingSource
Types of sampling regions.
@ boundaryFaces
Use nearest boundary face values.
@ cells
Use nearest cell value.
@ insideCells
Surface face within a cell, or trim.
virtual ~sampledMeshedSurface()=default
Destructor.
TypeName("sampledMeshedSurface")
Declare type-name, virtual type (with debug switch).
An abstract class for surfaces with sampling.
sampledSurface(const word &name, std::nullptr_t)
Construct null.
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.
Standard boundBox with extra functionality for use in octree.
A class for handling words, derived from Foam::string.
const polyBoundaryMesh & patches
OBJstream os(runTime.globalPath()/outputName)
wallPoints::trackData td(isBlockedFace, regionToBlockSize)
const dimensionedScalar c
Speed of light in a vacuum.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc).
dimensionedScalar tr(const dimensionedSphericalTensor &dt)
List< label > labelList
A List of labels.
List< face > faceList
List of faces.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
MeshedSurface< face > meshedSurface
Field< vector > vectorField
Specialisation of Field<T> for vector.
vectorField pointField
pointField is a vectorField.
word format(conversionProperties.get< word >("format"))
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.