51 for (
const auto phys : physics)
52 if (phys->name() ==
name)
std::vector< PhysicsName > _physics_names
Names of the Physics defined on the component.
std::vector< PhysicsBase * > _physics
Pointers to the Physics defined on the component.
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
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()
Helper class to help creating an entire physics Note: Trying out virtual inheritance.
virtual void addPhysics() override
Used to add one or more Physics to be active on the component.
ComponentPhysicsInterface(const InputParameters ¶ms)
std::vector< PhysicsBase * > getPhysics() const
Get the Physics from the Component.
T * getPhysics(const std::string &name) const
bool physicsExists(const PhysicsName &name) const
Whether the physics exists with the requested type and name.