On 11/22/22 13:15, Bruno Turcksin wrote:
**

You can use two DoFHandler and a single Triangulation. There are no problems. That's actually what I do in my code because it is much simpler to have a single Triangulation to work with. The only trick to know is that you can go from a Triangulation cell to a DoFHandler cell using https://github.com/dealii/dealii/wiki/Frequently-Asked-Questions#can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators <https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdealii%2Fdealii%2Fwiki%2FFrequently-Asked-Questions%23can-i-convert-triangulation-cell-iterators-to-dofhandler-cell-iterators&data=05%7C01%7CWolfgang.Bangerth%40colostate.edu%7C79d1a2de9ebe45086fd908daccc6575a%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C638047449496842423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=brrYTMjtw%2FhnlNUB9Rz%2FIc4QRyh7wlLLVMG7IDuTmlA%3D&reserved=0> This way you an easily go from data on one DoFHandler to data on the other DoFHandler.

To augment Bruno's answer: This is also what step-31 does.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/


--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/edafdcb2-fde9-6aaa-3c9d-71b169757d85%40colostate.edu.

Reply via email to