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 define a boundary condition which varies within a given domain

Please login with a confirmed email address before reporting spam

Hi,

I am trying to solve the Poisson's Equation. To simplify the problem, it is a 1-D problem, where the domain is 0 < x < 1

the Poisson's equation defined that d^2u/dx^2 = K where K = constant.

the boundary condition which I have is u(x=0) = u0
and du/dx = 0 when x = x1

While x1 is between 0 and 1 which is yet an unknown.

Is it possible to define such a system ?

Thank you.

Best regards,
Chin Kin

3 Replies Last Post Apr 8, 2011, 4:43 p.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 8, 2011, 3:42 p.m. EDT
Hi

if I count right, I find 3 DoFs and 2 boundary conditions, hence you have an infinite number of solutions and such a system cannot be solved by COMSOL as it wants a fully defined BVP, if you decide a value for your "x1", I believe it should work.

What you can do is to scan x1 from 0 to 1 (just check that if x1==0 or x1==1 you do not have a degeneracy)

--
Good luck
Ivar
Hi if I count right, I find 3 DoFs and 2 boundary conditions, hence you have an infinite number of solutions and such a system cannot be solved by COMSOL as it wants a fully defined BVP, if you decide a value for your "x1", I believe it should work. What you can do is to scan x1 from 0 to 1 (just check that if x1==0 or x1==1 you do not have a degeneracy) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 8, 2011, 3:55 p.m. EDT
Hi Ivar,
Thanks for your reply. I'm sorry I missed out another boundary condition which is

u(x1) = 0

I still didn't manage to define this system.
Please help. Thanks

Best regards,
Chin Kin
Hi Ivar, Thanks for your reply. I'm sorry I missed out another boundary condition which is u(x1) = 0 I still didn't manage to define this system. Please help. Thanks Best regards, Chin Kin

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 8, 2011, 4:43 p.m. EDT
Hi

Well in the new V4 COMSOL is somewhat more restrictive (if I remember right from 3.5) I see that it enforces two "zero Flux", one on each side on the external boundaries, so if I decide arbitrary to set X1=0.75 for a test and let u0 scan from -1 to 1 you get a solution per u0, as well as an unique solution on the domain 2 because you have the zero flux on the right boundary (if not defining something else).

But I'm not sure I got the full story here ;)

If you change the mesh from extremely coarse to extremely fine, you will see that the domain 2 has an unique solution for any u0, to the numerical precision via the relative mesh quality

--
Good luck
Ivar
Hi Well in the new V4 COMSOL is somewhat more restrictive (if I remember right from 3.5) I see that it enforces two "zero Flux", one on each side on the external boundaries, so if I decide arbitrary to set X1=0.75 for a test and let u0 scan from -1 to 1 you get a solution per u0, as well as an unique solution on the domain 2 because you have the zero flux on the right boundary (if not defining something else). But I'm not sure I got the full story here ;) If you change the mesh from extremely coarse to extremely fine, you will see that the domain 2 has an unique solution for any u0, to the numerical precision via the relative mesh quality -- Good luck Ivar

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.