16 params.addParam<std::vector<PhysicsName>>(
17 "physics", {},
"Physics object(s) active on the Component");
22 :
ActionComponent(params), _physics_names(getParam<
std::vector<PhysicsName>>(
"physics"))
25 for (
const auto & physics_name :
getParam<std::vector<PhysicsName>>(
"physics"))
39 physics->addComponent(*
this);
std::vector< PhysicsBase * > _physics
Pointers to the Physics defined on the component.
void mooseInfoRepeated(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
Base class for components that are defined using an action.
virtual const std::string & name() const
Get the name of the class.
static InputParameters validParams()
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
static InputParameters validParams()
std::vector< SubdomainName > _blocks
Names of the blocks the component is comprised of.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
const bool _verbose
Whether the component setup should be verbose.
std::string stringify(const T &t)
conversion to string
virtual void addPhysics() override
Used to add one or more Physics to be active on the component.
void addRequiredTask(const std::string &task)
Add a new required task for all physics deriving from this class NOTE: This does not register the tas...
ComponentPhysicsInterface(const InputParameters ¶ms)