Go to the documentation of this file.
36 namespace functionObjects
38 namespace runTimeControls
64 duration_(
dict.get<scalar>(
"duration")),
67 resetOnRestart_(
dict.getOrDefault(
"resetOnRestart",
false))
72 && conditionDict().readIfPresent(
"startTime", startTime_))
108 conditionDict().set(
"startTime", startTime_);
defineTypeNameAndDebug(averageCondition, 0)
Base class for run time conditions.
A class for handling words, derived from Foam::string.
bool active_
On/off switch.
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (e.g. CA deg)
addToRunTimeSelectionTable(runTimeCondition, averageCondition, dictionary)
Base class for function objects, adding functionality to read/write state information (data required ...
scalar startTime_
Time when the condition is activated.
const Type & value() const
Return const reference to value.
virtual bool apply()
Apply the condition.
Registry of regIOobjects.
virtual void write()
Write.
const objectRegistry & obr_
Reference to the object registry.
maxDurationCondition(const word &name, const objectRegistry &obr, const dictionary &dict, stateFunctionObject &state)
Constructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
scalar duration_
Duration.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
word name_
Condition name.
const Time & time() const noexcept
Return time registry.
bool initialised_
Initialisation flag.