35 #ifndef cellSizeFunction_H 36 #define cellSizeFunction_H 132 const scalar& defaultCellSize,
135 (cellSizeFunctionDict, surface, defaultCellSize, regionIndices)
147 const scalar& defaultCellSize,
159 const scalar& defaultCellSize,
200 WarningIn(
"cellSizeFunction::setCellSize(const pointField&)")
TypeName("cellSizeFunction")
Runtime type information.
static scalar snapToSurfaceTol_
Point closeness tolerance to a surface where the function "snaps" to.
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
virtual bool cellSize(const point &pt, scalar &size) const =0
Modify scalar argument to the cell size specified by function.
Macros to ease declaration of run-time selection tables.
const searchableSurface & surface_
Reference to the searchableSurface that cellSizeFunction.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dictionary coeffsDict_
Method details dictionary.
const dictionary & coeffsDict() const
Const access to the details dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
label size() const
Return number of elements in list.
declareRunTimeSelectionTable(autoPtr, cellSizeFunction, dictionary,( const dictionary &cellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices ),(cellSizeFunctionDict, surface, defaultCellSize, regionIndices))
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define WarningIn(functionName)
Report a warning using Foam::Warning.
static autoPtr< cellSizeFunction > New(const dictionary &cellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize, const labelList regionIndices)
Return a reference to the selected cellSizeFunction.
Abstract base class for specifying target cell sizes.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
sideMode
Surface side mode.
virtual bool setCellSize(const pointField &pts)
scalarField surfaceCellSize_
Cell size at the surface.
sideMode sideMode_
Mode of size specification, i.e. inside, outside or bothSides.
virtual ~cellSizeFunction()
Destructor.
virtual bool sizeLocations(const pointIndexHit &hitPt, const vector &n, pointField &shapePts, scalarField &shapeSizes) const =0
autoPtr< surfaceCellSizeFunction > surfaceCellSizeFunction_
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const labelList regionIndices_
Index of the region of the surface that this cell size function.
const scalar & defaultCellSize_