Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Gradient-dependent flux
Posted 04.07.2012, 17:59 GMT-4 Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
Hi there,
I am trying to simulate a gradient-dependent flux in the "Transport of diluted species" module. I added the Flux component from the drop-down menu, and one of the species I want to make it voltage-gradient dependent. It's the Nernst-Planck flux model.
Ji=-D(grad(c)+c * z_1*q*/(kB*T)*grad(V))
D-diffusion constant, c- ion species concentration, z_1 - valency, q-proton charge, kB-Botzmann constant, T-temperature, V-voltage.
how do I have to enter grad(V) and grad(c) in order to have the right thing implemented?
{d(c,x),d(c,y)} and {d(V,x),d(V,y)} seem to be accepted from a syntactic point of view, but then the solver returns an error.
[d(c,x),d(c,y)] and [d(V,x),d(V,y)] yield in having a orange line (as if the units where mismatched), and also the solver stops with an error.
gradient(V) is not working. also ctrl+alt+, (which is the shortcut for the graphic del-symbol) fails.
could you please write a valid expression for this formula?
Thanks,
Dan.
P.S. comsol 4.2a
I am trying to simulate a gradient-dependent flux in the "Transport of diluted species" module. I added the Flux component from the drop-down menu, and one of the species I want to make it voltage-gradient dependent. It's the Nernst-Planck flux model.
Ji=-D(grad(c)+c * z_1*q*/(kB*T)*grad(V))
D-diffusion constant, c- ion species concentration, z_1 - valency, q-proton charge, kB-Botzmann constant, T-temperature, V-voltage.
how do I have to enter grad(V) and grad(c) in order to have the right thing implemented?
{d(c,x),d(c,y)} and {d(V,x),d(V,y)} seem to be accepted from a syntactic point of view, but then the solver returns an error.
[d(c,x),d(c,y)] and [d(V,x),d(V,y)] yield in having a orange line (as if the units where mismatched), and also the solver stops with an error.
gradient(V) is not working. also ctrl+alt+, (which is the shortcut for the graphic del-symbol) fails.
could you please write a valid expression for this formula?
Thanks,
Dan.
P.S. comsol 4.2a
2 Replies Last Post 05.07.2012, 06:09 GMT-4