83 #ifndef sampledIsoSurface_H 84 #define sampledIsoSurface_H 99 class sampledIsoSurface
101 public sampledSurface
106 const word isoField_;
109 List<scalar> isoValues_;
112 isoSurfaceParams isoParams_;
127 mutable word exposedPatchName_;
133 mutable label prevTimeIndex_;
142 mutable autoPtr<isoSurfaceBase> isoSurfacePtr_;
148 mutable autoPtr<fvMeshSubset> subMeshPtr_;
151 mutable autoPtr<bitSet> ignoreCellsPtr_;
157 mutable autoPtr<volScalarField> storedVolFieldPtr_;
167 mutable autoPtr<volScalarField> storedVolSubFieldPtr_;
177 void getIsoFields()
const;
184 bool updateGeometry()
const;
215 return bool(isoSurfacePtr_);
268 return *isoSurfacePtr_;
278 return isoSurfacePtr_->meshCells();
323 virtual tmp<scalarField>
sample 325 const interpolation<scalar>& sampler
329 virtual tmp<vectorField>
sample 331 const interpolation<vector>& sampler
bool hasIsoSurface() const
Is currently backed by an isoSurfacePtr_.
bool interpolate() const noexcept
Same as isPointData()
virtual const labelList & zoneIds() const
Per-face zone/region information.
TypeName("sampledIsoSurface")
Runtime type information.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const vectorField & Sf() const
Face area vectors (normals)
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
Preferences for controlling iso-surface algorithms.
virtual ~sampledIsoSurface()
Destructor.
const labelList & meshCells() const
For each face, the original cell in mesh.
static const List< label > & null()
Return a null List.
const word & name() const noexcept
Name of surface.
virtual bool update()
Update the surface as required.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
List< face > faceList
List of faces.
virtual bool needsUpdate() const
Does the surface need an update?
vectorField pointField
pointField is a vectorField.
virtual const vectorField & Sf() const
Face area magnitudes.
A class for handling words, derived from Foam::string.
const scalarField & magSf() const
Face area magnitudes.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
MeshedSurface< face > meshedSurface
virtual const faceList & faces() const
Faces of surface.
virtual const pointField & points() const
Points of surface.
const Field< point_type > & points() const noexcept
Return reference to global points.
GeometricField< scalar, pointPatchField, pointMesh > pointScalarField
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const List< Face > & surfFaces() const
Return const access to the faces.
OBJstream os(runTime.globalPath()/outputName)
virtual void print(Ostream &os, int level=0) const
Print information.
const meshedSurface & surface() const
The currently created surface geometry.
sampledIsoSurface(const isoSurfaceParams ¶ms, const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
const vectorField & Cf() const
Face centres.
Abstract base class for volume field interpolation.
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual bool expire()
Mark the surface as needing an update.
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
A class for managing temporary objects.
virtual const scalarField & magSf() const
Face area magnitudes.
virtual const vectorField & Cf() const
Face centres.