Average run time condition - satisfied when average does not change by more than a given value. More...
Public Types | |
enum | windowType { NONE, APPROXIMATE, EXACT } |
Public Member Functions | |
TypeName ("average") | |
averageCondition (const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) | |
virtual | ~averageCondition ()=default |
virtual bool | apply () |
virtual void | write () |
![]() | |
TypeName ("runTimeCondition") | |
declareRunTimeSelectionTable (autoPtr, runTimeCondition, dictionary,(const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state),(name, obr, dict, state)) | |
runTimeCondition (const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) | |
virtual | ~runTimeCondition ()=default |
virtual const word & | name () const |
virtual bool | active () const |
virtual label | groupID () const |
Static Public Attributes | |
static const Enum< windowType > | windowTypeNames |
Protected Member Functions | |
template<class Type > | |
void | calc (const label fieldi, bool &satisfied, bool &processed) |
![]() | |
dictionary & | setConditionDict () |
const dictionary & | conditionDict () const |
dictionary & | conditionDict () |
Protected Attributes | |
word | functionObjectName_ |
wordList | fieldNames_ |
const scalar | tolerance_ |
const scalar | window_ |
windowType | windowType_ |
List< scalar > | totalTime_ |
Switch | resetOnRestart_ |
label | nIterStartUp_ |
label | iter_ |
![]() | |
word | name_ |
const objectRegistry & | obr_ |
stateFunctionObject & | state_ |
bool | active_ |
dictionary & | conditionDict_ |
label | groupID_ |
Additional Inherited Members | |
![]() | |
static autoPtr< runTimeCondition > | New (const word &conditionName, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state) |
![]() | |
Switch | log |
Average run time condition - satisfied when average does not change by more than a given value.
Definition at line 55 of file averageCondition.H.
|
strong |
Enumerator | |
---|---|
NONE | |
APPROXIMATE | |
EXACT |
Definition at line 63 of file averageCondition.H.
averageCondition | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
stateFunctionObject & | state | ||
) |
Definition at line 55 of file averageCondition.C.
References forAll, dictionary::found(), dictionary::readIfPresent(), dictionary::set(), and dictionary::subDict().
|
virtualdefault |
Definition at line 29 of file averageConditionTemplates.C.
References Foam::constant::atomic::alpha, beta(), LList::cbegin(), delta, dict, Log, Foam::mag(), Foam::nl, FIFOStack< T >::pop(), and FIFOStack< T >::push().
TypeName | ( | "average" | ) |
|
virtual |
Implements runTimeCondition.
Definition at line 108 of file averageCondition.C.
References runTimeCondition::active_, DynamicList::append(), TimeState::deltaTValue(), Foam::endl(), averageCondition::fieldNames_, forAll, averageCondition::functionObjectName_, Foam::Info, averageCondition::iter_, Log, runTimeCondition::name_, averageCondition::nIterStartUp_, Foam::nl, runTimeCondition::obr_, objectRegistry::time(), averageCondition::totalTime_, Foam::type(), and WarningInFunction.
|
virtual |
Implements runTimeCondition.
Definition at line 165 of file averageCondition.C.
References dictionary::add(), forAll, dictionary::found(), dictionary::set(), and dictionary::subDict().
|
static |
Definition at line 70 of file averageCondition.H.
|
protected |
Definition at line 78 of file averageCondition.H.
Referenced by averageCondition::apply().
|
protected |
Definition at line 81 of file averageCondition.H.
Referenced by averageCondition::apply().
|
protected |
Definition at line 84 of file averageCondition.H.
|
protected |
Definition at line 87 of file averageCondition.H.
|
protected |
Definition at line 90 of file averageCondition.H.
|
protected |
Definition at line 93 of file averageCondition.H.
Referenced by averageCondition::apply().
|
protected |
Definition at line 96 of file averageCondition.H.
|
protected |
Definition at line 99 of file averageCondition.H.
Referenced by averageCondition::apply().
|
protected |
Definition at line 102 of file averageCondition.H.
Referenced by averageCondition::apply().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.