Go to the documentation of this file.
72 dynCode.
addCopyFile(
"FilterFunctionObjectTemplate.H");
85 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
86 "-I$(LIB_SRC)/meshTools/lnInclude \\\n"
88 +
"\n\nLIB_LIBS = \\\n"
90 +
" -lfiniteVolume \\\n"
105 return "functionObject " +
name();
111 redirectFunctionObjectPtr_.clear();
154 if (!redirectFunctionObjectPtr_.valid())
157 constructDict.
set(
"type", redirectType_);
166 return redirectFunctionObjectPtr_();
172 updateLibrary(redirectType_);
173 return redirectFunctionObject().start();
179 updateLibrary(redirectType_);
180 return redirectFunctionObject().execute(forceWrite);
186 updateLibrary(redirectType_);
187 return redirectFunctionObject().end();
193 updateLibrary(redirectType_);
194 return redirectFunctionObject().timeSet();
292 updateLibrary(redirectType_);
293 return redirectFunctionObject().read(
dict);
virtual bool timeSet()
Called when time was set at the end of the Time::operator++.
const string & libs() const
Return the code-libs.
A keyword and a list of tokens is an 'entry'.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual string description() const
A table of dynamically loaded libraries.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
Tools for handling dynamic code compilation.
virtual const dictionary & codeDict() const
const fileName & name() const
Return the dictionary name.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
bool read(const char *, int32_t &)
Encapsulation of dynamic code dictionaries.
Base class for function objects and boundary conditions using dynamic code.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
functionObject & redirectFunctionObject() const
Dynamically compiled functionObject.
virtual bool read(const dictionary &)
Read and set the function object if its data have changed.
A class for handling character strings derived from std::string.
static void addLineDirective(string &, const label lineNum, const fileName &name)
Helper: add #line directive.
Mesh consisting of general polyhedral cells.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
Abstract base-class for Time/database function objects.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
codedFunctionObject(const codedFunctionObject &)
Disallow default bitwise copy construct.
virtual bool start()
Called at the start of the time-loop.
virtual ~codedFunctionObject()
Destructor.
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
virtual void movePoints(const polyMesh &)
Move points.
virtual void clearRedirect() const
virtual label startLineNumber() const =0
Return line number of first token in dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Time & time_
Reference to the time database.
Macros for easy insertion into run-time selection tables.
const string & options() const
Return the code-options.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
const entry * lookupEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
virtual bool execute(const bool forceWrite)
Called at each ++ or += of the time-loop. forceWrite overrides the.
virtual void updateMesh(const mapPolyMesh &)
Update mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
defineTypeNameAndDebug(combustionModel, 0)
string & inplaceExpand(string &, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Inplace expand occurences of variables according to the mapping.
word name(const complex &)
Return a string representation of a complex.
virtual bool end()
Called when Time::run() determines that the time-loop exits.
void set(entry *)
Assign a new entry, overwrite any existing entry.
string trim(const string &)
Return string trimmed of leading and trailing whitespace.