Average run time condition - satisfied when average does not change by more than a given value. More...
Public Member Functions | |
TypeName ("average") | |
Runtime type information. More... | |
averageCondition (const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state) | |
Constructor. More... | |
virtual | ~averageCondition () |
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, functionObjectState &state),(name, obr, dict, state)) | |
Declare runtime constructor selection table. More... | |
runTimeCondition (const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state) | |
Constructor. More... | |
virtual | ~runTimeCondition () |
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 Member Functions | |
template<class Type > | |
void | calc (const word &fieldName, const scalar alpha, const scalar beta, bool &satisfied, bool &processed) |
Templated function to calculate the average. 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... | |
Protected Attributes | |
word | functionObjectName_ |
Name of function object to retrueve data from. More... | |
wordList | fieldNames_ |
List of fields on which to operate. More... | |
const scalar | tolerance_ |
Satisfied when difference in mean values is less than this value. More... | |
const scalar | window_ |
Averaging window. More... | |
List< scalar > | totalTime_ |
Average time per field. More... | |
Switch | resetOnRestart_ |
Reset the averaging process on restart flag. More... | |
![]() | |
word | name_ |
Condition name. More... | |
const objectRegistry & | obr_ |
Reference to the object registry. More... | |
functionObjectState & | state_ |
State. More... | |
bool | active_ |
On/off switch. More... | |
dictionary & | conditionDict_ |
Reference to the condition dictionary. More... | |
Switch | log_ |
Switch to send output to Info. 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, functionObjectState &state) |
Selector. More... | |
Average run time condition - satisfied when average does not change by more than a given value.
Definition at line 52 of file averageCondition.H.
averageCondition | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
functionObjectState & | state | ||
) |
Constructor.
Definition at line 42 of file averageCondition.C.
References dict, forAll, dictionary::lookup(), and readScalar.
|
virtual |
Destructor.
Definition at line 77 of file averageCondition.C.
|
protected |
Templated function to calculate the average.
Definition at line 30 of file averageConditionTemplates.C.
References Foam::constant::atomic::alpha, beta(), delta, Foam::Info, Foam::mag(), and Foam::nl.
TypeName | ( | "average" | ) |
Runtime type information.
|
virtual |
Apply the condition.
Implements runTimeCondition.
Definition at line 83 of file averageCondition.C.
References Foam::constant::atomic::alpha, DynamicList::append(), beta(), Foam::endl(), forAll, Foam::Info, Foam::nl, Foam::type(), and WarningInFunction.
|
virtual |
Write.
Implements runTimeCondition.
Definition at line 155 of file averageCondition.C.
References dictionary::add(), forAll, dictionary::found(), and dictionary::subDict().
|
protected |
Name of function object to retrueve data from.
Definition at line 61 of file averageCondition.H.
|
protected |
List of fields on which to operate.
Definition at line 64 of file averageCondition.H.
|
protected |
Satisfied when difference in mean values is less than this value.
Definition at line 67 of file averageCondition.H.
|
protected |
Averaging window.
Definition at line 70 of file averageCondition.H.
|
protected |
Average time per field.
Definition at line 73 of file averageCondition.H.
|
protected |
Reset the averaging process on restart flag.
Definition at line 76 of file averageCondition.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.