← Back to team overview

dolfin team mailing list archive

Re: Components of a DirichletBC

 

On Wed, Mar 04, 2009 at 10:06:05PM +0100, Harish Narayanan wrote:
> Is it possible to extract components of a DirichletBC in Python? (i.e.
> its FunctionSpace, value and boundary to which it is applied)
> 
> I'd like to do something like
> 
> for every bc in bcset1
>     create element of bcset2 with
>     the same function space and at the same boundary, but
>     having different boundary value value.
> 
> Thanks,
> Harish

No, but it would be very easy (and appropriate) to add.

The FunctionSpace reference needs to be returned from the base class
(BoundaryCondition) and the Function reference needs to be returned
from DirichletBC.

Can you submit a patch or do you need me to do it?

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References