<div>Patrick, thank you very much for your comment! I'll try to use the example provided by Matt as a starting point. I've never used SLEPc before, so my knowledge of the subject is a bit insufficient, to say the least.</div><div> </div><div>29.10.2019, 16:11, "Patrick Sanan" <patrick.sanan@gmail.com>:</div><blockquote><div style="word-wrap:break-word">"Solve the forward problem" means "solve the Stokes equations".  This terminology is used to contrast with the "inverse problem"  of recovering the parameters of the Stokes equations (viscosity) from the solution (pressure and velocity). <div> </div><div>Here, it sounds like you need to be able to </div><div>1) solve the (discretized) Stokes equations (see Matt's comments)</div><div>2) use SLEPc to analyze the operator (in PETSc, a "Mat" object) and extract the eigenvalues.<div> <blockquote><div>Am 29.10.2019 um 13:58 schrieb alex via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>>:</div> <div><div>Sorry, perhaps I stated my problem a bit inaccurately and that may have caused misunderstanding. In fact, I need to solve the forward problem, i.e. I have to find eigenvalues for the three dimensional Stokes equations, but I don't know how to do it in SLEPc.</div><div> </div><div>29.10.2019, 12:05, "Dave May" <<a href="mailto:dave.mayhem23@gmail.com">dave.mayhem23@gmail.com</a>>:</div><blockquote><div><div> </div> <div><div>On Tue, 29 Oct 2019 at 08:59, <<a href="mailto:av-baron@yandex.ru">av-baron@yandex.ru</a>> wrote:</div><blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div>Hi, Dave! Thank you for your assistance. The problem is that I don't have the matrix representation for my problem.</div></blockquote><div> </div><div>You will have to explain in more detail if you want further help.</div><div>Explain what "I don't have the matrix representation for my problem" means.</div><div>If you don't have a matrix representation, how do you solve the forward problem??</div><div> </div><div>Maybe you mean you use a matrix-free (MF) method. That is still a matrix representation of your problem, however the MF representation does not explicitly store the matrix a_{ij} entries in a CSR (or other) format.</div><div> </div><blockquote style="border-left-color:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div> I've searched <span style="background:#ffffff none 0% 0% repeat scroll;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 none 0% 0% repeat scroll;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" <<a href="mailto:dave.mayhem23@gmail.com">dave.mayhem23@gmail.com</a>>:</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:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 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:rgb( 204 , 204 , 204 );border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div><div> </div><div>Thank you very much! </div></div><div><div>Alex</div></div></blockquote></div></div></blockquote></blockquote></div></div></blockquote></div></blockquote></div></div></div></blockquote>