Elegant solution, I like it. Thanks!
On Monday, October 31, 2022 at 9:19:51 a.m. UTC-4 d.arnd...@gmail.com wrote: > Bruno, > > I don't think we have a function that would do that already. I would just > loop over all (locally relevant) cells, and add the respective (locally > relevant) dofs to the AffineConstraints object with add_line(). > > Best, > Daniel > > On Mon, Oct 31, 2022 at 8:36 AM blais...@gmail.com <blais...@gmail.com> > wrote: > >> Dear all, I hope you are all doing fine :)! >> >> I am trying to do some quick testing of something and this would require >> me applying a zero constraint to a set of cells which have a specific >> material id. I could surely do that from the weak form, but I was wondering >> if there was a way to do it strongly by applying a constraint like we do >> with boundary conditions (e.g. using VectorTools). I looked around in the >> documentation but I could not find anyway (but maybe I did not look >> carefully enough). >> >> Thanks! >> Bruno >> >> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "deal.II User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dealii+un...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/0605a226-d35e-4286-ad2e-13a7b1c185e9n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/dealii/0605a226-d35e-4286-ad2e-13a7b1c185e9n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/d6095dd4-4979-429a-a420-983bb2cc1561n%40googlegroups.com.