25 params.
addParam<std::vector<Real>>(
"start_time",
26 "The time at which the objects are to be enabled/disabled.");
27 params.
addParam<std::vector<Real>>(
"end_time",
28 "The time at which the objects are to be enable/disabled.");
30 "set_sync_times",
false,
"Set the start and end time as execute sync times.");
39 _start_time = getParam<std::vector<Real>>(
"start_time");
56 if (getParam<bool>(
"set_sync_times"))
registerMooseObject("MooseApp", TimePeriod)
virtual bool conditionMet(const unsigned int &i) override
Condition that must be true for an entry of the "enable" list to be enabled and/or an entry of the "d...
static InputParameters validParams()
Class constructor.
auto max(const L &left, const R &right)
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
A basic control for disabling objects for a portion of the simulation.
bool absoluteFuzzyLessThan(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether a variable is less than another variable within an absolute tolerance...
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
std::vector< Real > _start_time
The time to begin enabling the supplied object tags (defaults to the simulation start time) ...
MooseApp & _app
The MOOSE application this is associated with.
static InputParameters validParams()
Class constructor.
TimePeriod(const InputParameters ¶meters)
Executioner * getExecutioner() const
Retrieve the Executioner for this App.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool absoluteFuzzyGreaterEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether a variable is greater than or equal to another variable within an absolute ...
void initialSetup() override
If enabled, this injects the start/end times into the TimeStepper sync times.
Base class for basic control for disabling objects for a portion of the simulation.
std::set< Real > & getSyncTimes()
Return the sync times for all objects.
OutputWarehouse & getOutputWarehouse()
Get the OutputWarehouse objects.
void setupTimes()
Helper base method to set start and end times for controls.
std::vector< Real > _end_time
The time to stop enabling the supplied object tags (defaults to the end of the simulation) ...