46 const dictionary&
dict,
52 coeffDict_(optionalSubDict(
type +
"Coeffs"))
60 const dictionary&
dict,
64 const word modelType(
dict.
get<word>(
"relaxationModel"));
66 Info<<
nl <<
"Selecting relaxationModel " << modelType <<
endl;
68 auto* ctorPtr = dictionaryConstructorTable(modelType);
77 *dictionaryConstructorTablePtr_
81 return autoPtr<relaxationModel>(ctorPtr(
dict,
runTime));
Macros for easy insertion into run-time selection tables.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Abstract base class for providing relaxation values to the cell motion controller.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.