Replies: 5 comments
-
I assume you intended this? |
Beta Was this translation helpful? Give feedback.
-
A few things:
|
Beta Was this translation helpful? Give feedback.
-
Thanks! I Changed it accordingly. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! I still didnt achive my goal though. The goal is to to start with uniform concentrations and coverge to a solution where the positive and negative charges seperate to the sides. I expirimented with the value of epsilon, the magnitude of the potential drop, and the size of the system. As of now nothing seems to work. Any further ideas would be welcome. |
Beta Was this translation helpful? Give feedback.
-
I understand why you would expect that to happen, but I think the math doesn't support this. In your initial condition, There should be a way to induce charge separation, but I'm going to have to think about it. I've always dealt with electrode-electrolyte interfaces or pn junctions, where there was an initial heterogeneity. |
Beta Was this translation helpful? Give feedback.
-
I am trying to solve the Poisson-Nernst-Planck equation in Python with the library FiPy. It is basically a set of equations that describes - in my example - the separation of two ion concentrations in a solution with a potential gradient. Like mixing salt in water and then applying a voltage-difference between both ends of the solution.
The equations are:
And the boundary conditions:
$$\nabla C_p (x=L_x) = \nabla C_p (x=0) = \nabla C_n (x=L_x) = \nabla C_n (x=0)=0$$
Problem
I manage to get a converging solution, but it is not the solution i'd like. Specifically, I get that Cp and Cn always converge to be spatially constant, and$\phi$ is always linear. It seems like $\phi$ is indifferent to initial conditions. Even setting internal fixed point (based on this answer) turns $\phi$ to be linear with a break point, which doesn't help.
The solution I look for should be that$\phi$ is more like a sigmoid, and Cp and Cn get high values around the edges and low values in the center.
I really would appreciate help!
Beta Was this translation helpful? Give feedback.
All reactions