On 1/19/23 02:43, Wasim Niyaz Munshi ce21d400 wrote:
I am trying to extract all the nodes present on a boundary with a
particular id.
Would anyone be able to help me with this?
Also, for a vector problem how do I extract a particular dof ( eg. I
want the global dofs corresponding to the x-displacement of all the
nodes on the top face)?
I know one way is to use something like :
cell->vertex_dof_index(vertex_number)
Is there a way to skip the loop over elements and get the required info
directly using the boundary id?
At the end of the day, as mentioned by Bruno, everything in deal.II
always works by way of a loop over all cells and then over the faces of
that cell.
Sometimes, there are functions that already do that for you. In your
case, this function is what you need:
https://dealii.org/developer/doxygen/deal.II/namespaceDoFTools.html#a05eb3b759a0491c2087cf3befcc39cc4
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@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/db7884bf-82e2-386c-9f75-9258a62a1dcf%40colostate.edu.