37namespace functionObjects
77 !
dict.readIfPresent<
wordRes>(
"regions", regionMatcher);
82 functions_.resize(allRegions.
size());
117 functions_.resize(functioni);
119 if (functions_.empty())
122 <<
"No regions applied"
128 Info<<
" Spawned additional object(s):" <<
nl;
129 for (
const auto&
f : functions_)
147 for (
auto&
f : functions_)
149 result =
f.execute() && result;
160 for (
auto&
f : functions_)
162 result =
f.write() && result;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
Abstract base-class for Time/database function objects.
Wrapper that clones the supplied function object for each region.
virtual bool read(const dictionary &dict)
Read the controls.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the multiRegion.
Wrapper around functionObjects to add time control.
static bool entriesPresent(const dictionary &dict)
Helper function to identify if a timeControl object is present.
Virtual base class for function objects with a reference to Time.
Mesh data needed to do the Finite Volume discretisation.
A List of wordRe with additional matching capabilities.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Foam::word regionName(Foam::polyMesh::defaultRegion)
#define WarningInFunction
Report a warning using Foam::Warning.
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
constexpr char nl
The newline '\n' character (0x0a)