43 Foam::surfaceCellSizeFunction::surfaceCellSizeFunction
46 const dictionary& surfaceCellSizeFunctionDict,
47 const searchableSurface&
surface,
48 const scalar& defaultCellSize
51 dictionary(surfaceCellSizeFunctionDict),
53 coeffsDict_(optionalSubDict(
type +
"Coeffs")),
54 defaultCellSize_(defaultCellSize),
57 getOrDefault<scalar>(
"refinementFactor", 1)
66 const dictionary&
dict,
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>
Ostream & indent(Ostream &os)
Indent stream.
static autoPtr< surfaceCellSizeFunction > New(const dictionary &surfaceCellSizeFunctionDict, const searchableSurface &surface, const scalar &defaultCellSize)
Return a reference to the selected surfaceCellSizeFunction.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
Macros for easy insertion into run-time selection tables.
const wordList surface
Standard surface field types (scalar, vector, tensor, etc)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...