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.
Normal flux problem of transport of diluted species
Posted Mar 12, 2015, 9:59 a.m. EDT Low-Frequency Electromagnetics, Computational Fluid Dynamics (CFD) Version 4.4 9 Replies
Please login with a confirmed email address before reporting spam
I am solving possoin-nernst-planck equations using comsol.
When I combine Electrostatic module and transport of diluted species module together, I apply posive voltage and negative voltage on two opposite sides in es module and apply normal zero flux in transport of diluted species module. I use time dependent solver. Though I can get solution, I found normal flux is not zero at the boundary. I am so confused about this result since I predifined that.
A lot of thanks in advance.
Best,
Leo
Please login with a confirmed email address before reporting spam
Many Thanks!!!
Please login with a confirmed email address before reporting spam
This is merely a guess, but how dense is your mesh close to the boundaries? You may define zero flux BCs, but COMSOL calculates the flux based on your mesh, which is prone to smallest changes in the mesh. I have with the flux BC a lot and never been fully content.
BR
Lasse
Please login with a confirmed email address before reporting spam
Thank you so much for your reply!
My simulation geometry is just 2D 1 micrometer by 1 micrometer rectangular box. I use comsol predifined :Extremely fine size shown in the attachment.
I just wonder whether the unsymmetric oppsite boundaries(one with +1V the other with -1V applied) is possible for zero flux since I see many models in gallery are zero flux for symmetric boundaries.
Another question is does comsol first assume zero flux at BC then iterate?
Thank you!
Best,
Leo
Hi
This is merely a guess, but how dense is your mesh close to the boundaries? You may define zero flux BCs, but COMSOL calculates the flux based on your mesh, which is prone to smallest changes in the mesh. I have with the flux BC a lot and never been fully content.
BR
Lasse
Attachments:
Please login with a confirmed email address before reporting spam
grad(c) + zF/(RT)*c*grad(U) = 0 --> grad(U) = - RT/(zF)*grad(ln(c))
I am not able to reply to your latter question, I do not know. Your mesh probably is very dense, but if your domain is that small, the minimum element size should perhaps further decreased in order to have better resolution at the boundaries.
br
Lasse
Please login with a confirmed email address before reporting spam
Thank you so much!
I have adoptted your suggestion of decreasing the minimal and maximal mesh sizes. I will report when I get the new resolution.
Many thank!
Best,
Leo
Please login with a confirmed email address before reporting spam
I have refined the mesh on the boundary, the flux do become smaller, but not within the error of comsol, I guess for my unsymmetric bc case, the flux might not be zero simultaneously...
Thank you so much!
Best,
Leo
Please login with a confirmed email address before reporting spam
I still claim that your boundary conditions are quite OK :)
Lasse
Please login with a confirmed email address before reporting spam
My next trial will be putting dielectric layer outside the two opposing boudaries to make grad(V) less steep, hope this will help get normal zero flux bc. I will update if it can work~~
Many thanks!
Best,
Leo
Please login with a confirmed email address before reporting spam
I have tried several ways but all failed. I tried to use pointwise constrain -user defined-constraint expression/constrain force expression to make boundary flux to be zero but also failed. I am so curious why pointwise constrain fail to give what it constains to?
Thanks a lot!
Best Regards,
Leo
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.