Getting global DoF indices of a face

57 views
Skip to first unread message

Alexander Kiselyov

unread,
Nov 18, 2022, 12:30:38 PM11/18/22
to dea...@googlegroups.com
Dear deal.II users,

I'm currently developing a way to uniquely identify a boundary face on
a mesh. My idea has been to gather global DoF indices on a face and
hash them together. However, `get_dof_indices` method of a face
accessor doesn't return any useful information, and
`FESystem::max_dofs_per_face()`, surprisingly, returns 0. See the
attachment for a minimal example. The problem persists when running on
a single process. The version of deal.II used is 9.4.0.

What am I doing wrong here? Is there a better way to globally identify
a face?

Best regards,
Alexander Kiselyov
dof_indices.cc

Peter Munch

unread,
Nov 20, 2022, 11:43:58 AM11/20/22
to deal.II User Group
Hi Alexander,

You are using FE_DGQ, which per definition only has DoFs in the cell. Switch to quadratic FE_Q and then your idea with the dummy DoFHandler to globally uniquely identify faces should work! Not sure why you create a system!?

Peter

Alexander Kiselyov

unread,
Nov 22, 2022, 6:48:01 AM11/22/22
to dea...@googlegroups.com
Dear Peter,

Thank you for the reply!

The thing is that the input data is a FE_DGQ DoF vector, and I would rather not project it into FE_Q elements. The original plan was not to create a separate dummy DoFHandler, but your idea seems like a solution for my issue.

Still, I'm a bit confused about why FE_DGQ doesn't contain face DoFs. Is the reason that in this case DoF indices would be different when looking on either sides of a face?

Regards,
Alexander
--
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/54a20ebc-b6e2-479d-8eed-d236e1ee90cdn%40googlegroups.com.

Daniel Arndt

unread,
Nov 22, 2022, 10:13:10 AM11/22/22
to dea...@googlegroups.com
Alexander,

Yes, we are identifying DoFs on faces and thus FE_DGQ doesn't have any DoFs on faces.

Best,
Daniel

Alexander Kiselyov

unread,
Nov 23, 2022, 2:37:48 AM11/23/22
to dea...@googlegroups.com
Daniel,

Thanks a lot for your reply, it answers my question fully!

Regards,
Alexander
Reply all
Reply to author
Forward
0 new messages