Cumputing the eigenvalues of the 2d wave equation

Dear FF++ user,

I would like to ask please, how can I solve the generalized eigen values for computing the eigenvalues of the 2D wave equation in a square,
using PETSc and SLEPc?

Thanks in advance,
Mordechai.

You can have a look at one of the many examples.