equationMaxIterCondition Class Reference

Maximum number of equation iterations run time condition. More...

Inheritance diagram for equationMaxIterCondition:
[legend]
Collaboration diagram for equationMaxIterCondition:
[legend]

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...
 
virtual void reset ()
 Reset. More...
 
- Public Member Functions inherited from runTimeCondition
 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 wordname () const
 Return the condition name. More...
 
virtual bool active () const
 Return the active flag. More...
 
virtual label groupID () const
 Return the group index. More...
 
virtual bool apply ()=0
 Apply the condition. More...
 
virtual void write ()=0
 Write. More...
 
virtual void reset ()=0
 Reset. 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...
 
- Protected Attributes inherited from runTimeCondition
word name_
 Condition name. More...
 
const objectRegistryobr_
 Reference to the object registry. More...
 
stateFunctionObjectstate_
 State. More...
 
bool active_
 On/off switch. More...
 
dictionaryconditionDict_
 Reference to the condition dictionary. More...
 
label groupID_
 Group index - if applied, all conditions in a group must be. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from runTimeCondition
static autoPtr< runTimeConditionNew (const word &conditionName, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state)
 Selector. More...
 
- Public Attributes inherited from runTimeCondition
Switch log
 Switch to send output to Info. More...
 
- Protected Member Functions inherited from runTimeCondition
dictionarysetConditionDict ()
 Set the condition dictionary (create if necessary) More...
 
const dictionaryconditionDict () const
 Return const access to the conditions dictionary. More...
 
dictionaryconditionDict ()
 Return non-const access to the conditions dictionary. More...
 

Detailed Description

Maximum number of equation iterations run time condition.

Source files

Definition at line 56 of file equationMaxIterCondition.H.

Constructor & Destructor Documentation

◆ equationMaxIterCondition()

equationMaxIterCondition ( const word name,
const objectRegistry obr,
const dictionary dict,
stateFunctionObject state 
)

Constructor.

Definition at line 56 of file equationMaxIterCondition.C.

References runTimeCondition::active_, Foam::endl(), equationMaxIterCondition::fieldNames_, Foam::max(), Foam::name(), UList< T >::size(), equationMaxIterCondition::startIter_, and WarningInFunction.

Here is the call graph for this function:

◆ ~equationMaxIterCondition()

virtual ~equationMaxIterCondition ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "equationMaxIter"  )

Runtime type information.

◆ apply()

bool apply ( )
virtual

Apply the condition.

Implements runTimeCondition.

Definition at line 84 of file equationMaxIterCondition.C.

References Foam::endl(), UList< T >::first(), forAll, dictionary::found(), Log, dictionary::lookup(), mesh, Foam::nl, Foam::type(), and WarningInFunction.

Here is the call graph for this function:

◆ write()

void write ( )
virtual

Write.

Implements runTimeCondition.

Definition at line 165 of file equationMaxIterCondition.C.

◆ reset()

void reset ( )
virtual

Reset.

Implements runTimeCondition.

Definition at line 172 of file equationMaxIterCondition.C.

Member Data Documentation

◆ fieldNames_

const wordList fieldNames_
protected

◆ threshold_

const label threshold_
protected

Threshold for maximum number of iterations.

Definition at line 68 of file equationMaxIterCondition.H.

◆ startIter_

label startIter_
protected

Start checking from iteration - always skips first iteration.

Definition at line 71 of file equationMaxIterCondition.H.

Referenced by equationMaxIterCondition::equationMaxIterCondition().


The documentation for this class was generated from the following files: