Go to the documentation of this file.
71 #ifndef timeSelector_H
72 #define timeSelector_H
134 const bool withZero=
false
142 const word& constantName =
"constant"
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
Extract command arguments and options from the supplied argc and argv parameters.
timeSelector()
Construct Null.
Constant dispersed-phase particle diameter model.
void inplaceSelect(instantList &) const
Select a list of Time values that are within the ranges.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0)
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
instantList select(const instantList &) const
Select a list of Time values that are within the ranges.
An instant of time. Contains the time value and name.
bool selected(const instant &) const
Return true if the given instant is within the ranges.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
Foam::argList args(argc, argv)
A List of scalarRange for selecting times.