Go to the documentation of this file.
35 #ifndef sampledCuttingPlane_H
36 #define sampledCuttingPlane_H
virtual const pointField & points() const
Points of surface.
autoPtr< volScalarField > cellDistancePtr_
Distance to cell centres.
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.
autoPtr< isoSurface > isoSurfPtr_
Constructed iso surface.
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
const Switch average_
Whether to recalculate cell values as average of point values.
TypeName("sampledCuttingPlane")
Runtime type information.
A class for managing temporary objects.
A sampledSurface defined by a plane.
const isoSurface & surface() const
const Switch regularise_
Whether to coarsen.
virtual void print(Ostream &) const
Write.
void createGeometry()
Create iso surface.
Mesh consisting of general polyhedral cells.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
virtual bool needsUpdate() const
Does the surface need an update?
const boundBox bounds_
Optional bounding box to trim triangles against.
A surface formed by the iso value. After "Regularised Marching Tetrahedra: improved iso-surface extra...
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
const scalar mergeTol_
Merge tolerance.
virtual bool update()
Update the surface as required.
An abstract class for surfaces with sampling.
virtual ~sampledCuttingPlane()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e....
tmp< Field< Type > > interpolateField(const interpolation< Type > &) const
autoPtr< fvMeshSubset > subMeshPtr_
Optional subsetted mesh.
bool needsUpdate_
Track if the surface needs an update.
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))
sampledCuttingPlane(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
cellZoneID zoneID_
Zone name/index (if restricted to zones)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalarField pointDistance_
Distance to points.
const word & name() const
Name of surface.
virtual const faceList & faces() const
Faces of surface.
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,...
Generic GeometricField class.
virtual bool expire()
Mark the surface as needing an update.
bool interpolate() const
Interpolation requested for surface.
autoPtr< faceList > facesPtr_
Triangles converted to faceList.
word exposedPatchName_
For zones: patch to put exposed faces into.
tmp< Field< Type > > sampleField(const GeometricField< Type, fvPatchField, volMesh > &vField) const
Sample field on faces.