40 mooseError(
"The Problem must derive from THMProblem to use THMActionComponents. Please include " 41 "a [Components] block in your input file, even if empty.");
46 const std::string & obj_name,
56 const std::string & obj_name,
61 params.
set<
Logger *>(
"_logger") = &(thm_problem.log());
62 thm_problem.addClosures(class_name, obj_name, params);
67 const std::string & obj_name,
74 thm_problem.getControlWarehouse().addObject(control);
Keeps the error and warning messages.
virtual void addControlLogic()
Specialization of FEProblem to run with component subsystem.
virtual void addTHMComponents()
void addControlLogicObject(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a ControlLogic object.
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
static InputParameters validParams()
THMActionComponent(const InputParameters ¶ms)
virtual void actOnAdditionalTasks() override
const std::string & _current_task
THMProblem & getTHMProblem()
Gets the THM problem.
virtual void addComponent(const std::string &type, const std::string &name, InputParameters params)
Add a component into this simulation.
void addClosuresObject(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a Closures object.
void mooseError(Args &&... args) const
std::shared_ptr< FEProblemBase > & _problem
virtual void addClosures()
void addTHMComponent(const std::string &class_name, const std::string &obj_name, InputParameters ¶ms)
Adds a THM component.
static InputParameters validParams()