Boundary DOFs using DOF Handler

76 views
Skip to first unread message

Animesh Rastogi IIT Gandhinagar

unread,
Nov 4, 2020, 2:20:16 AM11/4/20
to deal.II User Group
Hello All,

I have a quick question about the dof_handler in dealii. I have a rectangular geometry and would like to access the numbering of the degree of freedoms which are on the right hand side boundary of the rectangle (+X face). I know the boundary_id for that face. Essentially, I want to use that number to extract the x component of the displacement at that node using the displacement vector.

Thanks!

Animesh

Wolfgang Bangerth

unread,
Nov 4, 2020, 1:15:46 PM11/4/20
to dea...@googlegroups.com
You can get all DoF indices on a particular boundary via
DoFTools::extract_boundary_dofs(). You can correlate this
DoFTools::extract_dofs() with a component mask that corresponds to your
x-displacement. With the information produced by these two you should be able
to pick out which DoFs you want to work on.

Best
W.


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

Animesh Rastogi IIT Gandhinagar

unread,
Nov 4, 2020, 1:33:17 PM11/4/20
to deal.II User Group
Thank you, Professor Bangerth. This is really helpful.

Animesh
Reply all
Reply to author
Forward
0 new messages