Understanding my problem (ME/accurate solution?)

Have you looked into stable mixed poisson formulations?
See for instance
Mixed formulation for the Poisson equation — DOLFINx 0.9.0 documentation or dolfinx-tutorial/chapter4/mixed_poisson.ipynb at main · jorgensd/dolfinx-tutorial · GitHub

As a general comment, you should build your model step by step. In the example provided, you have not provided enough information about the issues that you are phasing for most people to help you.

If your solution is not satisfactory, a post processing projection usually doesn’t solve the problem (it would just hide the issues).

My advise is to work on the mathematical formulation and discretisation of your problem.
I guess the strong form is written at: Deriving the weak form of my problem, is it correct? - #7 by raboynics
and you should sit down and carefully write up a mixed formulation.

To me it kind of looks like a PNP ( https://pmc.ncbi.nlm.nih.gov/articles/PMC3122111/ ) equation (steady state), where you might be able to draw inspiration from https://arxiv.org/pdf/2409.08746 or other papers solving such problems either with a primal or mixed discretisation.

1 Like