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);
void mooseInfoRepeated(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
Base class for components that are defined using an action.
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...
std::vector< SubdomainName > _blocks
Names of the blocks the component is comprised of.
const bool _verbose
Whether the component setup should be verbose.
static InputParameters validParams()
T * getPhysics(const std::string &name) const
Retrieve a Physics with its name and the desired type.
virtual void addPhysics() override
Used to add one or more Physics to be active on the component.
std::vector< PhysicsBase * > _physics
Pointers to the Physics defined on the component.
static InputParameters validParams()
ComponentPhysicsInterface(const InputParameters ¶ms)
ActionWarehouse & actionWarehouse()
Return a writable reference to the ActionWarehouse associated with this app.
const std::string & name() const
Get the name of the class.
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
Base class to help creating an entire physics.
std::string stringify(const T &t)
conversion to string