Go to the documentation of this file.
64 #ifndef distanceSurface_H
65 #define distanceSurface_H
87 const polyMesh& mesh_;
90 const autoPtr<searchableSurface> surfPtr_;
93 const scalar distance_;
105 const boundBox bounds_;
108 autoPtr<volScalarField> cellDistancePtr_;
114 autoPtr<isoSurface> isoSurfPtr_;
117 autoPtr<isoSurfaceCell> isoSurfCellPtr_;
120 autoPtr<isoSurfaceTopo> isoSurfTopoPtr_;
133 const word& defaultSurfaceName,
143 const word& surfaceType,
146 const bool signedDistance,
165 return surfPtr_->name();
180 return *isoSurfCellPtr_;
182 else if (isoSurfTopoPtr_)
184 return *isoSurfTopoPtr_;
195 return *isoSurfCellPtr_;
197 else if (isoSurfTopoPtr_)
199 return *isoSurfTopoPtr_;
209 return isoSurfCellPtr_->meshCells();
211 else if (isoSurfTopoPtr_)
213 return isoSurfTopoPtr_->meshCells();
215 return isoSurfPtr_->meshCells();
223 return isoSurfCellPtr_->meshCells();
225 else if (isoSurfTopoPtr_)
227 return isoSurfTopoPtr_->meshCells();
229 return isoSurfPtr_->meshCells();
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from Foam::string.
scalar distance() const
The distance to the underlying searchableSurface.
A class for managing temporary objects.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
distanceSurface(const word &defaultSurfaceName, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
Mesh consisting of general polyhedral cells.
A surface defined by a distance from an input searchable surface. Uses an iso-surface algorithm (cell...
algorithmType
The algorithm types.
const labelList & meshCells() const
For each face, the original cell in mesh.
tmp< Field< Type > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &cellValues, const Field< Type > &pointValues) const
Interpolate volume field onto surface points.
const word & surfaceName() const
The name of the underlying searchableSurface.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
void print(Ostream &os) const
Print information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual ~distanceSurface()=default
Destructor.
MeshedSurface< face > meshedSurface
const meshedSurface & surface() const
The underlying surface.
A bounding box defined in terms of min/max extrema points.
labelList & meshCells()
For each face, the original cell in mesh.
void createGeometry()
Create/recreate the distance surface.
TypeName("distanceSurface")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
meshedSurface & surface()
The underlying surface.
filterType
The filtering (regularization) to apply.