Hi everyone, I have a similar question: I want to couple dofs between two meshes. They have a shared surface (shared in the sense that it is at the same location). I assemble my system blockwise. The one mesh describes the "inner" domain I use in multiple situations and the other mesh is a pml domain I only use to truncate sometimes. I want to build an affineconstraints object to couple the surface dofs together but I'm running into problems, especially dealing with orientation (nedelec elements, so the edge orientation plays a role). Is there a library implementation (I couldn't find one and functions like interpolat_to_different_mesh() are only for the communication of surface values, not to construct constraints.) I have built an implementation myself but it is an error prone process and I would prefer to use as much of the library code as possible. Do you have any pointers for me?
Kind regards and thanks in advance for your time, Pascal Yu Leng schrieb am Dienstag, 2. Februar 2021 um 17:31:55 UTC+1: > Jean-Paul, > > Thank you very much for your suggestion. This function works great with > distributed meshes. The other one has to use shared meshes. > > > Thanks, > Yu > > On Mon, Feb 1, 2021 at 2:43 AM Jean-Paul Pelteret <jppel...@gmail.com> > wrote: > >> Hi Yu, >> >> Have you tried the VectorTools::interpolate_to_different_mesh() >> <https://dealii.org/developer/doxygen/deal.II/namespaceVectorTools.html#ac4807a032b164d00ae06adb8cfb2c9d1> >> >> functions? It sounds to me like they perform the operation that you're >> trying to do. They require that the two DoFHandlers originate from the same >> coarse triangulation. If you have hanging nodes, then you want to use the >> variant that takes in the affine constraints as an argument. Note as well >> that if you're using a parallel::distributed::Triangulation then you have >> to ensure that the partitioning is the same for both meshes -- the note in >> the documentation states how to ensure that this happens. >> >> Best, >> Jean-Paul >> >> >> On 31.01.21 20:35, Yu Leng wrote: >> >> Dear all, >> >> I would like to transfer data between two grids, which originate from the >> same coarse grid. >> Here are two approaches I can come up with. I would appreciate any of >> your feedbacks/suggestions. >> >> 1. Two triangulations and two dofhandlers. I can not get this to work >> using solution transfer even if I reinitialize the dofhandler with another >> triangulation. >> >> 2. One triangulation. Store the refinement/coarsen history and >> refine/coarsen every time I transfer data. >> >> >> Thanks, >> Yu >> -- >> 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/25ba90e7-45b8-486c-847d-370b4fc7b337n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/dealii/25ba90e7-45b8-486c-847d-370b4fc7b337n%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+un...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/2768330a-48ea-2f63-1025-6c698141e2a9%40gmail.com >> >> <https://groups.google.com/d/msgid/dealii/2768330a-48ea-2f63-1025-6c698141e2a9%40gmail.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/1203944c-803c-49ca-b5f0-5c329c10597cn%40googlegroups.com.