37 #ifndef distanceSurface_H 38 #define distanceSurface_H 64 const scalar distance_;
82 mutable bool needsUpdate_;
104 void createGeometry();
141 const word& surfaceType,
142 const word& surfaceName,
144 const bool signedDistance,
178 if (facesPtr_.
empty())
186 facesPtr_()[i] = s[i].triFaceFace();
196 return isoSurfCellPtr_();
200 return isoSurfPtr_();
A class for handling keywords in dictionaries.
Type average(const Field< Type > &) const
Area-averaged value of a field across the surface.
#define forAll(list, i)
Loop across all elements in list.
virtual void print(Ostream &) const
Write.
TypeName("distanceSurface")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An abstract class for surfaces with sampling.
void size(const label)
Override size to be inconsistent with allocated storage.
const Field< PointType > & points() const
Return reference to global points.
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.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
scalar distance(const vector &p1, const vector &p2)
Generic GeometricField class.
const triSurface & surface() const
bool empty() const
Return true if the autoPtr is empty (ie, no pointer set).
virtual ~distanceSurface()
Destructor.
virtual bool update()
Update the surface as required.
virtual const faceList & faces() const
Faces of surface.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const polyMesh & mesh() const
Access to the underlying mesh.
void reset(T *=0)
If object pointer already set, delete object and set to given.
virtual const pointField & points() const
Points of surface.
A class for handling words, derived from string.
const word & name() const
Name of surface.
distanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool expire()
Mark the surface as needing an update.
bool interpolate() const
Interpolation requested for surface.
A cell is defined as a list of faces with extra functionality.
Abstract base class for interpolation.
virtual bool needsUpdate() const
Does the surface need an update?
A sampledSurface defined by a distance to a 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.
Triangulated surface description with patch information.