Solving lagrange multiplier problem via iterative solver

Hello there friends from the fenicsx community,

I am following the example given in: scifem/examples/real_function_space.py at main · scientificcomputing/scifem · GitHub
to solve a Neumann-only boundary value problem by means of a Lagrangian multiplier.

In general, if I follow the example provided in the link, the results that I obtain work nicely. However, once I try to scale my simulation to a denser grid, the steps related to solving this linear system take a significant amount of my computation time.

I was wondering if it was possible to use an iterative solver in combination with this realfunction space approach to speed up the evaluation process?

As mentioned above, I follow exactly the provided example, even with the settings for the direct solver.

Any comment will be highly appreciated.

A request for this sort of capability was recently requested on the scifem repo at Real elements with non-linear problems · Issue #114 · scientificcomputing/scifem · GitHub

but the requestor found that a possible solution was already available at

2 Likes