19 params.
addParam<
bool>(
"verbose",
false,
"Whether the component setup should be verbose");
32 _verbose(getParam<bool>(
"verbose"))
78 if (!registered_tasks.count(required_task))
80 "Task '" + required_task +
81 "' has been declared as required by a Component parent class of derived class '" +
83 "' but this task is not registered to the derived class. Registered tasks for " 84 "this Component are: " +
virtual void checkIntegrity()
Used for various checks notably:
std::set< std::string > _required_tasks
Manually keeps track of the tasks required by each component as tasks cannot be inherited.
const unsigned int invalid_uint
std::set< std::string > getTasksByAction(const std::string &action) const
virtual void addSolverVariables()
Used to add variables on a component.
virtual void actOnAdditionalTasks()
Use this if registering a new task to the derived ActionComponent.
Base class for components that are defined using an action.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
static InputParameters validParams()
void mooseWarning(Args &&... args) const
Emits a warning prefixed with object name and type.
void checkRequiredTasks() const
Checks that tasks marked required by parent classes are indeed registered to derived classes...
virtual void act() override final
Method to add objects to the simulation or perform other setup tasks.
static InputParameters validParams()
virtual void setupComponent()
virtual void addMeshGenerators()
virtual void addMaterials()
Used to add materials or functor materials on a component.
const std::string & type() const
Get the type of this class.
const std::string & _current_task
The current action (even though we have separate instances for each action)
ActionFactory & _action_factory
Builds Actions.
std::string stringify(const T &t)
conversion to string
ActionComponent(const InputParameters ¶ms)
virtual void addPositionsObject()
virtual void addPhysics()
Used to add one or more Physics to be active on the component.
virtual void addUserObjects()