Go to the documentation of this file.
69 #ifndef sampledDistanceSurface_H
70 #define sampledDistanceSurface_H
84 class sampledDistanceSurface
86 public sampledSurface,
87 public distanceSurface
95 mutable bool needsUpdate_;
102 tmp<Field<Type>> sampleOnFaces
104 const interpolation<Type>& sampler
109 tmp<Field<Type>> sampleOnPoints
111 const interpolation<Type>& interpolation
127 const polyMesh&
mesh,
128 const dictionary&
dict
190 virtual tmp<scalarField>
sample
192 const interpolation<scalar>& sampler
196 virtual tmp<vectorField>
sample
198 const interpolation<vector>& sampler
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static const List< label > & null()
Return a null List.
A class for handling words, derived from Foam::string.
virtual bool expire()
Mark the surface as needing an update.
A class for managing temporary objects.
virtual ~sampledDistanceSurface()=default
Destructor.
const vectorField & Sf() const
Face area vectors (normals)
virtual const faceList & faces() const
Faces of surface.
const List< Face > & surfFaces() const
Return const access to the faces.
virtual void print(Ostream &os) const
Print information.
virtual const vectorField & Sf() const
Face area vectors.
Mesh consisting of general polyhedral cells.
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual const pointField & points() const
Points of surface.
A surface defined by a distance from an input searchable surface. Uses an iso-surface algorithm (cell...
const scalarField & magSf() const
Face area magnitudes.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
An abstract class for surfaces with sampling.
Abstract base class for interpolation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool needsUpdate() const
Does the surface need an update?
virtual const labelList & zoneIds() const
Per-face zone/region information.
const meshedSurface & surface() const
The underlying surface.
virtual const vectorField & Cf() const
Face centres.
virtual bool update()
Update the surface as required.
const word & name() const
Name of surface.
A sampledSurface defined by a distance to a surface - using either an isoSurfaceCell or an isoSurface...
virtual const scalarField & magSf() const
Face area magnitudes.
sampledDistanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
const vectorField & Cf() const
Face centres.
const polyMesh & mesh() const
Access to the underlying mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool interpolate() const
Interpolation to nodes requested for surface.
TypeName("sampledDistanceSurface")
Runtime type information.