Go to the documentation of this file.
37 #ifndef distanceSurface_H
38 #define distanceSurface_H
144 const word& surfaceType,
145 const word& surfaceName,
147 const bool signedDistance,
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const scalar distance_
Distance value.
const Field< PointType > & points() const
Return reference to global points.
A class for handling words, derived from string.
autoPtr< isoSurfaceCell > isoSurfCellPtr_
Constructed iso surface.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
const triSurface & surface() const
Type average(const Field< Type > &) const
Area-averaged value of a field across the surface.
virtual bool update()
Update the surface as required.
const Switch average_
Whether to recalculate cell values as average of point values.
const Switch regularise_
Whether to coarsen.
autoPtr< faceList > facesPtr_
Triangles converted to faceList.
virtual const pointField & points() const
Points of surface.
const bool signed_
Signed distance.
Mesh consisting of general polyhedral cells.
tmp< Field< Type > > interpolateField(const interpolation< Type > &) const
autoPtr< volScalarField > cellDistancePtr_
Distance to cell centres.
bool needsUpdate_
Track if the surface needs an update.
distanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
const bool cell_
Whether to use isoSurfaceCell or isoSurface.
A sampledSurface defined by a distance to a surface.
virtual bool expire()
Mark the surface as needing an update.
A class for handling keywords in dictionaries.
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
virtual ~distanceSurface()
Destructor.
An abstract class for surfaces with sampling.
autoPtr< isoSurface > isoSurfPtr_
Constructed iso surface.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool needsUpdate() const
Does the surface need 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))
virtual void print(Ostream &) const
Write.
scalar distance(const vector &p1, const vector &p2)
virtual const faceList & faces() const
Faces of surface.
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.
const autoPtr< searchableSurface > surfPtr_
Surface.
static const boundBox greatBox
A very large boundBox: min/max == -/+ VGREAT.
virtual tmp< scalarField > sample(const volScalarField &) const
Sample field on surface.
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.
A bounding box defined in terms of the points at its extremities.
void createGeometry()
Create iso surface.
const polyMesh & mesh() const
Access to the underlying mesh.
TypeName("distanceSurface")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalarField pointDistance_
Distance to points.
Generic GeometricField class.
bool interpolate() const
Interpolation requested for surface.
A cell is defined as a list of faces with extra functionality.
const boundBox bounds_
Optional bounding box to trim triangles against.
keyType zoneKey_
If restricted to zones, name of this zone or a regular expression.