On 7/2/23 07:49, ztdep...@gmail.com wrote:
**
I read in 2d mesh from "unv" file and i want to get all the vertex index on
all the boundaries and also output the name of the each boundaries.
Could you please give me some suggestions.
I don't know whether there is a convenient way to obtain the vertex indices on
the boundary. You might just have to loop over all cells, over all faces of
that cell, and ask whether it's on the boundary.
But if you want the indices of *degrees of freedom* on the boundary, there is
a function in namespace DoFTools to extract those.
As for names: UNV is unique in that it allows giving a name (a string) to each
boundary. Most other mesh formats do not, and deal.II does not store this
string, just its integer number. So there is no way to query that name within
a deal.II program: It is ignored when reading UNV files.
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/94cfd3ae-18fa-6b99-5daa-81ee11f170fa%40colostate.edu.