35namespace functionObjects
37namespace runTimeControls
57 nIterStartUp_(
dict.getOrDefault<label>(
"nIterStartUp", 10)),
77 bool running = iter_ > nIterStartUp_;
81 dictionary& conditionDict = this->conditionDict();
85 running = valueAverageBase::calculate(conditionDict) && running;
94 dictionary& conditionDict = this->conditionDict();
98 conditionDict.
set(
"iter", iter_);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
Average run time condition - satisfied when average does not change by more than a given value.
virtual bool apply()
Apply the condition.
virtual void write()
Write.
label iter_
Current iteration count.
virtual void reset()
Reset.
Base class for run time conditions.
const dictionary & conditionDict() const
Return const access to the conditions dictionary.
Base class for function objects, adding functionality to read/write state information (data required ...
Base class that computes the ensemble- or time-based singular-value average values,...
virtual void readState(dictionary &dict)
Read state from dictionary.
virtual void writeState(dictionary &dict)
Write state to dictionary for restarts.
virtual void resetState(dictionary &dict)
Reset state.
Registry of regIOobjects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & incrIndent(Ostream &os)
Increment the indent level.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.