OmarEGB |
October 26, 2017 19:03 |
dynamic no-flux BC for electrokinetics, can groovyBC do this?
Hi,
I have a solver for a Poisson-Nernst-Planck system, that is, the Poisson equation gives me an electric field and that electric field pushes the ions according the the Nernst-Planck equation, together with diffusion . The ion flux would be something like this
now, as a boundary condition, I need this flux to be zero in one of my boundaries. Obviously, making the condition isn't enough in this case, since has a constant value (that comes from the boundary conditions to the Poisson equation), and additionally, the simulation starts from a non-uniform field, so making that zero isn't an option either. I would need to specify a condition for the gradient in the form
where the in the right hand side would be the previous concentration value at the boundary (from the previous timestep) and is known (since this happens to be a boundary condition for the Poisson equation).
I was looking at my options and apparently It looks like could use groovyBC, or otherwise I would need to write a library specifically for that boundary condition.
I have no experience whatsoever with swak4foam or writing custom boundary conditions so I would like to take the easiest path.
Could anyone enlighten me on whether this can be done with groovyBC? is there any other alternative?
|