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
249 const interpolation<scalar>& interpolator
255 const interpolation<vector>& interpolator
261 const interpolation<sphericalTensor>& interpolator
bool interpolate() const noexcept
Same as isPointData()
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
scalar distance() const noexcept
The distance to the underlying searchableSurface.
const vectorField & Sf() const
Face area vectors (normals)
static const List< label > & null()
Return a null List.
virtual bool update()
Update the surface as required.
virtual const pointField & points() const
Points of surface.
const word & name() const noexcept
Name of surface.
virtual ~sampledDistanceSurface()=default
Destructor.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual void print(Ostream &os, int level=0) const
Print information.
const scalarField & magSf() const
Face area magnitudes.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
TypeName("sampledDistanceSurface")
Runtime type information.
virtual const faceList & faces() const
Faces of surface.
virtual const labelList & zoneIds() const
Per-face zone/region information.
const Field< point_type > & points() const noexcept
Return reference to global points.
const meshedSurface & surface() const
The underlying surface.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool needsUpdate() const
Does the surface need an update?
virtual const vectorField & Sf() const
Face area vectors.
const List< Face > & surfFaces() const
Return const access to the faces.
OBJstream os(runTime.globalPath()/outputName)
const vectorField & Cf() const
Face centres.
virtual const vectorField & Cf() const
Face centres.
Abstract base class for volume field interpolation.
Field< vector > vectorField
Specialisation of Field<T> for vector.
sampledDistanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
List< label > labelList
A List of labels.
A class for managing temporary objects.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual bool expire()
Mark the surface as needing an update.