dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #23751
Re: Dirichlet BC only on corners?
On 7 June 2011 13:55, Chong Luo <luo.chong@xxxxxxxxx> wrote:
> Suppose we have a square domain. Is it possible to impose Dirichlet boundary conditions only on the 4 corners?
Have a look at dolfin/demo/undocumented/dg-advection-diffusion/cpp/main.cpp
DirichletBC bc(V, g, boundary, "geometric");
replace "geometric" with "pointwise" and make sure that your SubDomain
is defined
in terms of geometry only, i.e., it shouldn't use the 'on_boundary'
variable in the
inside() function.
Kristian
> Thanks!
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
>
References