Transition solid mechanics actions to deriving from PhysicsBase and accomodate downstream meta-action needs #29675
Labels
C: Modules/Solid Mechanics
Tickets pertaining to the solid_mechanics module
T: task
An enhancement to the software.
Motivation
The solid mechanics main actions are currently "Physics" in name and syntax only. They derive from a regular Action class and re-implement everything under the sun that a Physics is meant to inherit from its PhysicsBase parent class.
Another issue is that they have their own custom meta-logic for:
Those capabilities could benefit other Physics if it were transitioned. It could also help simplify this logic with first class support. The meta action logic seems complicated to me, and from my experience debugging the block restriction PR, it's very hard coded to what the SolidMechanicsPhysics do.
On the other hand, the solid mechanics capabilities would gain:
Design
Change the base class
Move some code to PhysicsBase and possibly create a "CommonPhysicsBase" class to handle the merging of several Physics.
Impact
Lower maintenance cost as we would not need to implement every improvement in Physics twice in the PhysicsBase and the SolidMechanics side
Lower external contribution support cost
The text was updated successfully, but these errors were encountered: