← Back to team overview

fenics team mailing list archive

Re: neumann conditions

 

On Tue, Mar 18, 2008 at 09:23:25PM +0100, Murtazo Nazarov wrote:
> > That helps.  Suppose I want to apply such a condition on one part of
> > the boundary and specify dirichlet conditions on another part.  I have
> > the different boundary regions identified with cell markers.  But how
> > I would apply such a cell filter in this context?

For Neumann, send the MeshFunction defining the part of the boundary
you want to integrate over to the assembler (see Assembler.h). For
Dirichlet, send the MeshFunction defining the part of the boundary you
want to set the condition on to the constructor of DirichletBC.

-- 
Anders


Follow ups

References