Kratos icon indicating copy to clipboard operation
Kratos copied to clipboard

[GeoMechanicsApplication] make "rebuild_level" adjustable in a dynamic solver strategy in GeoMechanicsApplication

Open anoordam opened this issue 2 years ago • 7 comments

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

anoordam avatar Jul 26 '22 13:07 anoordam

Similar to #9890

Vahid-Galavi avatar Aug 02 '22 14:08 Vahid-Galavi

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.

anoordam avatar Aug 02 '22 15:08 anoordam

maybe important to add, In my case I was also building the mass and damping matrices.

anoordam avatar Aug 02 '22 15:08 anoordam

Then you just need to call "SetRebuildLevel(rebuild_level)" function

Vahid-Galavi avatar Aug 03 '22 07:08 Vahid-Galavi

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.

anoordam avatar Aug 03 '22 07:08 anoordam

#10109

aronnoordam avatar Aug 08 '22 09:08 aronnoordam

#10109

Indeed

loumalouomega avatar Aug 08 '22 09:08 loumalouomega