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