35 #ifndef sampledSurfaces_distanceSurface_H 36 #define sampledSurfaces_distanceSurface_H 46 namespace sampledSurfaces
63 const scalar distance_;
78 mutable bool needsUpdate_;
94 void createGeometry();
131 const word& surfaceType,
132 const word& surfaceName,
134 const bool signedDistance,
172 return isoSurfPtr_();
virtual ~distanceSurface()
Destructor.
A class for handling keywords in dictionaries.
const isoSurface & surface() const
virtual const faceList & faces() const
Faces of surface.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An abstract class for surfaces with sampling.
const word & name() const
Name of surface.
virtual bool update()
Update the surface as required.
bool interpolate() const
Interpolation requested for surface.
TypeName("distanceSurface")
Runtime type information.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
scalar distance(const vector &p1, const vector &p2)
Generic GeometricField class.
A sampledSurface defined by a distance to a surface.
virtual void print(Ostream &) const
Write.
virtual const pointField & points() const
Points of surface.
A class for handling words, derived from string.
Type average(const Field< Type > &) const
Area-averaged value of a field across the surface.
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool expire()
Mark the surface as needing an update.
A sampledSurface defined by a surface of iso value. To be used in sampleSurfaces / functionObjects...
const polyMesh & mesh() const
Access to the underlying mesh.
virtual const pointField & points() const
Points of surface.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
distanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
Abstract base class for interpolation.
virtual const faceList & faces() const
Faces of surface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.