Maximum number of equation iterations run time condition. More...
Public Member Functions | |
TypeName ("equationMaxIter") | |
Runtime type information. More... | |
equationMaxIterCondition (const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) | |
Constructor. More... | |
virtual | ~equationMaxIterCondition ()=default |
Destructor. More... | |
virtual bool | apply () |
Apply the condition. More... | |
virtual void | write () |
Write. More... | |
![]() | |
TypeName ("runTimeCondition") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, runTimeCondition, dictionary,(const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state),(name, obr, dict, state)) | |
Declare runtime constructor selection table. More... | |
runTimeCondition (const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) | |
Constructor. More... | |
virtual | ~runTimeCondition ()=default |
Destructor. More... | |
virtual const word & | name () const |
Return the condition name. More... | |
virtual bool | active () const |
Return the active flag. More... | |
virtual label | groupID () const |
Return the group index. More... | |
Protected Attributes | |
const wordList | fieldNames_ |
Field name. More... | |
const label | threshold_ |
Threshold for maximum number of iterations. More... | |
label | startIter_ |
Start checking from iteration - always skips first iteration. More... | |
![]() | |
word | name_ |
Condition name. More... | |
const objectRegistry & | obr_ |
Reference to the object registry. More... | |
stateFunctionObject & | state_ |
State. More... | |
bool | active_ |
On/off switch. More... | |
dictionary & | conditionDict_ |
Reference to the condition dictionary. More... | |
label | groupID_ |
Group index - if applied, all conditions in a group must be. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< runTimeCondition > | New (const word &conditionName, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) |
Selector. More... | |
![]() | |
Switch | log |
Switch to send output to Info. More... | |
![]() | |
dictionary & | setConditionDict () |
Set the condition dictionary (create if necessary) More... | |
const dictionary & | conditionDict () const |
Return const access to the conditions dictionary. More... | |
dictionary & | conditionDict () |
Return non-const access to the conditions dictionary. More... | |
Maximum number of equation iterations run time condition.
Definition at line 56 of file equationMaxIterCondition.H.
equationMaxIterCondition | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
stateFunctionObject & | state | ||
) |
Constructor.
Definition at line 58 of file equationMaxIterCondition.C.
References Foam::endl(), Foam::max(), and WarningInFunction.
|
virtualdefault |
Destructor.
TypeName | ( | "equationMaxIter" | ) |
Runtime type information.
|
virtual |
Apply the condition.
Implements runTimeCondition.
Definition at line 84 of file equationMaxIterCondition.C.
References runTimeCondition::active_, Foam::endl(), equationMaxIterCondition::fieldNames_, forAll, dictionary::found(), Log, dictionary::lookup(), mesh, runTimeCondition::name_, Foam::nl, runTimeCondition::obr_, equationMaxIterCondition::startIter_, equationMaxIterCondition::threshold_, objectRegistry::time(), TimeState::timeIndex(), Foam::type(), and WarningInFunction.
|
virtual |
|
protected |
Field name.
Definition at line 65 of file equationMaxIterCondition.H.
Referenced by equationMaxIterCondition::apply().
|
protected |
Threshold for maximum number of iterations.
Definition at line 68 of file equationMaxIterCondition.H.
Referenced by equationMaxIterCondition::apply().
|
protected |
Start checking from iteration - always skips first iteration.
Definition at line 71 of file equationMaxIterCondition.H.
Referenced by equationMaxIterCondition::apply().