Minimum or maximum initial residual run time condition. More...


Public Types | |
| enum | operatingMode { omMin, omMax } |
Public Member Functions | |
| TypeName ("equationInitialResidual") | |
| Runtime type information. More... | |
| equationInitialResidualCondition (const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) | |
| Constructor. More... | |
| virtual | ~equationInitialResidualCondition ()=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 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... | |
Static Public Attributes | |
| static const Enum< operatingMode > | operatingModeNames |
Protected Member Functions | |
| template<class Type > | |
| void | setResidual (const fvMesh &mesh, const dictionary &dict, const word &fieldName, const label componenti, bool &canSet, scalar &residual) const |
| Set the residual (scalar) value. More... | |
Protected Member Functions inherited from runTimeCondition | |
| 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... | |
Protected Attributes | |
| solverFieldSelection | fieldSelection_ |
| Field names. More... | |
| const scalar | value_ |
| Value to compare. More... | |
| scalar | timeStart_ |
| Start checking from time - always skips first iteration. More... | |
| operatingMode | mode_ |
| Operating mode. More... | |
Protected Attributes inherited from runTimeCondition | |
| 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 Public Member Functions inherited from runTimeCondition | |
| static autoPtr< runTimeCondition > | New (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... | |
Minimum or maximum initial residual run time condition.
Definition at line 56 of file equationInitialResidualCondition.H.
| enum operatingMode |
| Enumerator | |
|---|---|
| omMin | Minimum. |
| omMax | Maximum. |
Definition at line 62 of file equationInitialResidualCondition.H.
| equationInitialResidualCondition | ( | const word & | name, |
| const objectRegistry & | obr, | ||
| const dictionary & | dict, | ||
| stateFunctionObject & | state | ||
| ) |
Constructor.
Definition at line 71 of file equationInitialResidualCondition.C.
References dict, Foam::endl(), objectRegistry::time(), TimeState::userTimeToTime(), and WarningInFunction.

|
virtualdefault |
Destructor.
|
protected |
Set the residual (scalar) value.
Definition at line 26 of file equationInitialResidualConditionTemplates.C.
References Foam::cmptMax(), Foam::component(), dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, UList< T >::first(), and mesh.

| TypeName | ( | "equationInitialResidual" | ) |
Runtime type information.
|
virtual |
Apply the condition.
Implements runTimeCondition.
Definition at line 103 of file equationInitialResidualCondition.C.
References Foam::abort(), Foam::component(), fieldInfo::component(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Log, mesh, fieldInfo::name(), Foam::nl, SetResidual, and WarningInFunction.

|
virtual |
Write.
Implements runTimeCondition.
Definition at line 220 of file equationInitialResidualCondition.C.
|
virtual |
Reset.
Implements runTimeCondition.
Definition at line 227 of file equationInitialResidualCondition.C.
|
static |
Definition at line 68 of file equationInitialResidualCondition.H.
|
protected |
Field names.
Definition at line 78 of file equationInitialResidualCondition.H.
|
protected |
Value to compare.
Definition at line 83 of file equationInitialResidualCondition.H.
|
protected |
Start checking from time - always skips first iteration.
Definition at line 88 of file equationInitialResidualCondition.H.
|
protected |
Operating mode.
Definition at line 93 of file equationInitialResidualCondition.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.