118#ifndef Foam_surfaceToCell_H
119#define Foam_surfaceToCell_H
148 const fileName surfName_;
154 const bool includeCut_;
157 const bool includeInside_;
160 const bool includeOutside_;
164 const bool useSurfaceOrientation_;
168 const scalar nearDist_;
172 const scalar curvature_;
175 const refPtr<triSurface> surfPtr_;
178 const refPtr<triSurfaceSearch> querySurfPtr_;
186 static label getNearest
188 const triSurfaceSearch& querySurf,
198 bool differingPointNormals
200 const triSurfaceSearch& querySurf,
203 const label cellTriI,
204 Map<label>& pointToNearest
209 void combine(topoSet& set,
const bool add)
const;
212 void checkSettings()
const;
214 const triSurfaceSearch& querySurf()
const
216 return *querySurfPtr_;
230 const polyMesh&
mesh,
231 const fileName& surfName,
233 const bool includeCut,
234 const bool includeInside,
235 const bool includeOutside,
236 const bool useSurfaceOrientation,
237 const scalar nearDist,
238 const scalar curvature
249 const bool includeCut,
250 const bool includeInside,
251 const bool includeOutside,
252 const bool useSurfaceOrientation,
253 const scalar nearDist,
254 const scalar curvature
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A HashTable to objects of type <T> with a label key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
Mesh consisting of general polyhedral cells.
A class for managing references or pointers (no reference counting).
A topoSetCellSource to select cells based on relation to a surface given by an external file.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
Apply specified action to the topoSet.
surfaceToCell(const polyMesh &mesh, const fileName &surfName, const pointField &outsidePoints, const bool includeCut, const bool includeInside, const bool includeOutside, const bool useSurfaceOrientation, const scalar nearDist, const scalar curvature)
Construct from components.
virtual ~surfaceToCell()
Destructor.
TypeName("surfaceToCell")
Runtime type information.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
topoSetCellSource(const polyMesh &mesh)
Construct from mesh.
Class with constructor to add usage string to table.
setAction
Enumeration defining various actions.
const polyMesh & mesh() const noexcept
Reference to the mesh.
General set of labels of mesh quantity (points, cells, faces).
Helper class to search on triSurface.
Triangulated surface description with patch information.
void add(DimensionedField< scalar, GeoMesh > &result, const dimensioned< scalar > &dt1, const DimensionedField< scalar, GeoMesh > &f2)
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.