Base class for run time conditions. More...
Public Member Functions | |
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... | |
virtual bool | apply ()=0 |
Apply the condition. More... | |
virtual void | write ()=0 |
Write. More... | |
Static Public Member Functions | |
static autoPtr< runTimeCondition > | New (const word &conditionName, const objectRegistry &obr, const dictionary &dict, functionObjectState &state) |
Selector. More... | |
Protected Member Functions | |
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 | 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... | |
Base class for run time conditions.
Definition at line 54 of file runTimeCondition.H.
runTimeCondition | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
functionObjectState & | state | ||
) |
Constructor.
Definition at line 67 of file runTimeCondition.C.
|
virtual |
Destructor.
Definition at line 86 of file runTimeCondition.C.
|
protected |
Set the condition dictionary (create if necessary)
Definition at line 39 of file runTimeCondition.C.
References dictionary::add(), dictionary::found(), runTimeCondition::name_, functionObjectState::propertyDict(), runTimeCondition::state_, and dictionary::subDict().
|
protected |
Return const access to the conditions dictionary.
Definition at line 52 of file runTimeCondition.C.
|
protected |
Return non-const access to the conditions dictionary.
TypeName | ( | "runTimeCondition" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
runTimeCondition | , | ||
dictionary | , | ||
(const word &name, const objectRegistry &obr, const dictionary &dict, functionObjectState &state) | , | ||
(name, obr, dict, state) | |||
) |
Declare runtime constructor selection table.
|
static |
Selector.
Definition at line 31 of file runTimeConditionNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, and Foam::nl.
Referenced by runTimeControl::read().
|
virtual |
Return the condition name.
Definition at line 92 of file runTimeCondition.C.
|
virtual |
Return the active flag.
Definition at line 98 of file runTimeCondition.C.
Referenced by runTimeControl::execute().
|
virtual |
Return the group index.
Definition at line 104 of file runTimeCondition.C.
Referenced by runTimeControl::execute().
|
pure virtual |
Apply the condition.
Implemented in minMaxCondition, averageCondition, equationInitialResidualCondition, equationMaxIterCondition, and minTimeStepCondition.
Referenced by runTimeControl::execute().
|
pure virtual |
Write.
Implemented in minMaxCondition, averageCondition, equationInitialResidualCondition, equationMaxIterCondition, and minTimeStepCondition.
|
protected |
Condition name.
Definition at line 62 of file runTimeCondition.H.
Referenced by runTimeCondition::setConditionDict().
|
protected |
Reference to the object registry.
Definition at line 65 of file runTimeCondition.H.
|
protected |
State.
Definition at line 68 of file runTimeCondition.H.
Referenced by runTimeCondition::setConditionDict().
|
protected |
On/off switch.
Definition at line 71 of file runTimeCondition.H.
|
protected |
Reference to the condition dictionary.
Definition at line 74 of file runTimeCondition.H.
|
protected |
Switch to send output to Info.
Definition at line 77 of file runTimeCondition.H.
|
protected |
Group index - if applied, all conditions in a group must be.
satisfield before condition is met
Definition at line 81 of file runTimeCondition.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.