Go to the documentation of this file.
79 #ifndef sampledCuttingPlane_H
80 #define sampledCuttingPlane_H
96 class sampledCuttingPlane
106 List<scalar> offsets_;
109 isoSurfaceParams isoParams_;
121 mutable word exposedPatchName_;
124 mutable bool needsUpdate_;
136 autoPtr<isoSurfaceBase> isoSurfacePtr_;
142 mutable autoPtr<fvMeshSubset> subMeshPtr_;
145 mutable autoPtr<bitSet> ignoreCellsPtr_;
160 void checkBoundsIntersection
167 void setDistanceFields(
const plane& pln);
173 void createGeometry();
204 return bool(isoSurfacePtr_);
247 return *isoSurfacePtr_;
257 return isoSurfacePtr_->meshCells();
virtual const pointField & points() const
List< label > labelList
A List of labels.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const meshedSurface & surface() const
static const List< T > & null()
bool hasIsoSurface() const
A class for handling words, derived from Foam::string.
TypeName("sampledCuttingPlane")
A class for managing temporary objects.
A sampledSurface defined by a plane using an iso-surface algorithm to cut the mesh.
const vectorField & Sf() const
const List< Face > & surfFaces() const
List< treeBoundBox > meshBb(1, treeBoundBox(boundBox(coarseMesh.points(), false)).extend(rndGen, 1e-3))
virtual ~sampledCuttingPlane()=default
Mesh consisting of general polyhedral cells.
virtual void print(Ostream &os, int level=0) const
Field< vector > vectorField
Specialisation of Field<T> for vector.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
virtual bool needsUpdate() const
const scalarField & magSf() const
bool interpolate() const noexcept
virtual const labelList & zoneIds() const
Generic templated field type.
An abstract class for surfaces with sampling.
virtual const vectorField & Cf() const
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Preferences for controlling iso-surface algorithms.
OBJstream os(runTime.globalPath()/outputName)
virtual const vectorField & Sf() const
const word & name() const noexcept
const labelList & meshCells() const
sampledCuttingPlane(const word &name, const polyMesh &mesh, const dictionary &dict)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
MeshedSurface< face > meshedSurface
List< face > faceList
A List of faces.
const polyMesh & mesh() const noexcept
virtual const scalarField & magSf() const
A List of wordRe with additional matching capabilities.
virtual const faceList & faces() const
A bounding box defined in terms of min/max extrema points.
const vectorField & Cf() const
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...