# Understanding my problem (ME/accurate solution?)

**URL:** <https://fenicsproject.discourse.group/t/understanding-my-problem-me-accurate-solution/18246>\
**Category:** General\
**Created:** [October 2, 2025, 4:56pm UTC](https://fenicsproject.discourse.group/t/understanding-my-problem-me-accurate-solution/18246 "2025-10-02T16:56:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [October 4, 2025, 8:43pm UTC](https://fenicsproject.discourse.group/t/understanding-my-problem-me-accurate-solution/18246/3 "2025-10-04T20:43:29Z")

</div>

> [@raboynics](#):
>
> I am willing to introduce new variables such as J, J\_U, J\_Q (some heat flux) and use RT elements using a ME scheme if it makes things better. I tested rapidly and I got even worse results by implementing J with RT elements, where the div J and div J\_U values where a million times greater than in my case, for the regime where my code works fine.

Have you looked into stable mixed poisson formulations?  
See for instance  
[Mixed formulation for the Poisson equation — DOLFINx 0.9.0 documentation](https://docs.fenicsproject.org/dolfinx/v0.9.0/python/demos/demo_mixed-poisson.html) or [dolfinx-tutorial/chapter4/mixed\_poisson.ipynb at main · jorgensd/dolfinx-tutorial · GitHub](https://github.com/jorgensd/dolfinx-tutorial/blob/main/chapter4/mixed_poisson.ipynb)

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.

> [@raboynics](#):
>
> LLM IA tells me I can do a better post-process and project J into a RT space. Would this give me more accurate values of the volume integral of \vec J^2 and of \frac{\partial J\_x}{\partial x}?

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](https://fenicsproject.discourse.group/t/deriving-the-weak-form-of-my-problem-is-it-correct/17272/7)  
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/](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](https://arxiv.org/pdf/2409.08746) or other papers solving such problems either with a primal or mixed discretisation.

---

_[View the full topic](https://fenicsproject.discourse.group/t/understanding-my-problem-me-accurate-solution/18246)._
