21 "Base class for controlling the enabled/disabled state of objects with time.");
30 mooseError(
"TimePeriodBase objects only operate on transient problems.");
38 mooseError(
"The end time and start time vectors must be the same length.");
48 mooseError(
"The start/end time input must be a scalar or the same length as the enable/disable " 52 for (
unsigned int i = 0; i <
_start_time.size(); ++i)
54 mooseError(
"The start time(s) must be less than the end time(s).");
const std::vector< std::string > & _disable
List of objects to disable if condition is met.
TimePeriodBase(const InputParameters ¶meters)
static InputParameters validParams()
Class constructor.
auto max(const L &left, const R &right)
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this object.
static InputParameters validParams()
std::vector< Real > _start_time
The time to begin enabling the supplied object tags (defaults to the simulation start time) ...
const std::vector< std::string > & _enable
List of objects to enable if condition is met.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
Base class for controls that enable/disable object(s) based on some condition.
virtual bool isTransient() const override
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) ...