Go to the documentation of this file.
37 #ifndef sampledIsoSurfaceCell_H
38 #define sampledIsoSurfaceCell_H
41 #include "triSurface.H"
keyType zoneKey_
If restricted to zones, name of this zone or a regular expression.
virtual bool expire()
Mark the surface as needing an update.
virtual void print(Ostream &) const
Write.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const Field< point > & points() const
Return reference to global points.
A class for handling words, derived from string.
virtual const faceList & faces() const
Faces of surface.
labelList meshCells_
For every triangle the original cell in mesh.
tmp< Field< Type > > sampleField(const GeometricField< Type, fvPatchField, volMesh > &vField) const
Sample field on faces.
#define forAll(list, i)
Loop across all elements in list.
label prevTimeIndex_
Time at last call, also track it surface needs an update.
A class for managing temporary objects.
virtual bool needsUpdate() const
Does the surface need an update?
Mesh consisting of general polyhedral cells.
bool updateGeometry() const
Create iso surface (if time has changed)
A class for handling keywords in dictionaries.
autoPtr< faceList > facesPtr_
Triangles converted to faceList.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
const Switch regularise_
Whether to coarse.
virtual const pointField & points() const
Points of surface.
An abstract class for surfaces with sampling.
tmp< Field< Type > > interpolateField(const interpolation< Type > &) const
virtual bool update()
Update the surface as required.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const scalar isoVal_
Iso value.
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))
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const boundBox bounds_
Optional bounding box to trim triangles against.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const word & name() const
Name of surface.
virtual ~sampledIsoSurfaceCell()
Destructor.
const word isoField_
Field to get isoSurface of.
A bounding box defined in terms of the points at its extremities.
const polyMesh & mesh() const
Access to the underlying mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
TypeName("sampledIsoSurfaceCell")
Runtime type information.
Generic GeometricField class.
bool interpolate() const
Interpolation requested for surface.
sampledIsoSurfaceCell(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
A sampledSurface defined by a surface of iso value. Always triangulated. To be used in sampleSurfaces...
const Switch average_
Whether to recalculate cell values as average of point values.