Kratos
Kratos copied to clipboard
[GeoMechanicsApplication] make "rebuild_level" adjustable in a dynamic solver strategy in GeoMechanicsApplication
currently dynamic calculations in GeoMechanicsApplication are very slow since the LHS is rebuild at each iteration.
In a linear elastic case, the LHS is constant thus has to be build only once, which greatly improves the speed in dynamic calculations
either make the "rebuild_level" property adjustable in a dynamic solver strategy in GeoMechanicsApplication. Or check if a strategy in another Application can be used for this purpose
Similar to #9890
I think this issue is a bit different, as you are talking about solving time and I am talking about building time. In my case, I was solving a relatively small system dynamically in many time steps. Most of my computation time was at building the matrices. I think this can be optimized by only building the RHS in each iteration.
maybe important to add, In my case I was also building the mass and damping matrices.
Then you just need to call "SetRebuildLevel(rebuild_level)" function
yes I know, but i want to make it as an input variable. I think, currently that is not possible with the Geomechanics strategies. I think the geo strategy factory has to be extended.
#10109
#10109
Indeed