Thank you, Professor Bangerth. This is really helpful.

Animesh

On Wednesday, November 4, 2020 at 11:45:46 PM UTC+5:30 Wolfgang Bangerth 
wrote:

> On 11/4/20 12:20 AM, Animesh Rastogi IIT Gandhinagar wrote:
> > 
> > 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.
>
> 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/
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e3e30b1c-9d88-452d-b9fb-a1f6cc3cd697n%40googlegroups.com.

Reply via email to