Minimum/maximum run time conditions. If the value type is not scalar, the magnitude of the value is used in the evaluation. More...
Public Types | |
enum | modeType { mdMin, mdMax } |
Public Member Functions | |
TypeName ("minMax") | |
Runtime type information. More... | |
minMaxCondition (const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state) | |
Constructor. More... | |
virtual | ~minMaxCondition () |
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... | |
Static Public Attributes | |
static const NamedEnum< modeType, 2 > | modeTypeNames_ |
Protected Member Functions | |
template<class Type > | |
void | setValue (const word &valueType, const word &fieldName, scalar &value) const |
Helper function to retrieve the value from the state dictionary. 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... | |
modeType | mode_ |
Mode. More... | |
const wordList | fieldNames_ |
Field names. More... | |
const scalar | value_ |
Value to compare. 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... | |
Minimum/maximum run time conditions. If the value type is not scalar, the magnitude of the value is used in the evaluation.
Definition at line 51 of file minMaxCondition.H.
enum modeType |
Enumerator | |
---|---|
mdMin | |
mdMax |
Definition at line 60 of file minMaxCondition.H.
minMaxCondition | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
functionObjectState & | state | ||
) |
Constructor.
Definition at line 66 of file minMaxCondition.C.
|
virtual |
Destructor.
Definition at line 83 of file minMaxCondition.C.
Helper function to retrieve the value from the state dictionary.
Definition at line 30 of file minMaxConditionTemplates.C.
References Foam::mag().
TypeName | ( | "minMax" | ) |
Runtime type information.
|
virtual |
Apply the condition.
Implements runTimeCondition.
Definition at line 89 of file minMaxCondition.C.
References Foam::endl(), forAll, Foam::Info, modeTypeNames_, word::null, Foam::type(), and WarningInFunction.
|
virtual |
|
static |
Definition at line 66 of file minMaxCondition.H.
|
protected |
Name of function object to retrueve data from.
Definition at line 74 of file minMaxCondition.H.
|
protected |
Mode.
Definition at line 77 of file minMaxCondition.H.
|
protected |
Field names.
Definition at line 80 of file minMaxCondition.H.
|
protected |
Value to compare.
Definition at line 83 of file minMaxCondition.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.