Hi Krei, This has been a popular topic as of late. Here's a list of posts <https://groups.google.com/forum/#!searchin/dealii/vertex_dof_index%7Csort:date> that will help you achieve what you're looking to do.
Regards, J-P On Tuesday, October 25, 2016 at 4:08:43 PM UTC+2, krei wrote: > > Hi, I have a vector valued solution (2 components), corresponding > triangulation and the dofhandler: > > Triangulation<dim> triangulation; > DoFHandler<dim> dof_handler; > Vector<double> solution; > > > I want to find the nearest vertex to an arbitrary point > Point<dim> &p > and then find the values of both of the components of the solution in that > vertex. > > I can find the global index by > unsigned index = GridTools::find_closest_vertex(triangulation, p); > > But how do I find the solution in the vertex with the index? And how to > access both components of the solution? > > > (I need this to interpolate the solution to slightly different mesh, where > I will continue the calculation with slightly different Neumann boundary > conditions.) > -- 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]. For more options, visit https://groups.google.com/d/optout.
