Closed Yuriyzabegaev closed 1 year ago
Interesting observation @Yuriyzabegaev. Do you get the same results if you use pp.run_time_dependent_model()
instead?
@jhabriel yes the result is the same.
@IvarStefansson if we test the incompressible single-phase flow setup (elliptic problem), the diagonal values remain positive. As you suggested, it must be a scalar and vector divergence inconsistency.
Thanks for checking! @keileg, could it be that the sign convention is different between mpfa.flux and mpsa.stress?
Hei,
I noticed that the matrix arising from the mechanics problem in PorePy is negatively defined. It has a dominant negative diagonal and gives a negative scalar when multiplied by a random vector from left and right. That's alright if we solve the mechanics block separately, but it might lead to suboptimal solver performance if we couple mechanics with something else. For example, the single-phase flow problem matrix is positively defined.
Providing the code to reproduce:
Result: