Go to the documentation of this file.
37 #ifndef sampledIsoSurface_H
38 #define sampledIsoSurface_H
bool updateGeometry() const
Create iso surface (if time has changed)
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const Field< PointType > & points() const
Return reference to global points.
A class for handling words, derived from string.
tmp< Field< Type > > interpolateField(const interpolation< Type > &) const
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
virtual bool needsUpdate() const
Does the surface need an update?
const scalar isoVal_
Iso value.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
const pointScalarField * pointSubFieldPtr_
Cached pointfield.
autoPtr< volScalarField > storedVolFieldPtr_
Cached volfield.
virtual const pointField & points() const
Points of surface.
virtual bool update()
Update the surface as required.
virtual void print(Ostream &) const
Write.
Mesh consisting of general polyhedral cells.
const Switch regularise_
Whether to coarse.
const scalar mergeTol_
Merge tolerance.
A surface formed by the iso value. After "Regularised Marching Tetrahedra: improved iso-surface extra...
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.
autoPtr< faceList > facesPtr_
Triangles converted to faceList.
const volScalarField * volSubFieldPtr_
const boundBox bounds_
Optional bounding box to trim triangles against.
A sampledSurface defined by a surface of iso value. Always triangulated. To be used in sampleSurfaces...
label prevTimeIndex_
Time at last call, also track if surface needs an update.
An abstract class for surfaces with sampling.
virtual bool expire()
Mark the surface as needing an update.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word isoField_
Field to get isoSurface of.
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))
void getIsoFields() const
Get fields needed to recreate iso surface.
void getIsoField()
Lookup or read isoField. Sets volFieldPtr_ and pointFieldPtr_.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
tmp< Field< Type > > sampleField(const GeometricField< Type, fvPatchField, volMesh > &vField) const
Sample field on faces.
cellZoneID zoneID_
Zone name/index (if restricted to zones)
const Switch average_
Whether to recalculate cell values as average of point values.
const pointScalarField * pointFieldPtr_
Cached pointfield.
const isoSurface & surface() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual const faceList & faces() const
Faces of surface.
const word & name() const
Name of surface.
A bounding box defined in terms of the points at its extremities.
autoPtr< volScalarField > storedVolSubFieldPtr_
Cached volfield.
autoPtr< fvMeshSubset > subMeshPtr_
Cached submesh.
const polyMesh & mesh() const
Access to the underlying mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
bool interpolate() const
Interpolation requested for surface.
virtual ~sampledIsoSurface()
Destructor.
word exposedPatchName_
For zones: patch to put exposed faces into.
sampledIsoSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
autoPtr< isoSurface > surfPtr_
TypeName("sampledIsoSurface")
Runtime type information.
const volScalarField * volFieldPtr_