This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Apply flux on circular boundary.

+1 vote

Hi, i am solving concentration problem. I want to apply Flux on the circular boundary.

Note: I cannot use this expression: qinner(J,n)ds

plz help me in applying Flux boundary condition on circular interface.

Thanks

asked Feb 19, 2017 by hirshikesh FEniCS User (1,890 points)

Hi there,

it would be good to have some more details. What is a circular boundary (a boundary that looks like a circle?) Why can't you use that expression?

Do you have an interface or a boundary?

It would be good to clarify these points.

enter image description here

Sample Domain is like this, Now i have to apply flux boundary condition on the outer circle.
I have applied like this:
J = Expression (("-1.0x[0]/0.5", "-1.0x1/0.5"), t=0.0)
n = FacetNormal(mesh)
qinner(J,n)ds

where 1.0 is the magnitude of flux i have applied and 0.5 is the radius. But not getting correct boundary condition.

1 Answer

+1 vote
 
Best answer

Ok thanks.

One issue might be that

n = FacetNormal(mesh)

defines the outward normal on the whole boundary of the mesh, and not just on the outer circle. You might want to consider using subdomain markers, as e.g. described here

answered Feb 23, 2017 by wilhelmbraun FEniCS User (2,070 points)
selected Apr 6, 2017 by hirshikesh
...