determine global dof index of a point

39 views
Skip to first unread message

Mathieu

unread,
May 17, 2023, 2:00:41 PM5/17/23
to deal.II User Group
Hello everyone,

I apologize for my simple question:
Given a point, which is also a vertex (support point of FE_Q element), in real coordinates, is there a function that allows me to query the global dof index associated with that support point?

I know all the cells at which these support point lives.
One could then loop over the vertices of anyone of these cells, and call
cell->vertex_dof_index(vertex,...)
if vertex is the one that matches the support point.

But I was wondering if there is a direct way to get the dof index of a vertex based on the coordinates in real space.

Thank you
Math

Wolfgang Bangerth

unread,
May 18, 2023, 11:15:49 AM5/18/23
to dea...@googlegroups.com
You can use DoFTools::map_dofs_to_support_points(). This gives you the map "in
the wrong direction", but would probably still be useful for your case.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Daniel Arndt

unread,
May 18, 2023, 2:00:55 PM5/18/23
to dea...@googlegroups.com

--
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/78768f0a-b5a4-b689-adeb-e6a95e6da1a8%40colostate.edu.
Reply all
Reply to author
Forward
0 new messages