<div dir="ltr"><div>Dear all, <br></div><div><br></div><div>I have a finite volume code inspired from TS example ex11.c (with a riemann solver, etc...).</div><div>So far, I used only explicit time stepping through the TSSSP, and to set the RHS of my hyperbolic system I used :</div><div><pre width="80">TSSetType(ts, TSSSP);<br>DMTSSetRHSFunctionLocal(dm, <a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/TS/DMPlexTSComputeRHSFunctionFVM.html#DMPlexTSComputeRHSFunctionFVM">DMPlexTSComputeRHSFunctionFVM</a>, &ctx);</pre></div><div>after setting the right Riemann solver in the TS associated to the DM.</div><div>Now, in some cases where the physics is stationary, I would like to reach the steady state faster and use an implicit timestepping operator to do so.</div><div>After looking through the examples, especially TS examples ex48.c and ex53.c, I simply tried to set</div><div></div><div></div><div><pre width="80">TSSetType(ts, TSBEULER);<br>DMTSSetIFunctionLocal(dm, <a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/TS/DMPlexTSComputeIFunctionFEM.html#DMPlexTSComputeIFunctionFEM">DMPlexTSComputeIFunctionFEM</a>, &ctx);<br>DMTSSetIJacobianLocal(dm, <a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/TS/DMPlexTSComputeIJacobianFEM.html#DMPlexTSComputeIJacobianFEM">DMPlexTSComputeIJacobianFEM</a>, &ctx);<br><br></pre><div>instead of the previous calls. It compiles fine, and it runs. However, nothing happens : it behaves like there is no time evolution at all, the solution does not change from its initial state.<br></div><div>From the source code, it is my understanding that the DMPlexTSComputeIFunctionFEM and DMPlexTSComputeIJacobianFEM methods, in spite of their names, call respectively DMPlexComputeResidual_Internal and DMPlexComputeJacobian_Internal that can handle a FVM discretization.</div><div><br></div><div>What am I missing ? Are there other steps to take before I can simply try to run with a finite volume discretization and an implicit time stepping algorithm ?</div><div><br></div><div>Thank you very much for your help in advance !<br></div><div><br></div></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><div><div><div>Thibault Bridel-Bertomeu<br>—<br></div></div></div></div>Eng, MSc, PhD</div><div>Research Engineer</div><div>CEA/CESTA</div><div>33114 LE BARP</div><div>Tel.: (+33)557046924</div><div>Mob.: (+33)611025322<br></div><div>Mail: <a href="mailto:thibault.bridelbertomeu@gmail.com" target="_blank">thibault.bridelbertomeu@gmail.com</a><br></div></div></div></div></div></div></div></div>