Thank you, Prof. Bangerth.
Yes, I am using Q1 elements.
I was able to do it following your hint.
I am assuming that the ordering/sequence of dofs that we get
from cell->get_dof_indices() will always be the same as the
ordering/sequence of vertexes in a cell, that is the 'canonical' ordering
given in GeometryInfo. Will that be true for linear hex Q1 elements always?

Thank you very much,
Kaushik

On Thu, Jul 15, 2021 at 6:30 PM Wolfgang Bangerth <[email protected]>
wrote:

> 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 a topic in the
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/dealii/cNZzfrSjTF4/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> .
>

-- 
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/CAC-fs6v2o-NfpbXRe6EitAD%3DXftE_R5EsZn2Tf%3DDwy5kQPE5ZQ%40mail.gmail.com.

Reply via email to