Eigenvalues/Eigenfunctions of an Operator

Hi everyone,
in dolfinx is there a function or library able to find the eigenvalues and eigenfunction of linear operator?
I was thinking of solving the eigenvalue problem for the discretised version of the operator, coming from the weak formulation.

Do you have any clues?

Thanks in advance, regards

You need to define your weak form in DOLFINx as usual, then you need to assemble your matrices with PETSc, and then you can finally find the solutions of your problem with SLEPc (slepc4py).

For more information you can check these posts:

or this demo:



Thank you very much @CastriMik for the answer, the demo you sent has been very useful.