Why do I obtain ~185 near-zero eigenvalues in a clamped 3D elasticity eigenproblem (DOLFINx + SLEPc)?

As you haven’t given us the file

we can’t reproduce your example.

I would guess the issue is similar to:

where the solution is to remove the rows and columns that have the clamped conditions by using

K_sub, (idx_set_row, idx_set_row) = extract_sub_matrix(K, V, [bc])
M_sub, _ = extract_sub_matrix(M, V, [bc])

as described in the aforementioned post.
Please let me know if this helps.

All the best,
Jørgen

1 Like