74 #ifndef Foam_timeSelector_H 75 #define Foam_timeSelector_H 115 bool contains(
const scalar value)
const;
149 const bool constant=
true,
150 const bool withZero=
false 158 const word& constantName =
"constant"
void inplaceSelect(instantList ×) const
Select a list of Time values that are within the ranges.
timeSelector() noexcept=default
Default construct.
bool selected(const instant &t) const
True if value of the instant is within any of the ranges.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
instantList select(const instantList ×) const
Select a list of Time values that are within the ranges.
A class for handling words, derived from Foam::string.
Extract command arguments and options from the supplied argc and argv parameters. ...
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0) otherwise return just the current ti...
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options and also set the runTime to the first i...
A List of scalarRange for selecting times.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name...
A collection of scalar bounds to be used as a unary predicate.
Foam::argList args(argc, argv)
bool contains(const scalar value) const
True if value is within any of the ranges.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.