On 7/15/21 3:09 PM, Kaushik Das wrote:

Is there a way to know which dof_index is located at which vertex.

For example, I want to "map" a dof_index that I get from affine_constrains.get_constraint_entries(line);

to a vertex index that are in the range of triangulation.begin_vertex() and triangulation.end_vertex().

Kaushik,
there is no such way in the library because, in general, DoFs need not be located on vertices. That is only true for the Q1 element.

But if you look at the implementation of the DoFTools::map_dofs_to_support_points(), you can probably come up with a way to get what you are looking, assuming you really are only using Q1 elements.

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
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/b963d470-97f9-f79a-3ab8-4c31dbb70c94%40colostate.edu.

Reply via email to