38 #ifndef functionObjects_runTimeConditions_maxDurationCondition_H 39 #define functionObjects_runTimeConditions_maxDurationCondition_H 47 namespace functionObjects
49 namespace runTimeControls
101 virtual void write();
104 virtual void reset();
virtual void write()
Write.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalar startTime_
Time when the condition is activated.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
virtual ~maxDurationCondition()=default
Destructor.
Switch resetOnRestart_
Reset on restart (ignores any state information)
A class for handling words, derived from Foam::string.
Base class for run time conditions.
TypeName("maxDuration")
Runtime type information.
virtual void reset()
Reset.
bool initialised_
Initialisation flag.
Base class for function objects, adding functionality to read/write state information (data required ...
Registry of regIOobjects.
virtual bool apply()
Apply the condition.
Activated after a user-specified duration.
maxDurationCondition(const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state)
Constructor.
scalar duration_
Duration.
virtual const word & name() const
Return the condition name.