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
Returns a value retrieved from a function object result.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInfo
Report an information message using Foam::Info.
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)
A non-counting (dummy) refCount.