Go to the documentation of this file.
37 namespace functionObjects
77 !
dict.readIfPresent<
wordRes>(
"regions", regionMatcher);
122 <<
"No regions applied"
128 Info<<
" Spawned additional object(s):" <<
nl;
147 for (
auto&
f : functions_)
149 result =
f.execute() && result;
160 for (
auto&
f : functions_)
162 result =
f.write() && result;
wordList sortedNames() const
The sorted names of all objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
static autoPtr< functionObject > New(const word &name, const Time &runTime, const dictionary &dict)
Select from dictionary, based on its "type" entry.
const Time & time_
Reference to the time database.
Wrapper around functionObjects to add time control.
Virtual base class for function objects with a reference to Time.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const T * set(const label i) const
Return const pointer to element (can be nullptr),.
PtrList< functionObject > functions_
List of cloned objects (1 per region)
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
virtual bool read(const dictionary &dict)
Read the controls.
messageStream Info
Information stream (stdout output on master, null elsewhere)
multiRegion(const multiRegion &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
void resize(const label newLen)
Adjust size of PtrList.
const word & name() const noexcept
Return the name of this functionObject.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual const word & type() const =0
Runtime type information.
virtual bool write()
Write the multiRegion.
A List of wordRe with additional matching capabilities.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
static bool entriesPresent(const dictionary &dict)
Helper function to identify if a timeControl object is present.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
#define WarningInFunction
Report a warning using Foam::Warning.
virtual bool execute()
Execute, currently does nothing.