37 #ifndef sampledIsoSurfaceCell_H 38 #define sampledIsoSurfaceCell_H 81 mutable label prevTimeIndex_;
91 bool updateGeometry()
const;
151 if (facesPtr_.
empty())
159 facesPtr_()[i] = s[i].triFaceFace();
A class for handling keywords in dictionaries.
virtual bool needsUpdate() const
Does the surface need an update?
virtual const pointField & points() const
Points of surface.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
A sampledSurface defined by a surface of iso value. Always triangulated. To be used in sampleSurfaces...
A list of keyword definitions, which are a keyword followed by any number of values (e...
An abstract class for surfaces with sampling.
TypeName("sampledIsoSurfaceCell")
Runtime type information.
void size(const label)
Override size to be inconsistent with allocated storage.
const Field< point > & 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.
Generic GeometricField class.
virtual bool update()
Update the surface as required.
bool empty() const
Return true if the autoPtr is empty (ie, no pointer set).
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.
A class for handling words, derived from string.
const word & name() const
Name of surface.
virtual ~sampledIsoSurfaceCell()
Destructor.
virtual const faceList & faces() const
Faces of surface.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool interpolate() const
Interpolation requested for surface.
sampledIsoSurfaceCell(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual void print(Ostream &) const
Write.
Abstract base class for interpolation.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual bool expire()
Mark the surface as needing an update.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
Triangulated surface description with patch information.