72 const Foam::word Foam::codedFunctionObject::codeOptions
74 "codedFunctionObjectOptions"
79 "codedFunctionObjectTemplate.C"
84 "codedFunctionObjectTemplate.H"
90 void Foam::codedFunctionObject::updateLibrary(
const dictionary&
dict)
92 redirectFunctionObjectPtr_.clear();
96 dictionary constructDict(
dict);
97 constructDict.set(
"type",
codeName());
146 if (!redirectFunctionObjectPtr_.valid())
152 return redirectFunctionObjectPtr_();
158 return redirectFunctionObject().fields();
164 return redirectFunctionObject().execute();
170 return redirectFunctionObject().write();
176 return redirectFunctionObject().end();
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Base class for coded functionObjects, fvModels, Function1, Function2.
bool updateLibrary(const dictionary &dict) const
Update library from given updated dictionary as required.
Provides a general interface to enable dynamic code compilation.
virtual ~codedFunctionObject()
Destructor.
virtual wordList fields() const
Return the list of fields required.
codedFunctionObject(const word &name, const Time &time, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Called at each ++ or += of the time-loop.
virtual bool write()
Called at each ++ or += of the time-loop.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & codeName() const
Return the code-name.
HashTable< string > & varSubstitutions()
void read(const dictionary &contextDict, const dictionary &codeDict)
Abstract base-class for Time/database functionObjects.
const Time & time_
Reference to time.
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
virtual bool read(const dictionary &)
Read and set the functionObject if its data have changed.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)