38 const auto& props = this->time().functionObjects().propsDict();
40 if (!props.hasResultObject(foName_))
42 if (haveDefaultValue_)
45 <<
" Function object " << foName_
46 <<
" not found; using default value " << defaultValue_
53 <<
"Function object " << foName_
54 <<
" results not found. Valid objects with results include: " 55 << props.objectResultNames()
59 if (!props.hasResultObjectEntry(foName_, foResultName_))
61 if (haveDefaultValue_)
64 <<
" Function object " << foName_
65 <<
" result " << foResultName_
66 <<
" not found; using default value " << defaultValue_
73 <<
"Function object " << foName_
74 <<
" does not have a result field " << foResultName_ <<
nl 75 <<
" Available result fields include: " 76 << props.objectResultEntries(foName_)
80 Type value = props.template getObjectResult<Type>(foName_, foResultName_);
83 <<
" Using " << foName_ <<
" function object value: " << value
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A traits class, which is primarily used for primitives and vector-space.
virtual Type value(const scalar) const
Return value at current time.
#define DebugInfo
Report an information message using Foam::Info.
virtual Type integrate(const scalar x1, const scalar x2) const
Integrate between two (scalar) values. Not implemented!
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.