Tom's Electrical Problem
Tom has come up with a new problem that involves solving the electric field. Here are the equations at the electrode interface ():
and in the bulk:
on the top electrode ():
At first glance, I didn't see that this system is closed. Since the equation is steady state, and surrounded by Neumann boundary conditions it only needs one boundary to fix the value (it is an initial value problem for the slope of rather than a boundary value problem for .
Solving for the 1D problem
We have (assuming the normal points out of the electrolyte)
where is the distance between the electrodes
This leads to an ODE for
This can be solved with scipy's ODE integrator. To do this I took an example <http://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.ode.html> and used that. The code is source:trunk/moffat/electrical/1D.py.
The results are
and
With the following numbers:
We get the following steady state values:
Comments
The comment at the end about is bogus. Tom really means so we need to fix at some point. The question in 2D is which point or should it be the top surface.
Having chatted with Tom is fixed on somewhere. In 1D, we can just assume it's the top surface that is fixed. In 2D, I'm not so sure whether it is the entire top surface or just a single location.