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.

How to set user defined boundary condition

Please login with a confirmed email address before reporting spam

I'm now trying to calculate heterojunction. As an example of model library, I use the "Transport of Diluted species" model to calculate. But I want to set a condition that " log(n1)+c1=log(n2)+c2" at the boundary. n1, n2 represent the concentration, c1,c2 are different const depending on material. There are no boundary condition same as this need,so how can I set that boundary condition?

3 Replies Last Post 23 janv. 2012, 08:41 UTC−5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 janv. 2012, 22:02 UTC−5
I've got some idea about this question. I may use weak constrain, and use 'up' and 'down' function, but I still cannot realize it. How can I set the boundary condition: n1/n2=c, where 'c' is a const and 'n1', 'n2' are the concentration in the two side of the boundary respectively. (i.e. the concentration of the boundary is uncontinuous)

Who have any idea?
THANKS!
I've got some idea about this question. I may use weak constrain, and use 'up' and 'down' function, but I still cannot realize it. How can I set the boundary condition: n1/n2=c, where 'c' is a const and 'n1', 'n2' are the concentration in the two side of the boundary respectively. (i.e. the concentration of the boundary is uncontinuous) Who have any idea? THANKS!

Lechoslaw Krolikowski

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 18 janv. 2012, 06:15 UTC−5
Hi,
I think you can use the so called stiff-spring method.
You'll find it in the Separation Through Dialysis example (Model Library - see pdf file).
Regards,
Andrzej
Hi, I think you can use the so called stiff-spring method. You'll find it in the Separation Through Dialysis example (Model Library - see pdf file). Regards, Andrzej

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 23 janv. 2012, 08:41 UTC−5
Thank you so much. That document helps me a lot.
Thank you so much. That document helps me a lot.

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.