92 #ifndef Foam_timeSelector_H 93 #define Foam_timeSelector_H 133 bool contains(
const scalar value)
const;
175 const bool constant=
true,
176 const bool withZero=
false 194 const word& constantName =
"constant" 223 const bool forceInitial =
false
void inplaceSelect(instantList ×) const
Select a list of Time values that are within the ranges.
timeSelector() noexcept=default
Default construct.
static bool setTimeIfPresent(Time &runTime, const argList &args, const bool forceInitial=false)
Set the runTime based on -constant (if present), -time (value), or -latestTime.
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 void addOptions_singleTime()
Add single-time timeSelector options to argList::validOptions()
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times - as per select0() - otherwise return just the cu...
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...
The timeSelector provides a convenient means of selecting multiple 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.