← Back to team overview

dolfin team mailing list archive

Re: Boundary

 

On Tue, Feb 08, 2011 at 05:07:10PM +0000, Garth N. Wells wrote:
>
>
> On 08/02/11 16:49, Anders Logg wrote:
> > On Tue, Feb 08, 2011 at 03:45:27PM +0000, Garth N. Wells wrote:
> >> Do we have a short-cut for defining the entire boundary of a domain so
> >> that it can be used in applying a Dirichlet bc on the entire boundary?
> >
> > Yes, DomainBoundary:
> >
> > bc = DirichletBC(V, g, DomainBoundary())
> >
>
> Thanks.
>
> What about from C++?

It should work with

  DomainBoundary boundary;
  DirichletBC bc(V, G, boundary);

Possibly also with

  DirichletBC bc(V, G, DomainBoundary());

I think the above will compile but I'm not sure what it does. Some C++
expert please enlighten me.

--
Anders



Follow ups

References