Hello dear all,
Please someone can help me with some Fenics documents or demonstration for Poisson-Nernst-Planck equation?
I don’t know if it is possible to solve this with Fenics. I need your help please even if it’s some tips for solving this equation.
Thank you for your kind help
Someone else is trying to solve the same problem in FEniCSx so perhaps you can learn from them at How to debug the PETSC ERROR?. I may be solving coupled potential and concentration problem at the turn of the year. Good luck.
I will try with this code.
Thank you for your response.
I decide to turn to COMSOL now, because I find it very difficult to solve the PNP equation by Fenics.
The most difficult problem is I have to discrete the time by myself, however, PNP equation is usually stiff, using the simple backward Euler formula never works.
Another possible solution is to use the TS module of PETSC, however, I have to write an interface to TS module. It is again very difficult, because I have to care about the matrix layout or something like that.