90 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n" 91 "-I$(LIB_SRC)/meshTools/lnInclude \\\n" 93 +
"\n\nLIB_LIBS = \\\n" 95 +
" -lfiniteVolume \\\n" 104 return const_cast<Time&
>(time_).libs();
110 return "functionObject " +
name();
116 redirectFunctionObjectPtr_.clear();
160 if (!redirectFunctionObjectPtr_.valid())
163 constructDict.
set(
"type", name_);
172 return redirectFunctionObjectPtr_();
178 updateLibrary(name_);
179 return redirectFunctionObject().execute();
185 updateLibrary(name_);
186 return redirectFunctionObject().write();
192 updateLibrary(name_);
193 return redirectFunctionObject().end();
210 updateLibrary(name_);
211 return redirectFunctionObject().read(dict);
functionObject & redirectFunctionObject() const
Dynamically compiled functionObject.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void setMakeOptions(const std::string &content)
Define contents for Make/options.
codedFunctionObject(const word &name, const Time &time, const dictionary &dict)
Construct from Time and dictionary.
virtual void clearRedirect() const
Clear any redirected objects.
virtual const wordList & codeKeys() const
Get the keywords associated with source code.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
Abstract base-class for Time/database function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual const dictionary & codeDict() const
Get the dictionary to initialize the codeContext.
Macros for easy insertion into run-time selection tables.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
static const word null
An empty word.
Base class for function objects and boundary conditions using dynamic code.
A table of dynamically loaded libraries.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
virtual ~codedFunctionObject()
Destructor.
const string & libs() const
Return the code-libs.
Tools for handling dynamic code compilation.
Encapsulation of dynamic code dictionaries.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const string & options() const
Return the code-options.
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
virtual bool execute()
Called at each ++ or += of the time-loop.
void set(entry *)
Assign a new entry, overwrite any existing entry.
virtual bool write()
Called at each ++ or += of the time-loop.
virtual string description() const
Return a description (type + name) for the output.
A class for handling character strings derived from std::string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.