43Foam::surfaceCellSizeFunction::surfaceCellSizeFunction
47 const searchableSurface& surface,
48 const scalar& defaultCellSize
53 coeffsDict_(optionalSubDict(
type +
"Coeffs")),
54 defaultCellSize_(defaultCellSize),
57 getOrDefault<scalar>(
"refinementFactor", 1)
67 const searchableSurface& surface,
68 const scalar& defaultCellSize
71 const word modelType(
dict.get<word>(
"surfaceCellSizeFunction"));
73 Info<<
indent <<
"Selecting surfaceCellSizeFunction " << modelType <<
endl;
75 auto* ctorPtr = dictionaryConstructorTable(modelType);
82 "surfaceCellSizeFunction",
84 *dictionaryConstructorTablePtr_
88 return autoPtr<surfaceCellSizeFunction>
90 ctorPtr(
dict, surface, defaultCellSize)
Macros for easy insertion into run-time selection tables.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Abstract base class for specifying target cell sizes.
static autoPtr< surfaceCellSizeFunction > New(const dictionary &surfaceCellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize)
Return a reference to the selected surfaceCellSizeFunction.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc).
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indent(Ostream &os)
Indent stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.