idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.71k stars 1.04k forks source link

Robustness in dual shape function calculation #24491

Open dewenyushu opened 1 year ago

dewenyushu commented 1 year ago

Reason

During mortar-based mechanical contact simulations, issue comes up sometimes with dual shape function calculation where the dual coefficient calculation may error out while inverting a matrix that is not numerically positive definite. Efforts should be focused on: 1) the origination of a non-positive mass matrix, and 2) how to make the calculation more robust regardless of the positive definiteness of the matrix.

Design

Impact

Make the mortar-based mechanical contact simulations more robust

lindsayad commented 1 year ago

Can't you just do an lu_decomposition?

dewenyushu commented 1 year ago

Can't you just do an lu_decomposition?

IIRC, I started with LU factorization and was suggested to switch to Cholesky since it is computationally cheaper. Switching back to LU will be my first thing to try, but I wonder if there may be other issues besides the factorization.

(original discussions are here https://github.com/libMesh/libmesh/pull/2552)