On 04/24/2012 09:54 AM, Roy Stogner wrote:
> On Tue, 24 Apr 2012, Robert wrote:
>
>> I need to change my boundary conditions during the calculation, more
>> precisely I need to remove or disable a dirichlet bc, which was added
>> through DofMap.add_dirichlet_boundary(..). As far as I can see there is
>> no .remove_dirichlet_boundary(..). Is there some special value like NAN
>> that my FunctionBase<>  subclass can return to indicate that no
>> constraints should be applied?
> At the moment, no.  You're not the only person who wants a
> remove_dirichlet_boundary() type method; the reason it doesn't exist
> isn't because there's some more esoteric way to get the same
> functionality, it's just because I didn't realize people would start
> doing more complicated things with this class so fast!
>
> Any preferences for the remove API?
>
> It could take a DirichletBoundary and then remove any matching
> boundary, but that would be misleading: since there's no way to
> compare functor objects for equivalence, this sort of remove() would
> only be testing the boundary id set and variable number set for
> equality.  I'm still leaning towards this, though; we're already
> assuming (although perhaps not yet asserting) that each combination of
> a variable number and a boundary id has at most one corresponding
> DirichletBoundary.

This seems like a good option to me, and would have a nice symmetry with 
the add_dirichlet_bc method.



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to