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;
defineTypeNameAndDebug(ObukhovLength, 0)
multiRegion(const multiRegion &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read the controls.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static bool entriesPresent(const dictionary &dict)
Helper function to identify if a timeControl object is present.
virtual bool write()
Write the multiRegion.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Wrapper around functionObjects to add time control.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
Return the name of this functionObject.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
PtrList< functionObject > functions_
List of cloned objects (1 per region)
A class for handling words, derived from Foam::string.
wordList sortedNames() const
The sorted names of all objects.
virtual const word & type() const =0
Runtime type information.
A List of wordRe with additional matching capabilities.
const T * set(const label i) const
Return const pointer to element (can be nullptr), or nullptr for out-of-range access (ie...
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
void resize(const label newLen)
Adjust size of PtrList.
bool empty() const noexcept
True if the list is empty (ie, size() is zero)
static bool match(const UList< wordRe > &selectors, const std::string &text, bool literal=false)
Test for a match.
#define WarningInFunction
Report a warning using Foam::Warning.
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
static autoPtr< functionObject > New(const word &name, const Time &runTime, const dictionary &dict)
Select from dictionary, based on its "type" entry.
virtual bool execute()
Execute, currently does nothing.
const Time & time_
Reference to the time database.