<div>Hi, Dave! Thank you for your assistance. The problem is that I don't have the matrix representation for my problem.  I've searched <span style="background:#ffffff;float:none;font:14px 'arial' , sans-serif;text-align:left;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><font color="#545454">on the internet </font></span><span style="background:#ffffff;color:#545454;float:none;font:400 14px 'arial' , sans-serif;text-align:left;text-decoration-style:initial;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">for a solution, but</span> found only some examples of solving 2D eigenvalue problems for the Stokes equations. Maybe you could help me with the matrix representation for the 3D Stokes eigenvalue problem?</div><div>Thank you in advance,</div><div>Alex</div><div> </div><div>29.10.2019, 11:16, "Dave May" <dave.mayhem23@gmail.com>:</div><blockquote><div> </div><div> <div><div>On Tue 29. Oct 2019 at 08:13, alex via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><blockquote style="border-left-color:#ccc;border-left-style:solid;border-left-width:1px;margin:0 0 0 0.8ex;padding-left:1ex"><div><div>Hello!</div><div>In my project I have to calculate eigenvalues for the three dimensional Stokes equations with Dirichlet boundary conditions. I would like to use SLEPc iterative solver for this purpose, but I'm not quite sure how I should set up the matrices for the solver. I would be grateful if anyone could share a source code for solving this eigenvalue problem.</div></div></blockquote><div> </div><div>I presume your forward model uses petsc. What matrix representation do you use in that code? Why cannot they be used directly with slepc?</div><div> </div><div>Thanks</div><div>Dave</div><div> </div><div> </div><blockquote style="border-left-color:#ccc;border-left-style:solid;border-left-width:1px;margin:0 0 0 0.8ex;padding-left:1ex"><div><div> </div><div>Thank you very much! </div></div><div><div>Alex</div></div></blockquote></div></div></blockquote>