Go to the documentation of this file.
74 #ifndef sampledDistanceSurface_H
75 #define sampledDistanceSurface_H
89 class sampledDistanceSurface
91 public sampledSurface,
92 public distanceSurface
100 mutable bool needsUpdate_;
107 tmp<Field<Type>> sampleOnFaces
109 const interpolation<Type>& sampler
114 tmp<Field<Type>> sampleOnPoints
116 const interpolation<Type>& interpolation
121 tmp<Field<Type>> sampleOnIsoSurfacePoints
123 const interpolation<Type>& interpolator
139 const polyMesh&
mesh,
140 const dictionary&
dict
147 const polyMesh&
mesh,
149 autoPtr<searchableSurface>&&
surface,
151 const bool useSignedDistance
214 virtual tmp<scalarField>
sample
216 const interpolation<scalar>& sampler
220 virtual tmp<vectorField>
sample
222 const interpolation<vector>& sampler
226 virtual tmp<sphericalTensorField>
sample
228 const interpolation<sphericalTensor>& sampler
232 virtual tmp<symmTensorField>
sample
234 const interpolation<symmTensor>& sampler
238 virtual tmp<tensorField>
sample
240 const interpolation<tensor>& sampler
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static const List< T > & 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 const vectorField & Sf() const
Face area vectors.
scalar distance() const noexcept
The distance to the underlying searchableSurface.
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.
bool interpolate() const noexcept
Same as isPointData()
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.
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,...
OBJstream os(runTime.globalPath()/outputName)
const word & name() const noexcept
Name of surface.
virtual bool needsUpdate() const
Does the surface need an update?
virtual const labelList & zoneIds() const
Per-face zone/region information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const meshedSurface & surface() const
The underlying surface.
virtual const vectorField & Cf() const
Face centres.
virtual bool update()
Update the surface as required.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A sampledSurface defined by a distance to a surface - resolved using an iso-surface (algorithm: cell,...
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
TypeName("sampledDistanceSurface")
Runtime type information.