24 "Control the enabled/disabled state of objects with user-provided analysis steps.");
26 "set_sync_times",
true,
"Set the start and end time as execute sync times.");
28 "analysis_step_user_object",
29 "The AnalysisStepUserObject that provides times from analysis steps.");
31 "Step number on which this control object applies.");
48 _step_user_object = &getUserObject<AnalysisStepUserObject>(
"analysis_step_user_object");
62 if (getParam<bool>(
"set_sync_times"))
73 return MooseUtils::absoluteFuzzyGreaterEqual(
_t,
_start_time[0]) &&
74 MooseUtils::absoluteFuzzyLessThan(
_t,
_end_time[0]);
registerMooseObject("SolidMechanicsApp", AnalysisStepPeriod)
A basic control for disabling objects for a portion of the simulation based on the analysis step conc...
virtual bool conditionMet(const unsigned int &i) override
const AnalysisStepUserObject * _step_user_object
static InputParameters validParams()
Class constructor.
AnalysisStepPeriod(const InputParameters ¶meters)
void initialSetup() override
If enabled, this injects the start/end times into the TimeStepper sync times.
virtual void getAnalysisStepUserObject(const FEProblemBase &fe_problem, const AnalysisStepUserObject *&step_user_object, const std::string &name)
Real getEndTime(const unsigned int &step) const
Real getStartTime(const unsigned int &step) const
FEProblemBase & _fe_problem
OutputWarehouse & getOutputWarehouse()
const std::string & name() const
bool isParamSetByUser(const std::string &name) const
std::set< Real > & getSyncTimes()
std::vector< Real > _end_time
std::vector< Real > _start_time
static InputParameters validParams()