Conditional markers and interface facet handling in DG two-phase model #4486
Unanswered
Giuliano3110
asked this question in
Firedrake support
Replies: 1 comment 1 reply
-
Can I suggest also posting this on the Firedrake Slack? That has a wider audience so you'll be more likely to find someone who can answer this for you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am new to Firedrake and trying to solve a 2D two-phase diffusion problem in Firedrake using DG(0) discretization for each phase. The two phases (electrolyte and active material) are distinguished by a phase marker, and fluxes are exchanged across their interfaces using dS terms. The problem is similar to coupled mass transfer with an interfacial reaction term.
However, my solver diverges quickly — even with very small time steps. I suspect the issue is in the way the fluxes (dS terms) are set up. Is anyone familiar with defining PDEs with UFL conditionals.
Below is a minimal reproducible example (no external files needed) that shows the problem.
Beta Was this translation helpful? Give feedback.
All reactions