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/
<http://www.dealii.org/>
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
<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]
<mailto:[email protected]>.
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/2768330a-48ea-2f63-1025-6c698141e2a9%40gmail.com.