Go to the documentation of this file.
79 #ifndef sampledIsoSurface_H
80 #define sampledIsoSurface_H
95 class sampledIsoSurface
102 const word isoField_;
105 List<scalar> isoValues_;
108 isoSurfaceParams isoParams_;
123 mutable word exposedPatchName_;
129 mutable label prevTimeIndex_;
138 mutable autoPtr<isoSurfaceBase> isoSurfacePtr_;
144 mutable autoPtr<fvMeshSubset> subMeshPtr_;
147 mutable autoPtr<bitSet> ignoreCellsPtr_;
153 mutable autoPtr<volScalarField> storedVolFieldPtr_;
163 mutable autoPtr<volScalarField> storedVolSubFieldPtr_;
173 void getIsoFields()
const;
180 bool updateGeometry()
const;
211 return bool(isoSurfacePtr_);
218 TypeName(
"samplediIsoSurfacePoint");
264 return *isoSurfacePtr_;
274 return isoSurfacePtr_->meshCells();
319 virtual tmp<scalarField>
sample
321 const interpolation<scalar>& sampler
325 virtual tmp<vectorField>
sample
327 const interpolation<vector>& sampler
331 virtual tmp<sphericalTensorField>
sample
333 const interpolation<sphericalTensor>& sampler
List< label > labelList
A List of labels.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static const List< label > & null()
Return a null List.
A class for handling words, derived from Foam::string.
virtual bool needsUpdate() const
Does the surface need an update?
A class for managing temporary objects.
virtual const vectorField & Cf() const
Face centres.
const vectorField & Sf() const
Face area vectors (normals)
const List< Face > & surfFaces() const
Return const access to the faces.
TypeName("samplediIsoSurfacePoint")
Runtime type information.
virtual const pointField & points() const
Points of surface.
virtual bool update()
Update the surface as required.
bool hasIsoSurface() const
Is currently backed by an isoSurfacePtr_.
Mesh consisting of general polyhedral cells.
const labelList & meshCells() const
For each face, the original cell in mesh.
Field< vector > vectorField
Specialisation of Field<T> for vector.
const meshedSurface & surface() const
The currently created surface geometry.
virtual const labelList & zoneIds() const
Per-face zone/region information.
const scalarField & magSf() const
Face area magnitudes.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
sampledIsoSurface(const isoSurfaceParams ¶ms, const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
A sampledSurface defined by a surface of iso value. It only recalculates the iso-surface if time chan...
An abstract class for surfaces with sampling.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void print(Ostream &os) const
Write.
Abstract base class for interpolation.
virtual bool expire()
Mark the surface as needing an update.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Preferences for controlling iso-surface algorithms.
virtual const scalarField & magSf() const
Face area magnitudes.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
MeshedSurface< face > meshedSurface
virtual const faceList & faces() const
Faces of surface.
const word & name() const
Name of surface.
A List of wordRe with additional matching capabilities.
const vectorField & Cf() const
Face centres.
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 to nodes requested for surface.
virtual ~sampledIsoSurface()
Destructor.
virtual const vectorField & Sf() const
Face area magnitudes.
GeometricField< scalar, pointPatchField, pointMesh > pointScalarField