New question #102995 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/102995

I am trying to mark a curved boundary which is a PHYSICAL boundary, but it 
seems 
dolfin does not take the boundary into account.

my curved boundary is just a semi-circle with a radius 0.5 and the center 
locates at (0, 0)

What I do is below,

class Cboundary(SubDomain):
     def inside(self,x,on_boundary):
         return on_boundary and (abs(x[0]*x[0]+x[1]*x[1]-0.25)<tol)

bc = DirichletBC(W.sub(0), noslip, Cboundary(), 'pointwise')

Changing the value of tol is not useful as I tried. 

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : dolfin@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to