Hi Sebastian, I tried to use interpolate_to_different_mesh(), but it causes an error below. How can I overcome this?
Thanks, Giang --------------------------------------- error: no matching function for call to ‘interpolate_to_different_mesh(const dealii::DoFHandler<2>&, const dealii::Vector<double>&, const dealii::DoFHandler<2>&, const dealii::Vector<double>&)’ VectorTools::interpolate_to_different_mesh(dof_handler, solution, reg_dof_handler,reg_sol); deal.II-v9.2.0/include/deal.II/numerics/vector_tools_interpolate.h:252:3: note: template argument deduction/substitution failed: /deal.II-v9.2.0/examples/step-3/step-3.cc:591:93: note: ‘const dealii::DoFHandler<2>’ is not derived from ‘const dealii::InterGridMap<DoFHandlerType<dim, spacedim> >’ VectorTools::interpolate_to_different_mesh(dof_handler, solution, reg_dof_handler,reg_sol); ---------------------------------------- DoFHandler<2> dof_handler, reg_dof_handler; Vector<double> solution; Vector<double> reg_sol; VectorTools::interpolate_to_different_mesh(dof_handler, solution, reg_dof_handler,reg_sol); ---------------------------------------- On Friday, April 15, 2022 at 7:37:41 AM UTC-4 SebG wrote: > Dear Giang, > > I think that the SolutionTransfer class could be used for this purpose if > the Triangulation is coarsened. Moreover, the VectorTools namespace > contains a variant of VectorToosl::interpolate using two DoFHandler > objects and there is also VectorTools::interpolate_to_different_mesh. > > Best wishes, > Sebastian > > [email protected] schrieb am Freitag, 15. April 2022 um 02:07:01 UTC+2: > >> Hi all, >> >> Are there anyway to project or interpolate solution data from adaptive >> mesh back to uniform mesh? >> Thank you in advance, >> >> Giang >> > -- 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/9f359941-565d-4112-8ca0-153565450c10n%40googlegroups.com.
